MessageBox(doc): add two missing attributes (#978)

pull/1001/head
杨奕 2016-11-11 15:48:01 +08:00 committed by FuryBean
parent 50709eb05b
commit 63d68f8f0e
2 changed files with 4 additions and 0 deletions

View File

@ -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 | — | — |

View File

@ -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 | — | — |