Newtonian Physics Mockumentary

    @alicloud/console-base-rc-dialog
    TypeScript icon, indicating that this package has built-in type declarations

    1.6.0 • Public • Published

    @alicloud/console-base-rc-dialog

    might be the most simple-but-powerful react dialog for now...

    INSTALL

    tnpm i @alicloud/console-base-rc-dialog -S

    APIs

    作为组件使用(不太推荐)

    import Dialog from '@alicloud/console-base-rc-dialog';
    
    <Dialog {...props} />

    作为 Promise 使用

    import {
      openIndirect,
      open,
      slide,
      alert,
      confirm,
      prompt
    } from '@alicloud/console-base-rc-dialog';

    TODO 这个文档需要好好写一下.. 例子和设计思想...

    内容如何跟 Dialog 本身交互

    使用 hook useDialog

    import {
      useDialog
    } from '@alicloud/console-base-rc-dialog';
    
    function SomeComponent() {
      const {
        close,
        lock,
        unlock
      } = useDialog();
    }

    使用 Context

    import {
      DialogContext
    } from '@alicloud/console-base-rc-dialog';

    Install

    npm i @alicloud/console-base-rc-dialog

    DownloadsWeekly Downloads

    110

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    233 kB

    Total Files

    337

    Last publish

    Collaborators

    • jacksontian
    • fengmk2
    • pagecao
    • aliyunsdkteam
    • console-fe