web-component-gallery 2.2.15 → 2.2.17

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.
@@ -2,7 +2,9 @@ import AmapSearch from '../amap-comp/AmapSearch.jsx'
2
2
  import PropTypes from 'ant-design-vue/es/_util/vue-types'
3
3
  import { getAMapInstance } from '../../extensions/AMap.js'
4
4
 
5
- export const AmapDrawProps = {
5
+ const BASE_IP = process.env.VUE_APP_STATIC_URL || location.origin
6
+
7
+ export const AmapDrawProps = {
6
8
  /** drawEl为地图容器实例名称 */
7
9
  drawEl: PropTypes.string.def('AmapDraw'),
8
10
  /** drawType为绘制类型
@@ -10,13 +12,13 @@ export const AmapDrawProps = {
10
12
  */
11
13
  drawType: PropTypes.string.def('point'),
12
14
  /** 绘制图标 (只在point类型下生效 */
13
- drawIcon: PropTypes.any.def('http://api.qxfnkj.com:8090/poi/poi-marker-default.png'),
15
+ drawIcon: PropTypes.any.def(`${BASE_IP}/poi/poi-marker-default.png`),
14
16
  /** drawCount为绘制物绘制个数 */
15
17
  drawCount: PropTypes.number.def(1),
16
18
  /** drawOptions为绘制物配置项 */
17
19
  drawOptions: PropTypes.object.def({}),
18
20
  /** drawInfo为绘制物信息 */
19
- drawInfo: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
21
+ drawInfo: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
20
22
  /** drawInfoAll为所有不同类型绘制物信息(用于回显地图图层)
21
23
  * 格式: { point: ([]||{}), line: ([]||{}) }
22
24
  */
@@ -29,7 +31,7 @@ export const AmapDrawProps = {
29
31
  isExhibition: PropTypes.bool.def(false),
30
32
  /** 绘制操作自定义 */
31
33
  drawButtonOperate: PropTypes.object
32
- }
34
+ }
33
35
 
34
36
  const AmapDraw = {
35
37
  name: 'AmapDraw',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.2.15",
3
+ "version": "2.2.17",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [