xy-map 1.0.27 → 1.0.28

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.27",
3
+ "version": "1.0.28",
4
4
  "description": "地图组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -122,8 +122,6 @@ import mapRain from './package/mapRain.vue'
122
122
  import mapLoad from './package/mapLoad.vue'
123
123
  import drawTools from './package/draw/index.vue'
124
124
 
125
- Vue.component('mapRain', mapRain)
126
- Vue.component('mapLoad', mapLoad)
127
125
  // Vue.component('drawTools', mapLoad)
128
126
 
129
127
  export {
@@ -132,6 +130,8 @@ export {
132
130
  mapDraw,
133
131
  mapTools,
134
132
  mapEvent,
133
+ mapRain,
134
+ mapLoad,
135
135
  mapMarker,
136
136
  drawTools
137
137
  }
@@ -99,18 +99,19 @@ export default {
99
99
  }
100
100
  console.log('开始绘制')
101
101
  this.draw.changeMode(type)
102
+ this.$emit('start')
102
103
  },
103
104
  drawEnd (e) {
104
- console.log(e)
105
+ // console.log(e)
105
106
  const data = this.draw.getAll()
106
- console.log('绘制结束', data)
107
+ console.log('绘制结束')
107
108
  this.type = 'move'
108
109
  this.$emit('end', data)
109
110
  },
110
111
  drawUpdate (e) {
111
- console.log(e)
112
+ // console.log(e)
112
113
  const data = this.draw.getAll()
113
- console.log('修改结束', data)
114
+ console.log('修改结束')
114
115
  this.$emit('update', data)
115
116
  },
116
117
  drawDelete () {