浏览代码

MessageBox: add missing type (#12118)

hetech 7 年之前
父节点
当前提交
c2d41ad882
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      types/message-box.d.ts

+ 3 - 0
types/message-box.d.ts

@@ -126,6 +126,9 @@ export interface ElMessageBoxOptions {
 
   /** Error message when validation fails */
   inputErrorMessage?: string
+
+  /** Whether to distinguish canceling and closing */
+  distinguishCancelAndClose?: boolean
 }
 
 export interface ElMessageBoxShortcutMethod {