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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "地图组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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()
@@ -92,7 +92,7 @@ export default {
92
92
  /*进度条底层背景样式*/
93
93
  .progress-inner {
94
94
  height: inherit;
95
- background: rgb(142 193 255 / 20%);
95
+ background: rgba(142, 193, 255, 0.2);
96
96
  border-radius: 8px;
97
97
  }
98
98
  /*进度层样式效果,使用动画效果*/