002390 1 年之前
父節點
當前提交
90b40e12bb
共有 1 個文件被更改,包括 5 次插入3 次删除
  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="