@aochuang/common 1.0.145 → 1.0.146
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/components/advanced-filter/advanced-filter-condition-item/advanced-filter-condition-item.vue
CHANGED
|
@@ -91,6 +91,9 @@ export default {
|
|
|
91
91
|
},
|
|
92
92
|
getValueComponent: {
|
|
93
93
|
type: Function
|
|
94
|
+
},
|
|
95
|
+
getOperateItems: {
|
|
96
|
+
type: Function
|
|
94
97
|
}
|
|
95
98
|
},
|
|
96
99
|
computed: {
|
|
@@ -145,6 +148,14 @@ export default {
|
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
150
|
operateItems () {
|
|
151
|
+
if (this.getOperateItems) {
|
|
152
|
+
const items = this.getOperateItems({
|
|
153
|
+
value: this.value
|
|
154
|
+
})
|
|
155
|
+
if (items) {
|
|
156
|
+
return items
|
|
157
|
+
}
|
|
158
|
+
}
|
|
148
159
|
return (this.operateMap[this.innerValue.formType] || {}).items || []
|
|
149
160
|
},
|
|
150
161
|
operateMap () {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:operate="cnoditionOperate"
|
|
20
20
|
:value="item"
|
|
21
21
|
:get-value-component="handleGetValueComponent(item)"
|
|
22
|
+
:get-operate-items="getOperateItems"
|
|
22
23
|
@input="handleConditionItemValueChange(item, $event)"
|
|
23
24
|
>
|
|
24
25
|
</advanced-filter-condition-item>
|
|
@@ -84,6 +85,9 @@ export default {
|
|
|
84
85
|
getValueComponent () {
|
|
85
86
|
return this.UiAdvancedFilter.getValueComponent
|
|
86
87
|
},
|
|
88
|
+
getOperateItems () {
|
|
89
|
+
return this.UiAdvancedFilter.getOperateItems
|
|
90
|
+
},
|
|
87
91
|
innerValue: {
|
|
88
92
|
get () {
|
|
89
93
|
if (!this.value || !this.value.length) {
|