@ztocwst/rc-pro-materials 0.2.27 → 0.2.28

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.
@@ -46,7 +46,7 @@ export declare const getDimTargetData: (rcProContext: any, params: Record<string
46
46
  /**
47
47
  * 数据渲染格式处理
48
48
  */
49
- export declare const handleValueFormat: (value: valueType, record: Record<string, any>, config?: Record<string, any>, condition?: any[], onLink?: () => void) => any;
49
+ export declare const handleValueFormat: (value: valueType, record: Record<string, any>, config?: Record<string, any>, onLink?: () => void) => any;
50
50
  /**
51
51
  * 根据维度指标获取表格列
52
52
  */
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
- import { separator, defaultSort, computeWidth, getType, handleDecimal, handleThousand, handlePercent, handleLink, handleCondition, getDimTarget } from "../../data-table.helper";
9
+ import { separator, defaultSort, computeWidth, getType, handleDecimal, handleThousand, handlePercent, handleLink, getDimTarget } from "../../data-table.helper";
10
10
  export var stringTrim = function stringTrim(str) {
11
11
  if (!str) return '';
12
12
  return str.replace(/`|'|"/g, '');
@@ -144,7 +144,7 @@ export var getDimTargetData = /*#__PURE__*/function () {
144
144
  /**
145
145
  * 数据渲染格式处理
146
146
  */
147
- export var handleValueFormat = function handleValueFormat(value, record, config, condition, onLink) {
147
+ export var handleValueFormat = function handleValueFormat(value, record, config, onLink) {
148
148
  var _val;
149
149
  var val = value;
150
150
  if (typeof value === 'number') {
@@ -161,9 +161,6 @@ export var handleValueFormat = function handleValueFormat(value, record, config,
161
161
  if (config !== null && config !== void 0 && config.link) {
162
162
  val = handleLink(value, onLink);
163
163
  }
164
- if (condition !== null && condition !== void 0 && condition.length) {
165
- val = handleCondition(value, val, condition);
166
- }
167
164
  return (_val = val) !== null && _val !== void 0 ? _val : "-";
168
165
  };
169
166
 
@@ -178,7 +175,6 @@ export var handleColumns = function handleColumns(option, linkPage, onLink) {
178
175
  var _config3, _config3$link, _config4, _config5, _config6, _config6$otherProps, _config7, _config8, _config9, _config10, _config11, _title$toString, _config12, _config13, _config14;
179
176
  var config;
180
177
  var dataIndex;
181
- var condition;
182
178
  if (!config) {
183
179
  var _option$dimensionSour, _config;
184
180
  /* 通过别名或名称 查找当前维度的配置 */
@@ -222,7 +218,7 @@ export var handleColumns = function handleColumns(option, linkPage, onLink) {
222
218
  fixed: (_config12 = config) !== null && _config12 !== void 0 && _config12.isFixed ? ((_config13 = config) === null || _config13 === void 0 ? void 0 : _config13.fixed) || ((_config14 = config) === null || _config14 === void 0 ? void 0 : _config14.isFixed) : false,
223
219
  render: function render(value, record) {
224
220
  var _config$render, _config15;
225
- return config.custom ? (_config$render = (_config15 = config).render) === null || _config$render === void 0 ? void 0 : _config$render.call(_config15, value, record, config, condition) : handleValueFormat(value, record, config, condition, function () {
221
+ return config.custom ? (_config$render = (_config15 = config).render) === null || _config$render === void 0 ? void 0 : _config$render.call(_config15, value, record, config) : handleValueFormat(value, record, config, function () {
226
222
  return onLink({
227
223
  dataSetName: dataSetName,
228
224
  index: index,
@@ -14,7 +14,6 @@ export declare const separator = "***";
14
14
  /** 时间单位 */
15
15
  export declare const timeUnit: number;
16
16
  /** 介于 前闭后开 */
17
- export declare const BETWEEN = "<=,<";
18
17
  /** 默认排序 */
19
18
  export declare const defaultSort = "asc";
20
19
  /** 数据类型 */
@@ -57,12 +56,6 @@ export declare const handlePercent: (value: valueType, decimal?: number, unit?:
57
56
  * link外链处理
58
57
  */
59
58
  export declare const handleLink: (value: valueType, onLink?: () => void) => import("react").JSX.Element;
60
- /**
61
- * 条件格式设置
62
- * @param value 处理前的值
63
- * @param handledValue 被处理后的值 可能会是link标签
64
- */
65
- export declare const handleCondition: (value: valueType, handledValue: any, conditions: any[]) => any;
66
59
  /** 获取维度指标 */
67
60
  export declare const getDimTarget: (rcProContext: any, params: any) => Promise<any>;
68
61
  /** 获取报表数据 */
@@ -1,16 +1,13 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
4
  import rcProRequest from "../../utils/rcProRequest";
8
5
 
9
6
  /** table config */
10
7
  export var tableConfigDefault = {
11
8
  manual: true,
12
9
  toolBars: false,
13
- resizable: false,
10
+ resizable: true,
14
11
  hideDefRowSelection: true,
15
12
  columns: []
16
13
  };
@@ -25,7 +22,7 @@ export var separator = '***';
25
22
  export var timeUnit = 60 * 1000;
26
23
 
27
24
  /** 介于 前闭后开 */
28
- export var BETWEEN = '<=,<';
25
+ // export const BETWEEN = '<=,<';
29
26
 
30
27
  /** 默认排序 */
31
28
  export var defaultSort = 'asc';
@@ -108,7 +105,7 @@ export var handleDecimal = function handleDecimal(value, decimal) {
108
105
  if (decimal === void 0) {
109
106
  decimal = 2;
110
107
  }
111
- if (value === null || value === undefined) return;
108
+ if (value === null || value === undefined) return null;
112
109
  return Number(value).toFixed(decimal);
113
110
  };
114
111
 
@@ -122,7 +119,7 @@ export var handlePercent = function handlePercent(value, decimal, unit) {
122
119
  if (unit === void 0) {
123
120
  unit = 100;
124
121
  }
125
- if (value === null || value === undefined) return;
122
+ if (value === null || value === undefined) return null;
126
123
  return (Number(value) * unit).toFixed(decimal) + "%";
127
124
  };
128
125
 
@@ -130,50 +127,42 @@ export var handlePercent = function handlePercent(value, decimal, unit) {
130
127
  * link外链处理
131
128
  */
132
129
  export var handleLink = function handleLink(value, onLink) {
133
- if (value === null || value === undefined) return;
130
+ if (value === null || value === undefined) return null;
134
131
  return /*#__PURE__*/React.createElement("a", {
135
132
  href: "javascript:void(0);",
136
133
  onClick: onLink
137
134
  }, value);
138
135
  };
139
136
 
140
- /**
141
- * 条件格式设置
142
- * @param value 处理前的值
143
- * @param handledValue 被处理后的值 可能会是link标签
144
- */
145
- export var handleCondition = function handleCondition(value, handledValue, conditions) {
146
- if (value === null || value === undefined) return;
147
- var val = handledValue;
148
- for (var _iterator = _createForOfIteratorHelperLoose(conditions), _step; !(_step = _iterator()).done;) {
149
- var cur = _step.value;
150
- var condition = cur === null || cur === void 0 ? void 0 : cur.condition;
151
- if ((condition === null || condition === void 0 ? void 0 : condition.type) === BETWEEN) {
152
- var _condition$type;
153
- var _condition$type$split = condition === null || condition === void 0 ? void 0 : (_condition$type = condition.type) === null || _condition$type === void 0 ? void 0 : _condition$type.split(','),
154
- start = _condition$type$split[0],
155
- end = _condition$type$split[1];
156
- if (eval("" + (condition === null || condition === void 0 ? void 0 : condition.start) + start + value) && eval("" + value + end + (condition === null || condition === void 0 ? void 0 : condition.end))) {
157
- var style = {
158
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
159
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
160
- };
161
- val = /*#__PURE__*/React.createElement("div", {
162
- style: style
163
- }, handledValue);
164
- }
165
- } else if (eval("" + value + (condition === null || condition === void 0 ? void 0 : condition.type) + (condition === null || condition === void 0 ? void 0 : condition.value))) {
166
- var _style = {
167
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
168
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
169
- };
170
- val = /*#__PURE__*/React.createElement("div", {
171
- style: _style
172
- }, handledValue);
173
- }
174
- }
175
- return val;
176
- };
137
+ // /**
138
+ // * 条件格式设置
139
+ // * @param value 处理前的值
140
+ // * @param handledValue 被处理后的值 可能会是link标签
141
+ // */
142
+ // export const handleCondition = (value: valueType, handledValue: any, conditions: any[]) => {
143
+ // if (value === null || value === undefined) return;
144
+ // let val: any = handledValue;
145
+ // for (const cur of conditions) {
146
+ // const condition = cur?.condition;
147
+ // if (condition?.type === BETWEEN) {
148
+ // const [start, end] = condition?.type?.split(',');
149
+ // if (eval(`${condition?.start}${start}${value}`) && eval(`${value}${end}${condition?.end}`)) {
150
+ // const style = {
151
+ // color: cur?.fontColor,
152
+ // background: cur?.backgroundColor,
153
+ // };
154
+ // val = <div style={style}>{handledValue}</div>;
155
+ // }
156
+ // } else if (eval(`${value}${condition?.type}${condition?.value}`)) {
157
+ // const style = {
158
+ // color: cur?.fontColor,
159
+ // background: cur?.backgroundColor,
160
+ // };
161
+ // val = <div style={style}>{handledValue}</div>;
162
+ // }
163
+ // }
164
+ // return val;
165
+ // };
177
166
 
178
167
  // mock
179
168
  var token = 'scm:tenant:token:2:104:9e53d7bb-7dac-4e2e-a371-060007dc9f76';
@@ -46,7 +46,7 @@ export declare const getDimTargetData: (rcProContext: any, params: Record<string
46
46
  /**
47
47
  * 数据渲染格式处理
48
48
  */
49
- export declare const handleValueFormat: (value: valueType, record: Record<string, any>, config?: Record<string, any>, condition?: any[], onLink?: () => void) => any;
49
+ export declare const handleValueFormat: (value: valueType, record: Record<string, any>, config?: Record<string, any>, onLink?: () => void) => any;
50
50
  /**
51
51
  * 根据维度指标获取表格列
52
52
  */
@@ -152,7 +152,7 @@ var getDimTargetData = /*#__PURE__*/function () {
152
152
  * 数据渲染格式处理
153
153
  */
154
154
  exports.getDimTargetData = getDimTargetData;
155
- var handleValueFormat = function handleValueFormat(value, record, config, condition, onLink) {
155
+ var handleValueFormat = function handleValueFormat(value, record, config, onLink) {
156
156
  var _val;
157
157
  var val = value;
158
158
  if (typeof value === 'number') {
@@ -169,9 +169,6 @@ var handleValueFormat = function handleValueFormat(value, record, config, condit
169
169
  if (config !== null && config !== void 0 && config.link) {
170
170
  val = (0, _dataTable.handleLink)(value, onLink);
171
171
  }
172
- if (condition !== null && condition !== void 0 && condition.length) {
173
- val = (0, _dataTable.handleCondition)(value, val, condition);
174
- }
175
172
  return (_val = val) !== null && _val !== void 0 ? _val : "-";
176
173
  };
177
174
 
@@ -187,7 +184,6 @@ var handleColumns = function handleColumns(option, linkPage, onLink) {
187
184
  var _config3, _config3$link, _config4, _config5, _config6, _config6$otherProps, _config7, _config8, _config9, _config10, _config11, _title$toString, _config12, _config13, _config14;
188
185
  var config;
189
186
  var dataIndex;
190
- var condition;
191
187
  if (!config) {
192
188
  var _option$dimensionSour, _config;
193
189
  /* 通过别名或名称 查找当前维度的配置 */
@@ -231,7 +227,7 @@ var handleColumns = function handleColumns(option, linkPage, onLink) {
231
227
  fixed: (_config12 = config) !== null && _config12 !== void 0 && _config12.isFixed ? ((_config13 = config) === null || _config13 === void 0 ? void 0 : _config13.fixed) || ((_config14 = config) === null || _config14 === void 0 ? void 0 : _config14.isFixed) : false,
232
228
  render: function render(value, record) {
233
229
  var _config$render, _config15;
234
- return config.custom ? (_config$render = (_config15 = config).render) === null || _config$render === void 0 ? void 0 : _config$render.call(_config15, value, record, config, condition) : handleValueFormat(value, record, config, condition, function () {
230
+ return config.custom ? (_config$render = (_config15 = config).render) === null || _config$render === void 0 ? void 0 : _config$render.call(_config15, value, record, config) : handleValueFormat(value, record, config, function () {
235
231
  return onLink({
236
232
  dataSetName: dataSetName,
237
233
  index: index,
@@ -14,7 +14,6 @@ export declare const separator = "***";
14
14
  /** 时间单位 */
15
15
  export declare const timeUnit: number;
16
16
  /** 介于 前闭后开 */
17
- export declare const BETWEEN = "<=,<";
18
17
  /** 默认排序 */
19
18
  export declare const defaultSort = "asc";
20
19
  /** 数据类型 */
@@ -57,12 +56,6 @@ export declare const handlePercent: (value: valueType, decimal?: number, unit?:
57
56
  * link外链处理
58
57
  */
59
58
  export declare const handleLink: (value: valueType, onLink?: () => void) => import("react").JSX.Element;
60
- /**
61
- * 条件格式设置
62
- * @param value 处理前的值
63
- * @param handledValue 被处理后的值 可能会是link标签
64
- */
65
- export declare const handleCondition: (value: valueType, handledValue: any, conditions: any[]) => any;
66
59
  /** 获取维度指标 */
67
60
  export declare const getDimTarget: (rcProContext: any, params: any) => Promise<any>;
68
61
  /** 获取报表数据 */
@@ -2,19 +2,16 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.timeUnit = exports.tableConfigDefault = exports.separator = exports.saveDimTarget = exports.handleThousand = exports.handleQueryParams = exports.handlePercent = exports.handleLink = exports.handleDecimal = exports.handleCondition = exports.getType = exports.getReportData = exports.getMaxWidth = exports.getDimTarget = exports.defaultSort = exports.dateStart = exports.computeWidth = exports.BETWEEN = void 0;
5
+ exports.timeUnit = exports.tableConfigDefault = exports.separator = exports.saveDimTarget = exports.handleThousand = exports.handleQueryParams = exports.handlePercent = exports.handleLink = exports.handleDecimal = exports.getType = exports.getReportData = exports.getMaxWidth = exports.getDimTarget = exports.defaultSort = exports.dateStart = exports.computeWidth = void 0;
6
6
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
7
7
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _rcProRequest = _interopRequireDefault(require("../../utils/rcProRequest"));
10
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
10
  /** table config */
14
11
  var tableConfigDefault = {
15
12
  manual: true,
16
13
  toolBars: false,
17
- resizable: false,
14
+ resizable: true,
18
15
  hideDefRowSelection: true,
19
16
  columns: []
20
17
  };
@@ -32,11 +29,10 @@ exports.separator = separator;
32
29
  var timeUnit = 60 * 1000;
33
30
 
34
31
  /** 介于 前闭后开 */
35
- exports.timeUnit = timeUnit;
36
- var BETWEEN = '<=,<';
32
+ // export const BETWEEN = '<=,<';
37
33
 
38
34
  /** 默认排序 */
39
- exports.BETWEEN = BETWEEN;
35
+ exports.timeUnit = timeUnit;
40
36
  var defaultSort = 'asc';
41
37
 
42
38
  /** 数据类型 */
@@ -122,7 +118,7 @@ var handleDecimal = function handleDecimal(value, decimal) {
122
118
  if (decimal === void 0) {
123
119
  decimal = 2;
124
120
  }
125
- if (value === null || value === undefined) return;
121
+ if (value === null || value === undefined) return null;
126
122
  return Number(value).toFixed(decimal);
127
123
  };
128
124
 
@@ -137,7 +133,7 @@ var handlePercent = function handlePercent(value, decimal, unit) {
137
133
  if (unit === void 0) {
138
134
  unit = 100;
139
135
  }
140
- if (value === null || value === undefined) return;
136
+ if (value === null || value === undefined) return null;
141
137
  return (Number(value) * unit).toFixed(decimal) + "%";
142
138
  };
143
139
 
@@ -146,54 +142,45 @@ var handlePercent = function handlePercent(value, decimal, unit) {
146
142
  */
147
143
  exports.handlePercent = handlePercent;
148
144
  var handleLink = function handleLink(value, onLink) {
149
- if (value === null || value === undefined) return;
145
+ if (value === null || value === undefined) return null;
150
146
  return /*#__PURE__*/React.createElement("a", {
151
147
  href: "javascript:void(0);",
152
148
  onClick: onLink
153
149
  }, value);
154
150
  };
155
151
 
156
- /**
157
- * 条件格式设置
158
- * @param value 处理前的值
159
- * @param handledValue 被处理后的值 可能会是link标签
160
- */
161
- exports.handleLink = handleLink;
162
- var handleCondition = function handleCondition(value, handledValue, conditions) {
163
- if (value === null || value === undefined) return;
164
- var val = handledValue;
165
- for (var _iterator = _createForOfIteratorHelperLoose(conditions), _step; !(_step = _iterator()).done;) {
166
- var cur = _step.value;
167
- var condition = cur === null || cur === void 0 ? void 0 : cur.condition;
168
- if ((condition === null || condition === void 0 ? void 0 : condition.type) === BETWEEN) {
169
- var _condition$type;
170
- var _condition$type$split = condition === null || condition === void 0 ? void 0 : (_condition$type = condition.type) === null || _condition$type === void 0 ? void 0 : _condition$type.split(','),
171
- start = _condition$type$split[0],
172
- end = _condition$type$split[1];
173
- if (eval("" + (condition === null || condition === void 0 ? void 0 : condition.start) + start + value) && eval("" + value + end + (condition === null || condition === void 0 ? void 0 : condition.end))) {
174
- var style = {
175
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
176
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
177
- };
178
- val = /*#__PURE__*/React.createElement("div", {
179
- style: style
180
- }, handledValue);
181
- }
182
- } else if (eval("" + value + (condition === null || condition === void 0 ? void 0 : condition.type) + (condition === null || condition === void 0 ? void 0 : condition.value))) {
183
- var _style = {
184
- color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
185
- background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
186
- };
187
- val = /*#__PURE__*/React.createElement("div", {
188
- style: _style
189
- }, handledValue);
190
- }
191
- }
192
- return val;
193
- };
152
+ // /**
153
+ // * 条件格式设置
154
+ // * @param value 处理前的值
155
+ // * @param handledValue 被处理后的值 可能会是link标签
156
+ // */
157
+ // export const handleCondition = (value: valueType, handledValue: any, conditions: any[]) => {
158
+ // if (value === null || value === undefined) return;
159
+ // let val: any = handledValue;
160
+ // for (const cur of conditions) {
161
+ // const condition = cur?.condition;
162
+ // if (condition?.type === BETWEEN) {
163
+ // const [start, end] = condition?.type?.split(',');
164
+ // if (eval(`${condition?.start}${start}${value}`) && eval(`${value}${end}${condition?.end}`)) {
165
+ // const style = {
166
+ // color: cur?.fontColor,
167
+ // background: cur?.backgroundColor,
168
+ // };
169
+ // val = <div style={style}>{handledValue}</div>;
170
+ // }
171
+ // } else if (eval(`${value}${condition?.type}${condition?.value}`)) {
172
+ // const style = {
173
+ // color: cur?.fontColor,
174
+ // background: cur?.backgroundColor,
175
+ // };
176
+ // val = <div style={style}>{handledValue}</div>;
177
+ // }
178
+ // }
179
+ // return val;
180
+ // };
194
181
 
195
182
  // mock
196
- exports.handleCondition = handleCondition;
183
+ exports.handleLink = handleLink;
197
184
  var token = 'scm:tenant:token:2:104:9e53d7bb-7dac-4e2e-a371-060007dc9f76';
198
185
 
199
186
  /** 获取维度指标 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztocwst/rc-pro-materials",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "@ztocwst/rc-pro-materials",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -22,7 +22,7 @@
22
22
  "f2elint-fix": "f2elint fix",
23
23
  "dumi": "cross-env APP_ROOT=docs dumi dev",
24
24
  "dumi:build": "cross-env APP_ROOT=docs dumi build",
25
- "-prepublishOnly": "npm run build && npm run lowcode:build",
25
+ "prepublishOnly": "npm run build && npm run lowcode:build",
26
26
  "ding": "node ./scripts/notify",
27
27
  "postpublish": "npm run ding"
28
28
  },
@@ -86,11 +86,11 @@
86
86
  },
87
87
  "componentConfig": {
88
88
  "isComponentLibrary": true,
89
- "materialSchema": "https://npm.ztocwst.com/@ztocwst/rc-pro-materials@0.2.27/build/lowcode/assets-prod.json"
89
+ "materialSchema": "https://npm.ztocwst.com/@ztocwst/rc-pro-materials@0.2.28/build/lowcode/assets-prod.json"
90
90
  },
91
- "homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.27/build/index.html",
91
+ "homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.28/build/index.html",
92
92
  "publishConfig": {
93
93
  "registry": "https://registry.npmjs.org/",
94
94
  "access": "public"
95
95
  }
96
- }
96
+ }