dtable-ui-component 6.0.34 → 6.0.35

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.
@@ -14,15 +14,13 @@ class GeolocationFormatter extends _react.default.Component {
14
14
  let {
15
15
  value,
16
16
  data,
17
- containerClassName,
18
- isBaiduMap
17
+ containerClassName
19
18
  } = this.props;
20
19
  let className = (0, _classnames.default)('dtable-ui cell-formatter-container geolocation-formatter', containerClassName);
21
20
  if (typeof value !== 'object') {
22
21
  return null;
23
22
  }
24
23
  const geolocationDisplayString = (0, _dtableUtils.getGeolocationDisplayString)(value, data, {
25
- isBaiduMap,
26
24
  hyphen: ' '
27
25
  });
28
26
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -39,7 +37,6 @@ GeolocationFormatter.defaultProps = {
39
37
  detail: ''
40
38
  },
41
39
  data: {},
42
- containerClassName: '',
43
- isBaiduMap: false
40
+ containerClassName: ''
44
41
  };
45
42
  var _default = exports.default = GeolocationFormatter;
@@ -82,21 +82,10 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
82
82
  });
83
83
  };
84
84
  this.getLocationInfo = value => {
85
- var _window;
86
85
  const {
87
- column,
88
- config
86
+ column
89
87
  } = this.props;
90
- const {
91
- dtableBaiduMapKey,
92
- dtableMineMapKey
93
- } = {
94
- ...((_window = window) === null || _window === void 0 ? void 0 : _window.dtable),
95
- ...config
96
- };
97
- const isBaiduMap = !!(dtableBaiduMapKey || dtableMineMapKey);
98
88
  return (0, _dtableUtils.getGeolocationDisplayString)(value, column.data, {
99
- isBaiduMap,
100
89
  hyphen: ' '
101
90
  });
102
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.34",
3
+ "version": "6.0.35",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",
@@ -8,7 +8,7 @@
8
8
  "@seafile/seafile-editor": "~2.0.6",
9
9
  "classnames": "2.3.2",
10
10
  "dayjs": "1.10.7",
11
- "dtable-utils": "~5.0.19",
11
+ "dtable-utils": "~5.0.21",
12
12
  "is-hotkey": "0.2.0",
13
13
  "rc-checkbox": "3.5.0",
14
14
  "react-color": "2.19.3",