소스 검색

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

QingDeng 6 년 전
부모
커밋
0bb4121cc3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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');
       }
     },