mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
chore(docs): format message-box (#13676)
This commit is contained in:
parent
493790f95f
commit
6e2a13c93f
@ -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] | — |
|
||||
|
Loading…
Reference in New Issue
Block a user