web-component-gallery 2.1.1 → 2.1.3
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/extensions/AMap.js +1 -1
- package/lib/amap-draw/index.jsx +5 -2
- package/lib/model/Model.js +1 -1
- package/package.json +1 -1
package/extensions/AMap.js
CHANGED
package/lib/amap-draw/index.jsx
CHANGED
|
@@ -26,7 +26,9 @@ export const AmapDrawProps = {
|
|
|
26
26
|
/** 限制区域样式配置 */
|
|
27
27
|
drawLimitAreaOptions: PropTypes.object.def({}),
|
|
28
28
|
/** 是否为纯地图展示数据 */
|
|
29
|
-
isExhibition: PropTypes.bool.def(false)
|
|
29
|
+
isExhibition: PropTypes.bool.def(false),
|
|
30
|
+
/** 绘制操作自定义 */
|
|
31
|
+
drawButtonOperate: PropTypes.object
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const AmapDraw = {
|
|
@@ -66,7 +68,8 @@ const AmapDraw = {
|
|
|
66
68
|
save: [
|
|
67
69
|
{ type: 'primary', text: '保存', event: { click: this.handleDrawSave } },
|
|
68
70
|
{ text: '取消', event: { click: this.handleDrawReset } }
|
|
69
|
-
]
|
|
71
|
+
],
|
|
72
|
+
...(this.drawButtonOperate || {})
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
},
|
package/lib/model/Model.js
CHANGED