mirror of https://github.com/ElemeFE/element
MessageBox(doc): add two missing attributes (#978)
parent
50709eb05b
commit
63d68f8f0e
|
@ -238,6 +238,8 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
|
||||||
| confirmButtonText | text content of confirm button | string | — | OK |
|
| confirmButtonText | text content of confirm button | string | — | OK |
|
||||||
| cancelButtonClass | custom class name of cancel button | string | — | — |
|
| cancelButtonClass | custom class name of cancel button | string | — | — |
|
||||||
| confirmButtonClass | custom class name of confirm button | string | — | — |
|
| confirmButtonClass | custom class name of confirm button | string | — | — |
|
||||||
|
| closeOnClickModal | whether MessageBox can be closed by clicking the mask | boolean | — | true (false when called with alert) |
|
||||||
|
| closeOnPressEscape | whether MessageBox can be closed by pressing the ESC | boolean | — | false |
|
||||||
| showInput | whether to show an input | boolean | — | false (true when called with prompt) |
|
| showInput | whether to show an input | boolean | — | false (true when called with prompt) |
|
||||||
| inputPlaceholder | placeholder of input | string | — | — |
|
| inputPlaceholder | placeholder of input | string | — | — |
|
||||||
| inputPattern | regexp for the input | regexp | — | — |
|
| inputPattern | regexp for the input | regexp | — | — |
|
||||||
|
|
|
@ -235,6 +235,8 @@ import { MessageBox } from 'element-ui';
|
||||||
| confirmButtonText | 确定按钮的文本内容 | string | — | 确定 |
|
| confirmButtonText | 确定按钮的文本内容 | string | — | 确定 |
|
||||||
| cancelButtonClass | 取消按钮的自定义类名 | string | — | — |
|
| cancelButtonClass | 取消按钮的自定义类名 | string | — | — |
|
||||||
| confirmButtonClass | 确定按钮的自定义类名 | string | — | — |
|
| confirmButtonClass | 确定按钮的自定义类名 | string | — | — |
|
||||||
|
| closeOnClickModal | 是否可通过点击遮罩关闭 MessageBox | boolean | — | true(以 alert 方式调用时为 false) |
|
||||||
|
| closeOnPressEscape | 是否可通过按下 ESC 键关闭 MessageBox | boolean | — | false |
|
||||||
| showInput | 是否显示输入框 | boolean | — | false(以 prompt 方式调用时为 true)|
|
| showInput | 是否显示输入框 | boolean | — | false(以 prompt 方式调用时为 true)|
|
||||||
| inputPlaceholder | 输入框的占位符 | string | — | — |
|
| inputPlaceholder | 输入框的占位符 | string | — | — |
|
||||||
| inputPattern | 输入框的校验表达式 | regexp | — | — |
|
| inputPattern | 输入框的校验表达式 | regexp | — | — |
|
||||||
|
|
Loading…
Reference in New Issue