dtable-ui-component 6.0.29-beta → 6.0.29-beta1

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.
@@ -127,13 +127,14 @@ class CountryEditor extends _react.Component {
127
127
  }, 300);
128
128
  };
129
129
  this.getLocationData = () => {
130
+ var _window;
130
131
  const {
131
132
  config
132
133
  } = this.props;
133
134
  const {
134
135
  mediaUrl
135
136
  } = {
136
- ...window.dtable,
137
+ ...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
137
138
  ...config
138
139
  };
139
140
  let geoFileName = 'en-region-location';
@@ -22,11 +22,12 @@ const MINE_MAP_ONLINE_SERVICE = {
22
22
  SERVICE_URL: 'https://service.minedata.cn/service'
23
23
  };
24
24
  const getMineMapUrl = function () {
25
+ var _window;
25
26
  let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26
27
  const {
27
28
  dtableMineMapCustomConfig = {}
28
29
  } = {
29
- ...window.dtable,
30
+ ...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
30
31
  ...config
31
32
  };
32
33
  const {
@@ -66,13 +67,14 @@ const getInitCenter = function () {
66
67
  };
67
68
  exports.getInitCenter = getInitCenter;
68
69
  const getMapInfo = function () {
70
+ var _window2;
69
71
  let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
70
72
  const {
71
73
  dtableBaiduMapKey: baiduMapKey,
72
74
  dtableGoogleMapKey: googleMapKey,
73
75
  dtableMineMapKey: mineMapKey
74
76
  } = {
75
- ...window.dtable,
77
+ ...((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable),
76
78
  ...config
77
79
  };
78
80
  let mapType;
@@ -83,13 +83,18 @@ class RowExpandGeolocationEditor extends _react.default.Component {
83
83
  });
84
84
  };
85
85
  this.getLocationInfo = value => {
86
+ var _window;
86
87
  const {
87
- column
88
+ column,
89
+ config
88
90
  } = this.props;
89
91
  const {
90
92
  dtableBaiduMapKey,
91
93
  dtableMineMapKey
92
- } = window.dtable;
94
+ } = {
95
+ ...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
96
+ ...config
97
+ };
93
98
  const isBaiduMap = !!(dtableBaiduMapKey || dtableMineMapKey);
94
99
  return (0, _dtableUtils.getGeolocationDisplayString)(value, column.data, {
95
100
  isBaiduMap,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.29-beta",
3
+ "version": "6.0.29-beta1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",