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.
@@ -276,7 +276,7 @@ export default {
276
276
  }
277
277
 
278
278
  /** 地图加载完成 */
279
- Vue.prototype.$amapBus.$emit('onAMapMounted')
279
+ Vue.prototype.$bus.$emit('onAMapMounted')
280
280
 
281
281
  /** 常用覆盖物 */
282
282
  Vue.prototype.$amapLayers = {
@@ -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
  },
@@ -52,7 +52,7 @@ export default {
52
52
  this.layout === 'vertical' ?
53
53
  this.$attrs :
54
54
  {
55
- ...getDefaultFormAttrs(),
55
+ ...this.getDefaultFormAttrs(),
56
56
  ...this.$attrs
57
57
  }
58
58
  return attr
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [