002390 1 năm trước cách đây
mục cha
commit
90b40e12bb
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      src/components/popover-select/index.vue

+ 5 - 3
src/components/popover-select/index.vue

@@ -128,8 +128,10 @@ export default {
     },
     // open dialog
     async open() {
-      this.visible = true;
-      await this.useReset();
+      if(!this.disabled){
+        this.visible = true;
+        await this.useReset();
+      }
     },
     // hide dialog
     async hide() {
@@ -292,7 +294,7 @@ export default {
       :disabled="disabled"
       style="width: 100%"
     >
-      <i :size="size" class="el-icon-search" slot="suffix" @click="!disabled && open"> </i>
+      <i :size="size" class="el-icon-search" slot="suffix" @click="open"> </i>
       <template slot-scope="{ item }">
         <p
           style="