docs(components): [message-box] add description of props modalClass (#17843)

This commit is contained in:
ve
2024-12-19 20:23:36 +08:00
committed by GitHub
parent a1f03539a6
commit 973fa1a5ac

View File

@@ -168,6 +168,7 @@ The corresponding methods are: `ElMessageBox`, `ElMessageBox.alert`, `ElMessageB
| icon | custom icon component, overrides `type` | ^[string] / ^[Component] | '' |
| customClass | custom class name for MessageBox | ^[string] | '' |
| customStyle | custom inline style for MessageBox | ^[CSSProperties] | {} |
| modalClass | custom class names for mask | string | — |
| callback | MessageBox closing callback if you don't prefer Promise | ^[Function]`(value: string, action: Action) => any \| (action: Action) => any` | null |
| showClose | whether to show close icon of MessageBox | ^[boolean] | true |
| beforeClose | callback before MessageBox closes, and it will prevent MessageBox from closing | ^[Function]`(action: Action, instance: MessageBoxState, done: () => void) => void` | null |