MVP Verson: 0.4.8 beta
Lang Icon
Toggle Icon
Modal
A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
Default
PreviewCode
Custom
PreviewCode
Props
Universal Props
PropTypeAccepted ValuesDescriptionDefault ValueVersion
titlestring-Default dialog title textBasic Title-
openbooleanbooleanWhether the dialog is visiblefalse-
onClosefunction(e)-Callback when clicking the close icon or cancel button--
okTextstring-Text of the confirm button确定-
cancelTextstring-Text of the cancel button取消-
containerStylesobject-Customize Modal container style-0.3.2
headerStylesobject-Customize Modal header style-0.3.2
footerStylesobject-Customize Modal footer style-0.3.2
btnStylesobject-Customize Modal button style-0.3.2
footerButtonsobject-Customize Modal footer's button-0.3.2
maskClosableboolean-Enable to click mask to close modaltrue0.3.4