002390 1 tahun lalu
induk
melakukan
90b40e12bb
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  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="