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 +1 -1
- package/src/assets/css/advanced-filter.scss +4 -0
- package/src/components/ProFilterView/index.vue +4 -9
- package/style/index.css +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -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
|
|
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.
|
|
284
|
-
slotValues[item.value] = this.
|
|
278
|
+
if (this.initialValue && this.initialValue[item.value] !== undefined) {
|
|
279
|
+
slotValues[item.value] = this.initialValue[item.value]
|
|
285
280
|
}
|
|
286
281
|
})
|
|
287
282
|
return {
|