@aochuang/common 1.0.144 → 1.0.145

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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/common",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {