Переглянути джерело

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 {