Jelajahi Sumber

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

杨奕 8 tahun lalu
induk
melakukan
63d68f8f0e
2 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 2 0
      examples/docs/en-US/message-box.md
  2. 2 0
      examples/docs/zh-CN/message-box.md

+ 2 - 0
examples/docs/en-US/message-box.md

@@ -238,6 +238,8 @@ The corresponding methods are: `MessageBox`, `MessageBox.alert`, `MessageBox.con
 | confirmButtonText | text content of confirm button | string | — | OK |
 | cancelButtonClass | custom class name of cancel 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) |
 | inputPlaceholder | placeholder of input | string | — | — |
 | inputPattern | regexp for the input | regexp | — | — |

+ 2 - 0
examples/docs/zh-CN/message-box.md

@@ -235,6 +235,8 @@ import { MessageBox } from 'element-ui';
 | confirmButtonText | 确定按钮的文本内容 | string | — | 确定 |
 | cancelButtonClass | 取消按钮的自定义类名 | string | — | — |
 | confirmButtonClass | 确定按钮的自定义类名 | string | — | — |
+| closeOnClickModal | 是否可通过点击遮罩关闭 MessageBox | boolean | — | true(以 alert 方式调用时为 false) |
+| closeOnPressEscape | 是否可通过按下 ESC 键关闭 MessageBox | boolean | — | false |
 | showInput | 是否显示输入框 | boolean | — | false(以 prompt 方式调用时为 true)|
 | inputPlaceholder | 输入框的占位符 | string | — | — |
 | inputPattern | 输入框的校验表达式 | regexp | — | — |