@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.
@@ -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) {
@@ -52,6 +52,9 @@ export default {
52
52
  getValueComponent: {
53
53
  type: Function
54
54
  },
55
+ getOperateItems: {
56
+ type: Function
57
+ },
55
58
  // 是否显示场景
56
59
  showScene: {
57
60
  type: Boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/common",
3
- "version": "1.0.145",
3
+ "version": "1.0.146",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {