n20-common-lib 3.0.52 → 3.0.54

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": "3.0.52",
3
+ "version": "3.0.54",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -207,4 +207,8 @@
207
207
  display: inline-block;
208
208
  vertical-align: middle;
209
209
  }
210
+ }
211
+
212
+ .popover-check-box .el-checkbox.is-checked .el-checkbox__label {
213
+ color: inherit !important;
210
214
  }
@@ -215,15 +215,10 @@ export default {
215
215
  type: Array,
216
216
  default: () => []
217
217
  },
218
- // 初始筛选值,用于设置默认筛选条件
218
+ // 初始筛选值,用于设置默认筛选条件,同时也用于同步 slot 类型筛选器的值
219
219
  initialValue: {
220
220
  type: Object,
221
221
  default: () => ({})
222
- },
223
- // 外部表单对象,用于同步 slot 类型筛选器的值
224
- outerForm: {
225
- type: Object,
226
- default: () => ({})
227
222
  }
228
223
  },
229
224
  data() {
@@ -275,13 +270,13 @@ export default {
275
270
  return obj
276
271
  },
277
272
  filterObj() {
278
- // 合并 slot 类型筛选器的值(来自外部 form)到 searchValue 中
273
+ // 合并 slot 类型筛选器的值(来自 initialValue)到 searchValue 中
279
274
  const slotValues = {}
280
275
  this.filterList
281
276
  .filter((item) => item.type === 'slot' && item.value)
282
277
  .forEach((item) => {
283
- if (this.outerForm && this.outerForm[item.value] !== undefined) {
284
- slotValues[item.value] = this.outerForm[item.value]
278
+ if (this.initialValue && this.initialValue[item.value] !== undefined) {
279
+ slotValues[item.value] = this.initialValue[item.value]
285
280
  }
286
281
  })
287
282
  return {