@aochuang/common 1.0.144 → 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.
@@ -92,6 +92,13 @@ export default {
92
92
  }
93
93
  },
94
94
  methods: {
95
+ emitChange (size, oldSize) {
96
+ this.$emit('change', size, {
97
+ size,
98
+ oldSize,
99
+ direction: this.direction
100
+ })
101
+ },
95
102
  startDrag (e) {
96
103
  e.preventDefault()
97
104
  this.isDragging = true
@@ -139,6 +146,9 @@ export default {
139
146
  }
140
147
  },
141
148
  watch: {
149
+ currentSize (newVal, oldVal) {
150
+ this.emitChange(newVal, oldVal)
151
+ },
142
152
  initialSize (newVal) {
143
153
  this.currentSize = newVal
144
154
  }
@@ -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.144",
3
+ "version": "1.0.146",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {