@univerjs/design v0.5.0-beta.1 • Docs
Interface: IDialogProps
Properties
Property | Type | Description | Defined in |
---|---|---|---|
children | ReactNode | - | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:28 |
className? | string | additional className for dialog | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:99 |
closable? | boolean | whether show close button | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:109 |
closeIcon? | ReactNode | The close icon of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:62 |
defaultPosition? | { x : number ; y : number ; } | The default position of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:67 |
defaultPosition.x | number | - | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:67 |
defaultPosition.y | number | - | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:67 |
destroyOnClose? | boolean | Whether the dialog should be destroyed on close. Default false | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:73 |
dialogStyles? | ModalStyles | The style of the customize. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:104 |
draggable? | boolean | Whether the dialog can be dragged. If a dialog is draggable, the backdrop would be hidden and the wrapper container would not response to user’s mouse events. Default false | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:57 |
footer? | ReactNode | The footer of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:84 |
mask? | boolean | Whether the dialog should show a mask. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:94 |
maskClosable? | boolean | whether click mask to close, default is true | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:114 |
onClose? | () => void | Callback when the dialog is closed. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:89 |
preservePositionOnDestroy? | boolean | Whether the dialog should preserve its position on destroy. Default false | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:79 |
style? | CSSProperties | The style of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:33 |
title? | ReactNode | The title of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:49 |
visible? | boolean | Whether the dialog is visible. Default false | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:39 |
width? | string | number | The width of the dialog. | submodules/univer/packages/design/src/components/dialog/Dialog.tsx:44 |