Browse Source

MessageBox: add missing type (#12118)

hetech 7 năm trước cách đây
mục cha
commit
c2d41ad882
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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 {