@ztocwst/rc-pro-materials 0.2.24 → 0.2.25
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/dist/SCM_Comps.js +2 -2
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-data-table/components/table-renderer/index.js +61 -72
- package/es/components/z-data-table/data-table.d.ts +6 -2
- package/es/components/z-data-table/data-table.helper.js +1 -1
- package/es/components/z-templates-data-common/components/chart-renderer/index.js +5 -1
- package/es/components/z-templates-data-common/data-common.js +9 -4
- package/es/style.js +2 -2
- package/lib/components/z-data-table/components/table-renderer/index.js +61 -72
- package/lib/components/z-data-table/data-table.d.ts +6 -2
- package/lib/components/z-data-table/data-table.helper.js +1 -1
- package/lib/components/z-templates-data-common/components/chart-renderer/index.js +5 -1
- package/lib/components/z-templates-data-common/data-common.js +9 -4
- package/package.json +3 -3
|
@@ -63,8 +63,6 @@ export interface TypeZDataTableProps {
|
|
|
63
63
|
refreshRate?: number;
|
|
64
64
|
/** 记住勾选 */
|
|
65
65
|
remember?: boolean;
|
|
66
|
-
/** 导出 */
|
|
67
|
-
exporter?: boolean;
|
|
68
66
|
/** 操作列(表头)配置 */
|
|
69
67
|
actionJson?: {
|
|
70
68
|
/** 表头名称 */
|
|
@@ -80,6 +78,12 @@ export interface TypeZDataTableProps {
|
|
|
80
78
|
/** 自定义渲染方法 */
|
|
81
79
|
render?: (p: any) => React.ReactNode;
|
|
82
80
|
};
|
|
81
|
+
confirmConfig?: {
|
|
82
|
+
name?: string;
|
|
83
|
+
onClick?: () => void;
|
|
84
|
+
};
|
|
85
|
+
/** 导出 */
|
|
86
|
+
exporter?: boolean;
|
|
83
87
|
/** 导出配置 */
|
|
84
88
|
exportConfig?: {
|
|
85
89
|
name: string;
|
|
@@ -193,7 +193,7 @@ var handleCondition = function handleCondition(value, handledValue, conditions)
|
|
|
193
193
|
|
|
194
194
|
// mock
|
|
195
195
|
exports.handleCondition = handleCondition;
|
|
196
|
-
var token = 'scm:tenant:token:2:104:
|
|
196
|
+
var token = 'scm:tenant:token:2:104:7c454641-c65c-4459-b5a3-d4be9fb16ffd';
|
|
197
197
|
|
|
198
198
|
/** 获取维度指标 */
|
|
199
199
|
var getDimTarget = /*#__PURE__*/function () {
|
|
@@ -36,6 +36,9 @@ var ChartRenderer = function ChartRenderer(_ref) {
|
|
|
36
36
|
(_chartRef$current$act3 = _chartRef.current[activeKey]) === null || _chartRef$current$act3 === void 0 ? void 0 : (_chartRef$current$act4 = _chartRef$current$act3.queryChart) === null || _chartRef$current$act4 === void 0 ? void 0 : _chartRef$current$act4.call(_chartRef$current$act3, values);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
+
var getCurrentKey = function getCurrentKey() {
|
|
40
|
+
return activeKey;
|
|
41
|
+
};
|
|
39
42
|
(0, _react.useEffect)(function () {
|
|
40
43
|
if (isObject && ! /*#__PURE__*/_react["default"].isValidElement(chartSetting)) {
|
|
41
44
|
setActiveKey(chartSetting === null || chartSetting === void 0 ? void 0 : chartSetting.dataSetName);
|
|
@@ -56,7 +59,8 @@ var ChartRenderer = function ChartRenderer(_ref) {
|
|
|
56
59
|
(0, _react.useImperativeHandle)(chartRenderRef, function () {
|
|
57
60
|
return {
|
|
58
61
|
onLink: onLink,
|
|
59
|
-
queryChart: queryChart
|
|
62
|
+
queryChart: queryChart,
|
|
63
|
+
getCurrentKey: getCurrentKey
|
|
60
64
|
};
|
|
61
65
|
});
|
|
62
66
|
|
|
@@ -65,6 +65,10 @@ var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (p
|
|
|
65
65
|
return _ref2.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
}();
|
|
68
|
+
var getCurrentKey = function getCurrentKey() {
|
|
69
|
+
var _chartRenderRef$curre, _chartRenderRef$curre2;
|
|
70
|
+
return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.getCurrentKey) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre);
|
|
71
|
+
};
|
|
68
72
|
var onConfirm = /*#__PURE__*/function () {
|
|
69
73
|
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
70
74
|
var values;
|
|
@@ -94,19 +98,20 @@ var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (p
|
|
|
94
98
|
};
|
|
95
99
|
}();
|
|
96
100
|
var onLink = function onLink(values) {
|
|
97
|
-
var _chartRenderRef$
|
|
98
|
-
return (_chartRenderRef$
|
|
101
|
+
var _chartRenderRef$curre3, _chartRenderRef$curre4;
|
|
102
|
+
return (_chartRenderRef$curre3 = chartRenderRef.current) === null || _chartRenderRef$curre3 === void 0 ? void 0 : (_chartRenderRef$curre4 = _chartRenderRef$curre3.onLink) === null || _chartRenderRef$curre4 === void 0 ? void 0 : _chartRenderRef$curre4.call(_chartRenderRef$curre3, values);
|
|
99
103
|
};
|
|
100
104
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
101
105
|
return {
|
|
102
106
|
formRef: formRef,
|
|
103
107
|
onLink: onLink,
|
|
104
108
|
onQueryValues: onQueryValues,
|
|
105
|
-
onQueryFormatValues: onQueryFormatValues
|
|
109
|
+
onQueryFormatValues: onQueryFormatValues,
|
|
110
|
+
getCurrentKey: getCurrentKey
|
|
106
111
|
};
|
|
107
112
|
});
|
|
108
113
|
var formProps = (0, _utils.processFormProps)(querySetting);
|
|
109
|
-
console.log(
|
|
114
|
+
// console.log(`formProps`, formProps);
|
|
110
115
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_rcPro.ProFormRender, (0, _extends2["default"])({}, formProps, {
|
|
111
116
|
formRef: formRef,
|
|
112
117
|
onFinish: /*#__PURE__*/function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztocwst/rc-pro-materials",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "@ztocwst/rc-pro-materials",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"componentConfig": {
|
|
88
88
|
"isComponentLibrary": true,
|
|
89
|
-
"materialSchema": "https://npm.ztocwst.com/@ztocwst/rc-pro-materials@0.2.
|
|
89
|
+
"materialSchema": "https://npm.ztocwst.com/@ztocwst/rc-pro-materials@0.2.25/build/lowcode/assets-prod.json"
|
|
90
90
|
},
|
|
91
|
-
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.
|
|
91
|
+
"homepage": "https://unpkg.com/@ztocwst/rc-pro-materials@0.2.25/build/index.html",
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"registry": "https://registry.npmjs.org/",
|
|
94
94
|
"access": "public"
|