meixioacomponent 0.2.67 → 0.2.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.67",
3
+ "version": "0.2.68",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -10,11 +10,11 @@
10
10
  <el-button
11
11
  size="medium"
12
12
  :class="{
13
- 'is-plain': !showProScreenList,
13
+ 'is-plain': !proScreenCardShow,
14
14
  }"
15
- :disabled="_proScreenList.length <= 0"
16
- @click="handleProScreenList"
17
- :type="showProScreenList ? 'selected' : 'info'"
15
+ :disabled="_proScreenList.length <= 0 && !proScreenCardShow"
16
+ @click="handleProScreenList(false)"
17
+ :type="proScreenCardShow ? 'selected' : 'info'"
18
18
  >{{ handleScreenText }} <i :class="handleScreenIcon"></i>
19
19
  </el-button>
20
20
  <el-button size="medium" plain type="info" @click="handleOpenProScreen">
@@ -23,7 +23,7 @@
23
23
  </el-button>
24
24
  </searchHeaderVue>
25
25
 
26
- <div class="search-mid-content" v-show="showProScreenList">
26
+ <div class="search-mid-content" v-show="proScreenCardShow">
27
27
  <el-card class="box-card">
28
28
  <div class="box-card-title">
29
29
  <span class="tips-text">筛选条件</span>
@@ -106,11 +106,14 @@ export default {
106
106
  oa_pro_screen_itemVue,
107
107
  },
108
108
  computed: {
109
+ proScreenCardShow() {
110
+ return this._proScreenList.length > 0 && this.showProScreenList;
111
+ },
109
112
  handleScreenIcon() {
110
- return this.showProScreenList ? "el-icon-arrow-up" : "el-icon-arrow-down";
113
+ return this.proScreenCardShow ? "el-icon-arrow-up" : "el-icon-arrow-down";
111
114
  },
112
115
  handleScreenText() {
113
- return this.showProScreenList ? "收起筛选" : "展开筛选";
116
+ return this.proScreenCardShow ? "收起筛选" : "展开筛选";
114
117
  },
115
118
 
116
119
  _proScreenList() {
@@ -141,8 +144,13 @@ export default {
141
144
  handleSearch() {
142
145
  this.$parent.refreshData();
143
146
  },
144
- handleProScreenList() {
145
- this.showProScreenList = !this.showProScreenList;
147
+ handleProScreenList(flag = false) {
148
+ if (!flag) {
149
+ this.showProScreenList = !this.showProScreenList;
150
+ } else {
151
+ this.showProScreenList = true;
152
+ }
153
+
146
154
  this.computedHeight();
147
155
  },
148
156
  handleScreen(index) {
@@ -185,6 +193,13 @@ export default {
185
193
  ];
186
194
  },
187
195
  },
196
+ watch: {
197
+ proScreenCardShow(newVal, oldVal) {
198
+ if (!newVal) {
199
+ this.showProScreenList = false;
200
+ }
201
+ },
202
+ },
188
203
  };
189
204
  </script>
190
205
 
@@ -24,6 +24,7 @@
24
24
  <div class="oa-pro-table-search">
25
25
  <oa_pro_table_searchVue
26
26
  v-model="module"
27
+ ref="oaProTableSearch"
27
28
  :screenList="screenList"
28
29
  :placeholder="placeholder"
29
30
  :proScreenList="proScreenList"
@@ -447,7 +448,7 @@ export default {
447
448
  cellMouseEnter(row, column, cell, event) {
448
449
  let content = row[`${column.property}`];
449
450
  this.tooltip.show = false;
450
- if (!content) return;
451
+ if (!content || typeof content == Boolean) return;
451
452
  const { tooltip } = this;
452
453
  let style = event.target;
453
454
  let position = style.getBoundingClientRect();
@@ -620,6 +621,7 @@ export default {
620
621
  plain: false,
621
622
  click: () => {
622
623
  this.dialogProscreenConfirm(true);
624
+ this.$refs.oaProTableSearch.handleProScreenList(true);
623
625
  },
624
626
  },
625
627
  ];