@univerjs/design v0.5.0-beta.1Docs


Interface: IDialogProps

Properties

PropertyTypeDescriptionDefined in
childrenReactNode-submodules/univer/packages/design/src/components/dialog/Dialog.tsx:28
className?stringadditional className for dialogsubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:99
closable?booleanwhether show close buttonsubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:109
closeIcon?ReactNodeThe 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.xnumber-submodules/univer/packages/design/src/components/dialog/Dialog.tsx:67
defaultPosition.ynumber-submodules/univer/packages/design/src/components/dialog/Dialog.tsx:67
destroyOnClose?booleanWhether the dialog should be destroyed on close. Default falsesubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:73
dialogStyles?ModalStylesThe style of the customize.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:104
draggable?booleanWhether 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 falsesubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:57
footer?ReactNodeThe footer of the dialog.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:84
mask?booleanWhether the dialog should show a mask.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:94
maskClosable?booleanwhether click mask to close, default is truesubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:114
onClose?() => voidCallback when the dialog is closed.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:89
preservePositionOnDestroy?booleanWhether the dialog should preserve its position on destroy. Default falsesubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:79
style?CSSPropertiesThe style of the dialog.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:33
title?ReactNodeThe title of the dialog.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:49
visible?booleanWhether the dialog is visible. Default falsesubmodules/univer/packages/design/src/components/dialog/Dialog.tsx:39
width?string | numberThe width of the dialog.submodules/univer/packages/design/src/components/dialog/Dialog.tsx:44