chore(docs): format message-box (#13676)

This commit is contained in:
btea 2023-07-21 10:52:21 +08:00 committed by GitHub
parent 493790f95f
commit 6e2a13c93f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,11 +186,11 @@ The corresponding methods are: `ElMessageBox`, `ElMessageBox.alert`, `ElMessageB
| input-placeholder | placeholder of input | ^[string] | '' |
| input-type | type of input | ^[string] | text |
| input-value | initial value of input | ^[string] | null |
| input-pattern | regexp for the input | ^[regexp] | null | |
| input-pattern | regexp for the input | ^[regexp] | null |
| input-validator | validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage | ^[Function]`(value: string) => boolea \| string` | null |
| input-error-message | error message when validation fails | ^[string] | Illegal input |
| center | whether to align the content in center | ^[boolean] | false |
| draggable | whether MessageBox is draggable | ^[boolean] | false |
| round-button | whether to use round button | ^[boolean] | false |
| button-size | custom size of confirm and cancel buttons | ^[string]`'small' \| 'default' \| 'large'` | default |
| append-to | set the root element for the message box | ^[string] / ^[HTMLElement] | - |
| append-to | set the root element for the message box | ^[string] / ^[HTMLElement] | |