web-component-gallery 2.2.21 → 2.2.22
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/dist/js.umd.js +1 -1
- package/lib/amap-draw/index.jsx +2 -4
- package/package.json +1 -1
package/lib/amap-draw/index.jsx
CHANGED
|
@@ -54,7 +54,7 @@ export default {
|
|
|
54
54
|
drawLayers: null,
|
|
55
55
|
drawMouseTool: null,
|
|
56
56
|
drawOperates: [
|
|
57
|
-
{ type: 'primary', text: '绘制', event: { click: this.handleDrawStart } },
|
|
57
|
+
{ type: 'primary', text: '绘制', event: { click: () => this.handleDrawStart() } },
|
|
58
58
|
{ text: '清除', event: { click: this.handleDrawClear } },
|
|
59
59
|
{ type: 'primary', text: '保存', event: { click: this.handleDrawSave } },
|
|
60
60
|
{ text: '取消', event: { click: this.handleDrawReset } }
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
187
187
|
// 保存绘制
|
|
188
188
|
handleDrawSave() {
|
|
189
189
|
if (!this.drawLayers) {
|
|
190
|
-
return this
|
|
190
|
+
return this.handleDrawReset()
|
|
191
191
|
}
|
|
192
192
|
this.assignDrawLayers(this.drawType)
|
|
193
193
|
},
|
|
@@ -318,8 +318,6 @@ export default {
|
|
|
318
318
|
anchor: 'bottom-center',
|
|
319
319
|
icon: await this.amapStore.setIcon(this.drawIcon)
|
|
320
320
|
} : { strokeWeight: 8 }
|
|
321
|
-
|
|
322
|
-
console.log(drawType, '--drawType绘制类型')
|
|
323
321
|
|
|
324
322
|
this.drawMouseTool[CONFIG.drawTypes[drawType]]({
|
|
325
323
|
...baseOptions,
|