@ztocwst/rc-pro-materials 0.1.32 → 0.1.34

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.
Files changed (30) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/designer.html +4 -4
  5. package/build/lowcode/index.html +4 -4
  6. package/build/lowcode/meta.js +1 -1
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/dist/SCM_Comps.css +1 -1
  12. package/dist/SCM_Comps.js +2 -2
  13. package/dist/SCM_Comps.js.map +1 -1
  14. package/es/components/z-agg-block/index.less +10 -2
  15. package/es/components/z-agg-block/z-agg-block.js +1 -1
  16. package/es/components/z-pointer-block/z-pointer-block.js +4 -2
  17. package/es/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
  18. package/es/components/z-templates-data-common/components/link-renderer/index.js +2 -2
  19. package/es/components/z-templates-data-common/components/link-renderer/index.less +6 -4
  20. package/es/components/z-templates-data-common/data-common.helper.js +42 -38
  21. package/es/style.js +2 -0
  22. package/lib/components/z-agg-block/index.less +10 -2
  23. package/lib/components/z-agg-block/z-agg-block.js +1 -1
  24. package/lib/components/z-pointer-block/z-pointer-block.js +4 -2
  25. package/lib/components/z-templates-data-common/components/custom-renderer/index.js +20 -11
  26. package/lib/components/z-templates-data-common/components/link-renderer/index.js +2 -2
  27. package/lib/components/z-templates-data-common/components/link-renderer/index.less +6 -4
  28. package/lib/components/z-templates-data-common/data-common.helper.js +42 -38
  29. package/lib/style.js +1 -0
  30. package/package.json +3 -3
@@ -6,8 +6,11 @@
6
6
  border-radius: 8px;
7
7
  padding: 16px;
8
8
  overflow: hidden;
9
+ transition: all 0.3s ease-in 0s;
9
10
 
10
11
  &.animate:hover {
12
+ position: relative;
13
+ z-index: 99;
11
14
  transform: scale(1.05);
12
15
  transition: all 0.3s ease-in;
13
16
  }
@@ -47,6 +50,11 @@
47
50
  grid-gap: 10px;
48
51
  grid-template-columns: repeat(1, 1fr);
49
52
 
53
+ .z-pointer-block {
54
+ border: 0;
55
+ transition: all 0.3s ease-in 0s;
56
+ }
57
+
50
58
  .z-pointer-block.animate:hover {
51
59
  box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.1);
52
60
  transform: scale(1.05);
@@ -54,7 +62,7 @@
54
62
  }
55
63
 
56
64
  // 流程指标块
57
- &.process .z-pointer-block,
65
+ &.process .z-pointer-block-panel,
58
66
  &.process > * {
59
67
  position: relative;
60
68
 
@@ -90,7 +98,7 @@
90
98
  }
91
99
 
92
100
  // 纵向
93
- &.vertical .z-pointer-block,
101
+ &.vertical .z-pointer-block-panel,
94
102
  &.vertical > * {
95
103
  &::before {
96
104
  position: absolute;
@@ -17,7 +17,7 @@ var ZAggBlock = function ZAggBlock(_ref) {
17
17
  _onClick = _ref.onClick,
18
18
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
19
  return /*#__PURE__*/React.createElement("div", {
20
- className: classnames('pointer-block-wrap', {
20
+ className: classnames("pointer-block-wrap", {
21
21
  animate: !!_onClick
22
22
  }),
23
23
  style: _extends({
@@ -12,7 +12,9 @@ var ZPointerBlock = function ZPointerBlock(props) {
12
12
  align = props.align,
13
13
  _onClick = props.onClick;
14
14
  return /*#__PURE__*/React.createElement("div", {
15
- className: classnames('z-pointer-block', {
15
+ className: "z-pointer-block-panel"
16
+ }, /*#__PURE__*/React.createElement("div", {
17
+ className: classnames("z-pointer-block", {
16
18
  // 聚合指标里可点击时添加css动效
17
19
  animate: !!_onClick
18
20
  }),
@@ -31,6 +33,6 @@ var ZPointerBlock = function ZPointerBlock(props) {
31
33
  groupSeparator: ""
32
34
  })), icon ? /*#__PURE__*/React.createElement(_Col, {
33
35
  className: "z-pointer-icon"
34
- }, icon) : null));
36
+ }, icon) : null)));
35
37
  };
36
38
  export default ZPointerBlock;
@@ -1,3 +1,4 @@
1
+ import _Spin from "antd/es/spin";
1
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
3
  import _extends from "@babel/runtime/helpers/extends";
3
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
@@ -26,8 +27,11 @@ var CustomRenderer = function CustomRenderer(props) {
26
27
  result = _useState[0],
27
28
  setResult = _useState[1];
28
29
  var _useState2 = useState(false),
29
- isLink = _useState2[0],
30
- setIsLink = _useState2[1];
30
+ loading = _useState2[0],
31
+ setLoading = _useState2[1];
32
+ var _useState3 = useState(false),
33
+ isLink = _useState3[0],
34
+ setIsLink = _useState3[1];
31
35
  var linkChartRef = useRef();
32
36
  var timer = null;
33
37
  var onLink = function onLink(values) {
@@ -62,25 +66,28 @@ var CustomRenderer = function CustomRenderer(props) {
62
66
  queryParams: queryParams,
63
67
  dataSetName: dataSetName
64
68
  };
65
- _context.next = 8;
69
+ setLoading(true);
70
+ _context.next = 9;
66
71
  return getReportData(rcProContext, formatter ? formatter === null || formatter === void 0 ? void 0 : formatter(data) : data);
67
- case 8:
72
+ case 9:
68
73
  res = _context.sent;
74
+ setLoading(false);
69
75
  if (res !== null && res !== void 0 && res.success) {
70
76
  setResult(res === null || res === void 0 ? void 0 : res.result);
71
77
  }
72
- _context.next = 16;
78
+ _context.next = 19;
73
79
  break;
74
- case 12:
75
- _context.prev = 12;
80
+ case 14:
81
+ _context.prev = 14;
76
82
  _context.t0 = _context["catch"](1);
83
+ setLoading(false);
77
84
  setResult(null);
78
85
  console.error(_context.t0);
79
- case 16:
86
+ case 19:
80
87
  case "end":
81
88
  return _context.stop();
82
89
  }
83
- }, _callee, null, [[1, 12]]);
90
+ }, _callee, null, [[1, 14]]);
84
91
  }));
85
92
  return function getDataSource(_x) {
86
93
  return _ref2.apply(this, arguments);
@@ -141,11 +148,13 @@ var CustomRenderer = function CustomRenderer(props) {
141
148
  queryChart: queryChart
142
149
  };
143
150
  });
144
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
151
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
145
152
  style: {
146
153
  display: !isLink ? 'block' : 'none'
147
154
  }
148
- }, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result)), /*#__PURE__*/React.createElement("div", {
155
+ }, /*#__PURE__*/React.createElement(_Spin, {
156
+ spinning: loading
157
+ }, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result))), /*#__PURE__*/React.createElement("div", {
149
158
  style: {
150
159
  display: isLink ? 'block' : 'none'
151
160
  }
@@ -275,12 +275,12 @@ var LinkRenderer = function LinkRenderer(props) {
275
275
  className: "arrow-left",
276
276
  onClick: onBack
277
277
  }), /*#__PURE__*/React.createElement("span", null, linkState.chartTitle || linkPageTitle)), (linkPage === null || linkPage === void 0 ? void 0 : (_linkPage$filter = linkPage.filter(function (field) {
278
- return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName;
278
+ return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName && (field === null || field === void 0 ? void 0 : field.chartTitle) === linkState.chartTitle;
279
279
  })) === null || _linkPage$filter === void 0 ? void 0 : _linkPage$filter.length) <= 1 ? null : /*#__PURE__*/React.createElement(_Radio.Group, {
280
280
  value: "" + (linkState === null || linkState === void 0 ? void 0 : linkState.dataSetName) + separator + linkState.index,
281
281
  onChange: handleLinkChange
282
282
  }, linkPage === null || linkPage === void 0 ? void 0 : linkPage.map(function (field, index) {
283
- return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName ? /*#__PURE__*/React.createElement(_Radio.Button, {
283
+ return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName && (field === null || field === void 0 ? void 0 : field.chartTitle) === linkState.chartTitle ? /*#__PURE__*/React.createElement(_Radio.Button, {
284
284
  value: "" + (field === null || field === void 0 ? void 0 : field.dataSetName) + separator + index.toString(),
285
285
  key: "" + (field === null || field === void 0 ? void 0 : field.dataSetName) + separator + index.toString()
286
286
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,5 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  .link-head {
2
4
  display: flex;
3
5
  align-items: center;
@@ -24,8 +26,8 @@
24
26
  cursor: pointer;
25
27
  }
26
28
 
27
- // .link-label {
28
- // display: flex;
29
- // align-items: center;
30
- // }
29
+ .arrow-left:hover {
30
+ transition: all 0.3s ease-in;
31
+ color: var(--ant-primary-color, @primary-color);
32
+ }
31
33
  }
@@ -162,30 +162,32 @@ var token = 'scm:tenant:token:2:104:177217352666D386AA01E5AF6293727D';
162
162
  /** 获取维度指标 */
163
163
  export var getDimTarget = /*#__PURE__*/function () {
164
164
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params) {
165
- var _ref2, materialsRequest, env, res, _res;
165
+ var _data_env_mapping$env;
166
+ var _ref2, materialsRequest, env, data_env_mapping, __env, res, _res;
166
167
  return _regeneratorRuntime.wrap(function _callee$(_context) {
167
168
  while (1) switch (_context.prev = _context.next) {
168
169
  case 0:
169
- _ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env; // 供应链里由子应用透传
170
+ _ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env, data_env_mapping = _ref2.data_env_mapping;
171
+ __env = (_data_env_mapping$env = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env !== void 0 ? _data_env_mapping$env : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
170
172
  if (!materialsRequest) {
171
- _context.next = 6;
173
+ _context.next = 7;
172
174
  break;
173
175
  }
174
- _context.next = 4;
176
+ _context.next = 5;
175
177
  return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
176
178
  method: 'POST',
177
179
  data: {
178
- bigDataBody: _extends({
179
- env: env
180
- }, params)
180
+ bigDataBody: _extends({}, __env ? {
181
+ env: __env
182
+ } : {}, params)
181
183
  }
182
184
  });
183
- case 4:
185
+ case 5:
184
186
  res = _context.sent;
185
187
  return _context.abrupt("return", res);
186
- case 6:
187
- _context.prev = 6;
188
- _context.next = 9;
188
+ case 7:
189
+ _context.prev = 7;
190
+ _context.next = 10;
189
191
  return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
190
192
  method: 'POST',
191
193
  body: JSON.stringify({
@@ -198,21 +200,21 @@ export var getDimTarget = /*#__PURE__*/function () {
198
200
  token: token
199
201
  }
200
202
  });
201
- case 9:
203
+ case 10:
202
204
  _res = _context.sent;
203
- _context.next = 12;
205
+ _context.next = 13;
204
206
  return _res.json();
205
- case 12:
207
+ case 13:
206
208
  return _context.abrupt("return", _context.sent);
207
- case 15:
208
- _context.prev = 15;
209
- _context.t0 = _context["catch"](6);
209
+ case 16:
210
+ _context.prev = 16;
211
+ _context.t0 = _context["catch"](7);
210
212
  return _context.abrupt("return", {});
211
- case 18:
213
+ case 19:
212
214
  case "end":
213
215
  return _context.stop();
214
216
  }
215
- }, _callee, null, [[6, 15]]);
217
+ }, _callee, null, [[7, 16]]);
216
218
  }));
217
219
  return function getDimTarget(_x, _x2) {
218
220
  return _ref.apply(this, arguments);
@@ -222,30 +224,32 @@ export var getDimTarget = /*#__PURE__*/function () {
222
224
  /** 获取报表数据 */
223
225
  export var getReportData = /*#__PURE__*/function () {
224
226
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(rcProContext, params) {
225
- var _ref4, materialsRequest, env, res, _res2;
227
+ var _data_env_mapping$env2;
228
+ var _ref4, materialsRequest, env, data_env_mapping, __env, res, _res2;
226
229
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
227
230
  while (1) switch (_context2.prev = _context2.next) {
228
231
  case 0:
229
- _ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env; // 供应链里由子应用透传
232
+ _ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env, data_env_mapping = _ref4.data_env_mapping;
233
+ __env = (_data_env_mapping$env2 = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env2 !== void 0 ? _data_env_mapping$env2 : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
230
234
  if (!materialsRequest) {
231
- _context2.next = 6;
235
+ _context2.next = 7;
232
236
  break;
233
237
  }
234
- _context2.next = 4;
238
+ _context2.next = 5;
235
239
  return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/" + params.dataSetName, {
236
240
  method: 'POST',
237
241
  data: {
238
- bigDataBody: _extends({
239
- env: env
240
- }, params)
242
+ bigDataBody: _extends({}, __env ? {
243
+ env: __env
244
+ } : {}, params)
241
245
  }
242
246
  });
243
- case 4:
247
+ case 5:
244
248
  res = _context2.sent;
245
249
  return _context2.abrupt("return", res);
246
- case 6:
247
- _context2.prev = 6;
248
- _context2.next = 9;
250
+ case 7:
251
+ _context2.prev = 7;
252
+ _context2.next = 10;
249
253
  return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/" + params.dataSetName, {
250
254
  method: 'POST',
251
255
  body: JSON.stringify({
@@ -258,21 +262,21 @@ export var getReportData = /*#__PURE__*/function () {
258
262
  token: token
259
263
  }
260
264
  });
261
- case 9:
265
+ case 10:
262
266
  _res2 = _context2.sent;
263
- _context2.next = 12;
267
+ _context2.next = 13;
264
268
  return _res2.json();
265
- case 12:
269
+ case 13:
266
270
  return _context2.abrupt("return", _context2.sent);
267
- case 15:
268
- _context2.prev = 15;
269
- _context2.t0 = _context2["catch"](6);
271
+ case 16:
272
+ _context2.prev = 16;
273
+ _context2.t0 = _context2["catch"](7);
270
274
  return _context2.abrupt("return", {});
271
- case 18:
275
+ case 19:
272
276
  case "end":
273
277
  return _context2.stop();
274
278
  }
275
- }, _callee2, null, [[6, 15]]);
279
+ }, _callee2, null, [[7, 16]]);
276
280
  }));
277
281
  return function getReportData(_x3, _x4) {
278
282
  return _ref3.apply(this, arguments);
package/es/style.js CHANGED
@@ -10,6 +10,7 @@ import 'antd/lib/message/style';
10
10
  import 'antd/lib/tabs/style';
11
11
  import 'antd/lib/checkbox/style';
12
12
  import 'antd/lib/radio/style';
13
+ import 'antd/lib/spin/style';
13
14
  import 'antd/es/statistic/style';
14
15
  import 'antd/es/progress/style';
15
16
  import 'antd/es/table/style';
@@ -20,4 +21,5 @@ import 'antd/es/message/style';
20
21
  import 'antd/es/tabs/style';
21
22
  import 'antd/es/checkbox/style';
22
23
  import 'antd/es/radio/style';
24
+ import 'antd/es/spin/style';
23
25
  import './index.scss';
@@ -6,8 +6,11 @@
6
6
  border-radius: 8px;
7
7
  padding: 16px;
8
8
  overflow: hidden;
9
+ transition: all 0.3s ease-in 0s;
9
10
 
10
11
  &.animate:hover {
12
+ position: relative;
13
+ z-index: 99;
11
14
  transform: scale(1.05);
12
15
  transition: all 0.3s ease-in;
13
16
  }
@@ -47,6 +50,11 @@
47
50
  grid-gap: 10px;
48
51
  grid-template-columns: repeat(1, 1fr);
49
52
 
53
+ .z-pointer-block {
54
+ border: 0;
55
+ transition: all 0.3s ease-in 0s;
56
+ }
57
+
50
58
  .z-pointer-block.animate:hover {
51
59
  box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.1);
52
60
  transform: scale(1.05);
@@ -54,7 +62,7 @@
54
62
  }
55
63
 
56
64
  // 流程指标块
57
- &.process .z-pointer-block,
65
+ &.process .z-pointer-block-panel,
58
66
  &.process > * {
59
67
  position: relative;
60
68
 
@@ -90,7 +98,7 @@
90
98
  }
91
99
 
92
100
  // 纵向
93
- &.vertical .z-pointer-block,
101
+ &.vertical .z-pointer-block-panel,
94
102
  &.vertical > * {
95
103
  &::before {
96
104
  position: absolute;
@@ -22,7 +22,7 @@ var ZAggBlock = function ZAggBlock(_ref) {
22
22
  _onClick = _ref.onClick,
23
23
  rest = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
24
24
  return /*#__PURE__*/_react["default"].createElement("div", {
25
- className: (0, _classnames["default"])('pointer-block-wrap', {
25
+ className: (0, _classnames["default"])("pointer-block-wrap", {
26
26
  animate: !!_onClick
27
27
  }),
28
28
  style: (0, _extends2["default"])({
@@ -17,7 +17,9 @@ var ZPointerBlock = function ZPointerBlock(props) {
17
17
  align = props.align,
18
18
  _onClick = props.onClick;
19
19
  return /*#__PURE__*/React.createElement("div", {
20
- className: (0, _classnames["default"])('z-pointer-block', {
20
+ className: "z-pointer-block-panel"
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: (0, _classnames["default"])("z-pointer-block", {
21
23
  // 聚合指标里可点击时添加css动效
22
24
  animate: !!_onClick
23
25
  }),
@@ -36,7 +38,7 @@ var ZPointerBlock = function ZPointerBlock(props) {
36
38
  groupSeparator: ""
37
39
  })), icon ? /*#__PURE__*/React.createElement(_col["default"], {
38
40
  className: "z-pointer-icon"
39
- }, icon) : null));
41
+ }, icon) : null)));
40
42
  };
41
43
  var _default = ZPointerBlock;
42
44
  exports["default"] = _default;
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
7
+ var _spin = _interopRequireDefault(require("antd/lib/spin"));
7
8
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
8
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _react = require("react");
@@ -31,8 +32,11 @@ var CustomRenderer = function CustomRenderer(props) {
31
32
  result = _useState[0],
32
33
  setResult = _useState[1];
33
34
  var _useState2 = (0, _react.useState)(false),
34
- isLink = _useState2[0],
35
- setIsLink = _useState2[1];
35
+ loading = _useState2[0],
36
+ setLoading = _useState2[1];
37
+ var _useState3 = (0, _react.useState)(false),
38
+ isLink = _useState3[0],
39
+ setIsLink = _useState3[1];
36
40
  var linkChartRef = (0, _react.useRef)();
37
41
  var timer = null;
38
42
  var onLink = function onLink(values) {
@@ -67,25 +71,28 @@ var CustomRenderer = function CustomRenderer(props) {
67
71
  queryParams: queryParams,
68
72
  dataSetName: dataSetName
69
73
  };
70
- _context.next = 8;
74
+ setLoading(true);
75
+ _context.next = 9;
71
76
  return (0, _dataCommon.getReportData)(rcProContext, formatter ? formatter === null || formatter === void 0 ? void 0 : formatter(data) : data);
72
- case 8:
77
+ case 9:
73
78
  res = _context.sent;
79
+ setLoading(false);
74
80
  if (res !== null && res !== void 0 && res.success) {
75
81
  setResult(res === null || res === void 0 ? void 0 : res.result);
76
82
  }
77
- _context.next = 16;
83
+ _context.next = 19;
78
84
  break;
79
- case 12:
80
- _context.prev = 12;
85
+ case 14:
86
+ _context.prev = 14;
81
87
  _context.t0 = _context["catch"](1);
88
+ setLoading(false);
82
89
  setResult(null);
83
90
  console.error(_context.t0);
84
- case 16:
91
+ case 19:
85
92
  case "end":
86
93
  return _context.stop();
87
94
  }
88
- }, _callee, null, [[1, 12]]);
95
+ }, _callee, null, [[1, 14]]);
89
96
  }));
90
97
  return function getDataSource(_x) {
91
98
  return _ref2.apply(this, arguments);
@@ -146,11 +153,13 @@ var CustomRenderer = function CustomRenderer(props) {
146
153
  queryChart: queryChart
147
154
  };
148
155
  });
149
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
156
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
150
157
  style: {
151
158
  display: !isLink ? 'block' : 'none'
152
159
  }
153
- }, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result)), /*#__PURE__*/React.createElement("div", {
160
+ }, /*#__PURE__*/React.createElement(_spin["default"], {
161
+ spinning: loading
162
+ }, (_props$child = props.child) === null || _props$child === void 0 ? void 0 : _props$child.call(props, result))), /*#__PURE__*/React.createElement("div", {
154
163
  style: {
155
164
  display: isLink ? 'block' : 'none'
156
165
  }
@@ -280,12 +280,12 @@ var LinkRenderer = function LinkRenderer(props) {
280
280
  className: "arrow-left",
281
281
  onClick: onBack
282
282
  }), /*#__PURE__*/React.createElement("span", null, linkState.chartTitle || linkPageTitle)), (linkPage === null || linkPage === void 0 ? void 0 : (_linkPage$filter = linkPage.filter(function (field) {
283
- return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName;
283
+ return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName && (field === null || field === void 0 ? void 0 : field.chartTitle) === linkState.chartTitle;
284
284
  })) === null || _linkPage$filter === void 0 ? void 0 : _linkPage$filter.length) <= 1 ? null : /*#__PURE__*/React.createElement(_radio["default"].Group, {
285
285
  value: "" + (linkState === null || linkState === void 0 ? void 0 : linkState.dataSetName) + _dataCommon.separator + linkState.index,
286
286
  onChange: handleLinkChange
287
287
  }, linkPage === null || linkPage === void 0 ? void 0 : linkPage.map(function (field, index) {
288
- return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName ? /*#__PURE__*/React.createElement(_radio["default"].Button, {
288
+ return (field === null || field === void 0 ? void 0 : field.dataSetName) === linkState.dataSetName && (field === null || field === void 0 ? void 0 : field.chartTitle) === linkState.chartTitle ? /*#__PURE__*/React.createElement(_radio["default"].Button, {
289
289
  value: "" + (field === null || field === void 0 ? void 0 : field.dataSetName) + _dataCommon.separator + index.toString(),
290
290
  key: "" + (field === null || field === void 0 ? void 0 : field.dataSetName) + _dataCommon.separator + index.toString()
291
291
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,5 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  .link-head {
2
4
  display: flex;
3
5
  align-items: center;
@@ -24,8 +26,8 @@
24
26
  cursor: pointer;
25
27
  }
26
28
 
27
- // .link-label {
28
- // display: flex;
29
- // align-items: center;
30
- // }
29
+ .arrow-left:hover {
30
+ transition: all 0.3s ease-in;
31
+ color: var(--ant-primary-color, @primary-color);
32
+ }
31
33
  }