Prechádzať zdrojové kódy

MessageBox: fix  distinguishCancelAndClose action not same as docs bug (#15438)

QingDeng 6 rokov pred
rodič
commit
0bb4121cc3
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      packages/message-box/src/main.vue

+ 3 - 0
packages/message-box/src/main.vue

@@ -231,6 +231,9 @@
       getInputElement() {
         const inputRefs = this.$refs.input.$refs;
         return inputRefs.input || inputRefs.textarea;
+      },
+      handleClose() {
+        this.handleAction('close');
       }
     },