@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
|
}
|