n20-common-lib 1.3.52 → 1.3.53

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": "n20-common-lib",
3
- "version": "1.3.52",
3
+ "version": "1.3.53",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <el-popover
3
+ ref="popover"
3
4
  v-model="showPop"
4
5
  trigger="manual"
5
6
  :width="width"
@@ -39,7 +40,7 @@
39
40
  <el-button
40
41
  class="p-t-0 m-b-s color-primary"
41
42
  type="text"
42
- @click="showMore = !showMore"
43
+ @click="moreFn"
43
44
  ><span>更多条件</span
44
45
  ><i
45
46
  :class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
@@ -197,6 +198,14 @@ export default {
197
198
  this.showPop = false
198
199
  }
199
200
  },
201
+ moreFn() {
202
+ if (this.showMore) {
203
+ this.showMore = false
204
+ } else {
205
+ this.showMore = true
206
+ setTimeout(() => this.$refs['popover'].updatePopper(), 360)
207
+ }
208
+ },
200
209
  setOptions(key, opts) {
201
210
  let item = this.filterList.find((f) => f.value === key)
202
211
  if (item) {
@@ -205,11 +214,20 @@ export default {
205
214
  },
206
215
  getRemote() {
207
216
  this.$refs['setRemote'].getColumns().then((list) => {
208
- this.remoteList = list || this.filterList.slice(0, this.defaultShow)
217
+ if (list) {
218
+ this.remoteList = list
219
+ } else {
220
+ let defaultList = this.filterList.filter((col) => col.isDefault)
221
+ this.remoteList = defaultList.length
222
+ ? defaultList
223
+ : this.filterList.slice(0, this.defaultShow)
224
+ }
225
+ setTimeout(() => this.$refs['popover'].updatePopper(), 360)
209
226
  })
210
227
  },
211
228
  setRemoteChange(list) {
212
229
  this.remoteList = list
230
+ setTimeout(() => this.$refs['popover'].updatePopper(), 360)
213
231
  }
214
232
  }
215
233
  }
@@ -174,7 +174,11 @@ export default {
174
174
  }
175
175
  },
176
176
  reset() {
177
- ////
177
+ if (this.isFilter) {
178
+ let dragList = this.columns.filter((col) => col.isDefault)
179
+ this.dragList = dragList.length ? dragList : this.checkColumns
180
+ return
181
+ }
178
182
  this.dragList = this.checkColumns.filter((col) => !col.static)
179
183
  },
180
184
  setChange() {