MessageBox: add inputValue (#2909)

This commit is contained in:
杨奕
2017-02-22 15:15:16 +08:00
committed by baiyaaaaa
parent f2fc8b5fb6
commit c4367604ab
4 changed files with 14 additions and 5 deletions

View File

@@ -281,9 +281,10 @@ import { MessageBox } from 'element-ui';
| cancelButtonClass | 取消按钮的自定义类名 | string | — | — |
| confirmButtonClass | 确定按钮的自定义类名 | string | — | — |
| closeOnClickModal | 是否可通过点击遮罩关闭 MessageBox | boolean | — | true以 alert 方式调用时为 false |
| closeOnPressEscape | 是否可通过按下 ESC 键关闭 MessageBox | boolean | — | false |
| closeOnPressEscape | 是否可通过按下 ESC 键关闭 MessageBox | boolean | — | true以 alert 方式调用时为 false |
| showInput | 是否显示输入框 | boolean | — | false以 prompt 方式调用时为 true|
| inputPlaceholder | 输入框的占位符 | string | — | — |
| inputValue | 输入框的初始文本 | string | — | — |
| inputPattern | 输入框的校验表达式 | regexp | — | — |
| inputValidator | 输入框的校验函数。可以返回布尔值或字符串,若返回一个字符串, 则返回结果会被赋值给 inputErrorMessage | function | — | — |
| inputErrorMessage | 校验未通过时的提示文本 | string | — | 输入的数据不合法! |