xy-map 1.0.24 → 1.0.26
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/package.json
CHANGED
|
@@ -98,22 +98,24 @@ export default {
|
|
|
98
98
|
startDraw (type) {
|
|
99
99
|
this.type = type
|
|
100
100
|
if (type === 'move') return
|
|
101
|
-
console.log('开始绘制')
|
|
102
|
-
this.draw.changeMode(type)
|
|
103
101
|
if (this.single) {
|
|
104
102
|
this.drawDelete()
|
|
105
103
|
}
|
|
104
|
+
console.log('开始绘制')
|
|
105
|
+
this.draw.changeMode(type)
|
|
106
106
|
},
|
|
107
107
|
drawEnd (e) {
|
|
108
108
|
console.log(e)
|
|
109
109
|
const data = this.draw.getAll()
|
|
110
110
|
console.log('绘制结束', data)
|
|
111
111
|
this.type = 'move'
|
|
112
|
+
this.$emit('end', data)
|
|
112
113
|
},
|
|
113
114
|
drawUpdate (e) {
|
|
114
115
|
console.log(e)
|
|
115
116
|
const data = this.draw.getAll()
|
|
116
117
|
console.log('修改结束', data)
|
|
118
|
+
this.$emit('update', data)
|
|
117
119
|
},
|
|
118
120
|
drawDelete () {
|
|
119
121
|
this.draw.deleteAll()
|