@ztocwst/rc-pro-materials 0.2.23 → 0.2.24
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 +5 -5
- package/build/lowcode/view.js +5 -5
- package/dist/SCM_Comps.js +3 -3
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-data-table/components/custom-renderer/index.d.ts +4 -0
- package/es/components/{z-templates-data-common → z-data-table}/components/custom-renderer/index.js +28 -18
- package/{lib/components/z-templates-data-common → es/components/z-data-table}/components/dim-target/dim-target.helper.d.ts +1 -1
- package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/index.js +1 -1
- package/es/components/z-data-table/components/link-renderer/index.d.ts +16 -0
- package/es/components/{z-templates-data-common → z-data-table}/components/link-renderer/index.js +5 -2
- package/es/components/z-data-table/components/table-renderer/index.d.ts +4 -0
- package/es/components/{z-templates-data-common → z-data-table}/components/table-renderer/index.js +29 -17
- package/es/components/{z-templates-data-common → z-data-table}/components/table-renderer/table-renderer.helper.d.ts +9 -9
- package/es/components/{z-templates-data-common → z-data-table}/components/table-renderer/table-renderer.helper.js +1 -1
- package/es/components/z-data-table/data-table.d.ts +116 -0
- package/es/components/{z-templates-data-common/data-common.helper.js → z-data-table/data-table.helper.js} +1 -1
- package/es/components/z-data-table/data-table.js +52 -0
- package/es/components/z-data-table/index.d.ts +7 -0
- package/es/components/z-data-table/index.js +5 -0
- package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +1 -1
- package/es/components/z-templates-data-common/components/chart-renderer/index.js +13 -8
- package/es/components/z-templates-data-common/data-common.d.ts +2 -111
- package/es/components/z-templates-data-common/data-common.js +1 -7
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/style.js +2 -2
- package/es/utils/props/form.js +5 -2
- package/lib/components/z-data-table/components/custom-renderer/index.d.ts +4 -0
- package/lib/components/{z-templates-data-common → z-data-table}/components/custom-renderer/index.js +30 -20
- package/{es/components/z-templates-data-common → lib/components/z-data-table}/components/dim-target/dim-target.helper.d.ts +1 -1
- package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/index.js +3 -3
- package/lib/components/z-data-table/components/link-renderer/index.d.ts +16 -0
- package/lib/components/{z-templates-data-common → z-data-table}/components/link-renderer/index.js +18 -15
- package/lib/components/z-data-table/components/table-renderer/index.d.ts +4 -0
- package/lib/components/{z-templates-data-common → z-data-table}/components/table-renderer/index.js +37 -25
- package/lib/components/{z-templates-data-common → z-data-table}/components/table-renderer/table-renderer.helper.d.ts +9 -9
- package/lib/components/{z-templates-data-common → z-data-table}/components/table-renderer/table-renderer.helper.js +12 -12
- package/lib/components/z-data-table/data-table.d.ts +116 -0
- package/lib/components/{z-templates-data-common/data-common.helper.js → z-data-table/data-table.helper.js} +1 -1
- package/lib/components/z-data-table/data-table.js +58 -0
- package/lib/components/z-data-table/index.d.ts +7 -0
- package/lib/components/z-data-table/index.js +14 -0
- package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +1 -1
- package/lib/components/z-templates-data-common/components/chart-renderer/index.js +19 -14
- package/lib/components/z-templates-data-common/data-common.d.ts +2 -111
- package/lib/components/z-templates-data-common/data-common.js +1 -6
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/style.js +2 -2
- package/lib/utils/props/form.js +5 -2
- package/package.json +3 -3
- package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- /package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/dim-target.helper.js +0 -0
- /package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/index.d.ts +0 -0
- /package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/index.less +0 -0
- /package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/useUpdateEffect.d.ts +0 -0
- /package/es/components/{z-templates-data-common → z-data-table}/components/dim-target/useUpdateEffect.js +0 -0
- /package/es/components/{z-templates-data-common → z-data-table}/components/link-renderer/index.less +0 -0
- /package/es/components/{z-templates-data-common/data-common.helper.d.ts → z-data-table/data-table.helper.d.ts} +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/dim-target.helper.js +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/index.d.ts +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/index.less +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/useUpdateEffect.d.ts +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/dim-target/useUpdateEffect.js +0 -0
- /package/lib/components/{z-templates-data-common → z-data-table}/components/link-renderer/index.less +0 -0
- /package/lib/components/{z-templates-data-common/data-common.helper.d.ts → z-data-table/data-table.helper.d.ts} +0 -0
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TypeZDataTableProps } from '../../data-table';
|
|
2
|
+
import type { valueType } from '../../data-table.helper';
|
|
2
3
|
import type { linkParamsType } from '../link-renderer';
|
|
3
4
|
import type { DimTargetChangeOptionType } from '../dim-target/dim-target.helper';
|
|
4
|
-
import type { valueType } from '../../data-common.helper';
|
|
5
5
|
export declare const stringTrim: (str: string) => string;
|
|
6
6
|
/**
|
|
7
7
|
* 维度指标数据源处理
|
|
8
8
|
*/
|
|
9
|
-
export declare const handleDimTargetFormat: (dimTargetSource: Pick<
|
|
9
|
+
export declare const handleDimTargetFormat: (dimTargetSource: Pick<TypeZDataTableProps, 'dimJson' | 'indexJson'>, result?: Record<string, any>) => {
|
|
10
10
|
rememberCheck: boolean;
|
|
11
11
|
dims: {
|
|
12
12
|
all: boolean;
|
|
13
13
|
title: string;
|
|
14
14
|
indeterminate: boolean;
|
|
15
15
|
dimension: any[];
|
|
16
|
-
dimensionSource: Omit<import("../../data-
|
|
16
|
+
dimensionSource: Omit<import("../../data-table").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
|
|
17
17
|
};
|
|
18
18
|
targets: {
|
|
19
19
|
all: boolean;
|
|
20
20
|
title: string;
|
|
21
21
|
indeterminate: boolean;
|
|
22
22
|
index: any[];
|
|
23
|
-
indexSource: import("../../data-
|
|
23
|
+
indexSource: import("../../data-table").TypeTargetProps[];
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* 获取维度指标数据源
|
|
28
28
|
*/
|
|
29
|
-
export declare const getDimTargetData: (rcProContext: any, params: Record<string, any>, dimTargetSource: Pick<
|
|
29
|
+
export declare const getDimTargetData: (rcProContext: any, params: Record<string, any>, dimTargetSource: Pick<TypeZDataTableProps, 'dimJson' | 'indexJson'>) => Promise<{
|
|
30
30
|
rememberCheck: boolean;
|
|
31
31
|
dims: {
|
|
32
32
|
all: boolean;
|
|
33
33
|
title: string;
|
|
34
34
|
indeterminate: boolean;
|
|
35
35
|
dimension: any[];
|
|
36
|
-
dimensionSource: Omit<import("../../data-
|
|
36
|
+
dimensionSource: Omit<import("../../data-table").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
|
|
37
37
|
};
|
|
38
38
|
targets: {
|
|
39
39
|
all: boolean;
|
|
40
40
|
title: string;
|
|
41
41
|
indeterminate: boolean;
|
|
42
42
|
index: any[];
|
|
43
|
-
indexSource: import("../../data-
|
|
43
|
+
indexSource: import("../../data-table").TypeTargetProps[];
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
/**
|
|
@@ -54,7 +54,7 @@ export type ExpressionsType = any[] | [];
|
|
|
54
54
|
/**
|
|
55
55
|
* 根据维度指标获取表格列
|
|
56
56
|
*/
|
|
57
|
-
export declare const handleColumns: (option: DimTargetChangeOptionType & Pick<
|
|
57
|
+
export declare const handleColumns: (option: DimTargetChangeOptionType & Pick<TypeZDataTableProps, 'actionJson'>, expressions?: ExpressionsType, linkPage?: TypeZDataTableProps[], onLink?: (v: linkParamsType) => void) => {
|
|
58
58
|
title: import("antd/es/checkbox/Group").CheckboxValueType;
|
|
59
59
|
dataIndex: string;
|
|
60
60
|
ellipsis: boolean;
|
|
@@ -7,7 +7,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
7
7
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var
|
|
10
|
+
var _dataTable = require("../../data-table.helper");
|
|
11
11
|
var _excluded = ["isFixed", "fixed", "render"];
|
|
12
12
|
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."); }
|
|
13
13
|
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); }
|
|
@@ -119,7 +119,7 @@ var getDimTargetData = /*#__PURE__*/function () {
|
|
|
119
119
|
case 2:
|
|
120
120
|
_context.prev = 2;
|
|
121
121
|
_context.next = 5;
|
|
122
|
-
return (0,
|
|
122
|
+
return (0, _dataTable.getDimTarget)(rcProContext, params);
|
|
123
123
|
case 5:
|
|
124
124
|
_yield$getDimTarget = _context.sent;
|
|
125
125
|
success = _yield$getDimTarget.success;
|
|
@@ -157,20 +157,20 @@ var handleValueFormat = function handleValueFormat(value, record, config, condit
|
|
|
157
157
|
var val = value;
|
|
158
158
|
if (typeof value === 'number') {
|
|
159
159
|
if (!(config !== null && config !== void 0 && config.percent) && typeof (config === null || config === void 0 ? void 0 : config.precision) === 'number') {
|
|
160
|
-
val = (0,
|
|
160
|
+
val = (0, _dataTable.handleDecimal)(val, config.precision);
|
|
161
161
|
}
|
|
162
162
|
if (config !== null && config !== void 0 && config.thousand) {
|
|
163
|
-
val = (0,
|
|
163
|
+
val = (0, _dataTable.handleThousand)(val);
|
|
164
164
|
}
|
|
165
165
|
if (config !== null && config !== void 0 && config.percent) {
|
|
166
|
-
val = (0,
|
|
166
|
+
val = (0, _dataTable.handlePercent)(val, config.precision);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
if (config !== null && config !== void 0 && config.link) {
|
|
170
|
-
val = (0,
|
|
170
|
+
val = (0, _dataTable.handleLink)(value, onLink);
|
|
171
171
|
}
|
|
172
172
|
if (condition !== null && condition !== void 0 && condition.length) {
|
|
173
|
-
val = (0,
|
|
173
|
+
val = (0, _dataTable.handleCondition)(value, val, condition);
|
|
174
174
|
}
|
|
175
175
|
return (_val = val) !== null && _val !== void 0 ? _val : "-";
|
|
176
176
|
};
|
|
@@ -201,7 +201,7 @@ var handleColumns = function handleColumns(option, expressions, linkPage, onLink
|
|
|
201
201
|
dataIndex = (_config = config) === null || _config === void 0 ? void 0 : _config.description;
|
|
202
202
|
if ((_config2 = config) !== null && _config2 !== void 0 && _config2.sorted && isFirst) {
|
|
203
203
|
isFirst = false;
|
|
204
|
-
defaultSortOrder =
|
|
204
|
+
defaultSortOrder = _dataTable.defaultSort + "end";
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
if (!config) {
|
|
@@ -213,7 +213,7 @@ var handleColumns = function handleColumns(option, expressions, linkPage, onLink
|
|
|
213
213
|
dataIndex = (_config3 = config) === null || _config3 === void 0 ? void 0 : _config3.name;
|
|
214
214
|
if ((_config4 = config) !== null && _config4 !== void 0 && _config4.sorted && isFirst) {
|
|
215
215
|
isFirst = false;
|
|
216
|
-
defaultSortOrder =
|
|
216
|
+
defaultSortOrder = _dataTable.defaultSort + "end";
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
/* 条件格式设置 */
|
|
@@ -221,12 +221,12 @@ var handleColumns = function handleColumns(option, expressions, linkPage, onLink
|
|
|
221
221
|
// condition = expressions?.filter((item) => item?.index?.includes(config?.name));
|
|
222
222
|
// }
|
|
223
223
|
|
|
224
|
-
var _ref4 = ((_config5 = config) === null || _config5 === void 0 ? void 0 : (_config5$link = _config5.link) === null || _config5$link === void 0 ? void 0 : _config5$link.split(
|
|
224
|
+
var _ref4 = ((_config5 = config) === null || _config5 === void 0 ? void 0 : (_config5$link = _config5.link) === null || _config5$link === void 0 ? void 0 : _config5$link.split(_dataTable.separator)) || [],
|
|
225
225
|
dataSetName = _ref4[0];
|
|
226
226
|
var index;
|
|
227
227
|
if ((_config6 = config) !== null && _config6 !== void 0 && _config6.link && linkPage !== null && linkPage !== void 0 && linkPage.length) {
|
|
228
228
|
index = linkPage.findIndex(function (link) {
|
|
229
|
-
return "" + link.dataSetName +
|
|
229
|
+
return "" + link.dataSetName + _dataTable.separator + link.title === config.link;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
return {
|
|
@@ -235,7 +235,7 @@ var handleColumns = function handleColumns(option, expressions, linkPage, onLink
|
|
|
235
235
|
ellipsis: true,
|
|
236
236
|
defaultSortOrder: defaultSortOrder,
|
|
237
237
|
sorter: (_config7 = config) === null || _config7 === void 0 ? void 0 : _config7.sorted,
|
|
238
|
-
width: ((_config8 = config) === null || _config8 === void 0 ? void 0 : _config8.width) || (0,
|
|
238
|
+
width: ((_config8 = config) === null || _config8 === void 0 ? void 0 : _config8.width) || (0, _dataTable.computeWidth)(title === null || title === void 0 ? void 0 : (_title$toString = title.toString()) === null || _title$toString === void 0 ? void 0 : _title$toString.length),
|
|
239
239
|
fixed: (_config9 = config) !== null && _config9 !== void 0 && _config9.isFixed ? ((_config10 = config) === null || _config10 === void 0 ? void 0 : _config10.fixed) || ((_config11 = config) === null || _config11 === void 0 ? void 0 : _config11.isFixed) : false,
|
|
240
240
|
render: function render(value, record) {
|
|
241
241
|
var _config$render, _config12;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { linkParamsType } from './components/link-renderer';
|
|
3
|
+
/** 指标配置 */
|
|
4
|
+
export interface TypeTargetProps {
|
|
5
|
+
/** 指标名称 */
|
|
6
|
+
name: string;
|
|
7
|
+
/** 是否默认选中 */
|
|
8
|
+
checked: boolean;
|
|
9
|
+
/** 别名 */
|
|
10
|
+
alias: string;
|
|
11
|
+
/** 英文名 */
|
|
12
|
+
enName: string;
|
|
13
|
+
/** 是否过滤 */
|
|
14
|
+
isFilter: boolean;
|
|
15
|
+
/** 是否可选 */
|
|
16
|
+
optional: boolean;
|
|
17
|
+
/** 小数位 精确度 */
|
|
18
|
+
precision: number;
|
|
19
|
+
/** 是否展示百分号 */
|
|
20
|
+
percent: boolean;
|
|
21
|
+
/** 是否允许排序 */
|
|
22
|
+
sorted: boolean;
|
|
23
|
+
/** 宽度 */
|
|
24
|
+
width: number;
|
|
25
|
+
/** 是否合计 */
|
|
26
|
+
amounted: boolean;
|
|
27
|
+
/** 指标描述 */
|
|
28
|
+
description?: string;
|
|
29
|
+
/** 下转二级页 */
|
|
30
|
+
link?: string;
|
|
31
|
+
/** 查询绑定关系 */
|
|
32
|
+
queryBind?: string;
|
|
33
|
+
/** 依赖 */
|
|
34
|
+
dependencies?: string[];
|
|
35
|
+
}
|
|
36
|
+
/** 表格相关配置 */
|
|
37
|
+
export interface TypeZDataTableProps {
|
|
38
|
+
/** 标题 */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** 二级页标题 */
|
|
41
|
+
chartTitle?: string;
|
|
42
|
+
/** 自定义渲染 */
|
|
43
|
+
custom?: boolean;
|
|
44
|
+
/** 自定义渲染方法 */
|
|
45
|
+
child?: (p: any) => React.ReactNode;
|
|
46
|
+
/** 维度配置 */
|
|
47
|
+
dimJson?: {
|
|
48
|
+
/** 维度标题 */
|
|
49
|
+
title: string;
|
|
50
|
+
/** 维度项配置 */
|
|
51
|
+
data: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
|
|
52
|
+
};
|
|
53
|
+
/** 指标配置 */
|
|
54
|
+
indexJson: {
|
|
55
|
+
title: string;
|
|
56
|
+
/** 指标项配置 */
|
|
57
|
+
data: TypeTargetProps[];
|
|
58
|
+
};
|
|
59
|
+
dataSetName: string;
|
|
60
|
+
/** 自动请求 */
|
|
61
|
+
autoLoad: boolean;
|
|
62
|
+
/** 刷新时间 */
|
|
63
|
+
refreshRate?: number;
|
|
64
|
+
/** 记住勾选 */
|
|
65
|
+
remember?: boolean;
|
|
66
|
+
/** 导出 */
|
|
67
|
+
exporter?: boolean;
|
|
68
|
+
/** 操作列(表头)配置 */
|
|
69
|
+
actionJson?: {
|
|
70
|
+
/** 表头名称 */
|
|
71
|
+
title: string;
|
|
72
|
+
/** 宽度 */
|
|
73
|
+
width?: number;
|
|
74
|
+
/** 固定列 */
|
|
75
|
+
isFixed: boolean;
|
|
76
|
+
/** 固定到 */
|
|
77
|
+
fixed?: string;
|
|
78
|
+
/** 自定义渲染 */
|
|
79
|
+
custom: boolean;
|
|
80
|
+
/** 自定义渲染方法 */
|
|
81
|
+
render?: (p: any) => React.ReactNode;
|
|
82
|
+
};
|
|
83
|
+
/** 导出配置 */
|
|
84
|
+
exportConfig?: {
|
|
85
|
+
name: string;
|
|
86
|
+
code: string;
|
|
87
|
+
menuId: string;
|
|
88
|
+
};
|
|
89
|
+
/** 条件格式设置 */
|
|
90
|
+
expressions?: any[] | [];
|
|
91
|
+
linkPageTitle?: string;
|
|
92
|
+
/** 下钻二级页设置 */
|
|
93
|
+
linkPage?: TypeZDataTableProps[];
|
|
94
|
+
/** 数据源参数"键"" 和 查询参数"值" 和 上一级维度(dim)"值" 关系绑定 */
|
|
95
|
+
queryBind?: Array<{
|
|
96
|
+
sourceQueryKey: string;
|
|
97
|
+
currentQueryKey: string;
|
|
98
|
+
parentDimKey: string;
|
|
99
|
+
}>;
|
|
100
|
+
/** chartRef */
|
|
101
|
+
chartRef?: React.Ref<{
|
|
102
|
+
onLink?: (v: linkParamsType) => void;
|
|
103
|
+
queryChart: (v: Record<string, any>, d: string | undefined) => void;
|
|
104
|
+
}>;
|
|
105
|
+
/** 确认 */
|
|
106
|
+
onConfirm?: () => void;
|
|
107
|
+
/** 查询参数转换 */
|
|
108
|
+
formatter?: (v: Record<string, any>) => Record<string, any>;
|
|
109
|
+
/** 当前展示报表唯一标识 */
|
|
110
|
+
currentKey?: string;
|
|
111
|
+
}
|
|
112
|
+
export default class ZDataTableContainer extends React.Component<TypeZDataTableProps, any> {
|
|
113
|
+
chartRef: any;
|
|
114
|
+
constructor(props: TypeZDataTableProps);
|
|
115
|
+
render(): JSX.Element;
|
|
116
|
+
}
|
|
@@ -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:CCAB6974939D70D8418CBEC342EAE22D';
|
|
197
197
|
|
|
198
198
|
/** 获取维度指标 */
|
|
199
199
|
var getDimTarget = /*#__PURE__*/function () {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
7
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _tableRenderer = _interopRequireDefault(require("./components/table-renderer"));
|
|
10
|
+
var _customRenderer = _interopRequireDefault(require("./components/custom-renderer"));
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
/** 指标配置 */
|
|
14
|
+
|
|
15
|
+
/** 表格相关配置 */
|
|
16
|
+
|
|
17
|
+
var ZDataTable = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
18
|
+
// console.log(props)
|
|
19
|
+
|
|
20
|
+
var chartRef = (0, _react.useRef)();
|
|
21
|
+
var onLink = function onLink(values) {
|
|
22
|
+
var _chartRef$current, _chartRef$current$onL;
|
|
23
|
+
return (_chartRef$current = chartRef.current) === null || _chartRef$current === void 0 ? void 0 : (_chartRef$current$onL = _chartRef$current.onLink) === null || _chartRef$current$onL === void 0 ? void 0 : _chartRef$current$onL.call(_chartRef$current, values);
|
|
24
|
+
};
|
|
25
|
+
var queryChart = function queryChart(values) {
|
|
26
|
+
var _chartRef$current2, _chartRef$current2$qu;
|
|
27
|
+
return (_chartRef$current2 = chartRef.current) === null || _chartRef$current2 === void 0 ? void 0 : (_chartRef$current2$qu = _chartRef$current2.queryChart) === null || _chartRef$current2$qu === void 0 ? void 0 : _chartRef$current2$qu.call(_chartRef$current2, values);
|
|
28
|
+
};
|
|
29
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
30
|
+
return {
|
|
31
|
+
onLink: onLink,
|
|
32
|
+
queryChart: queryChart
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
return props !== null && props !== void 0 && props.custom ? /*#__PURE__*/_react["default"].createElement(_customRenderer["default"], (0, _extends2["default"])({
|
|
36
|
+
chartRef: chartRef
|
|
37
|
+
}, props)) : /*#__PURE__*/_react["default"].createElement(_tableRenderer["default"], (0, _extends2["default"])({
|
|
38
|
+
chartRef: chartRef
|
|
39
|
+
}, props));
|
|
40
|
+
});
|
|
41
|
+
var ZDataTableContainer = /*#__PURE__*/function (_React$Component) {
|
|
42
|
+
(0, _inheritsLoose2["default"])(ZDataTableContainer, _React$Component);
|
|
43
|
+
function ZDataTableContainer(props) {
|
|
44
|
+
var _this;
|
|
45
|
+
_this = _React$Component.call(this, props) || this;
|
|
46
|
+
_this.chartRef = void 0;
|
|
47
|
+
_this.chartRef = /*#__PURE__*/_react["default"].createRef();
|
|
48
|
+
return _this;
|
|
49
|
+
}
|
|
50
|
+
var _proto = ZDataTableContainer.prototype;
|
|
51
|
+
_proto.render = function render() {
|
|
52
|
+
return /*#__PURE__*/_react["default"].createElement(ZDataTable, (0, _extends2["default"])({}, this.props, {
|
|
53
|
+
ref: this.chartRef
|
|
54
|
+
}));
|
|
55
|
+
};
|
|
56
|
+
return ZDataTableContainer;
|
|
57
|
+
}(_react["default"].Component);
|
|
58
|
+
exports["default"] = ZDataTableContainer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ZDataTable from './data-table';
|
|
2
|
+
export type { TypeZDataTableProps } from './data-table';
|
|
3
|
+
export type { linkParamsType } from './components/link-renderer';
|
|
4
|
+
export { default as TableRenderer } from './components/table-renderer';
|
|
5
|
+
export { default as CustomRenderer } from './components/custom-renderer';
|
|
6
|
+
export { default as LinkRenderer } from './components/link-renderer';
|
|
7
|
+
export default ZDataTable;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = exports.TableRenderer = exports.LinkRenderer = exports.CustomRenderer = void 0;
|
|
6
|
+
var _dataTable = _interopRequireDefault(require("./data-table"));
|
|
7
|
+
var _tableRenderer = _interopRequireDefault(require("./components/table-renderer"));
|
|
8
|
+
exports.TableRenderer = _tableRenderer["default"];
|
|
9
|
+
var _customRenderer = _interopRequireDefault(require("./components/custom-renderer"));
|
|
10
|
+
exports.CustomRenderer = _customRenderer["default"];
|
|
11
|
+
var _linkRenderer = _interopRequireDefault(require("./components/link-renderer"));
|
|
12
|
+
exports.LinkRenderer = _linkRenderer["default"];
|
|
13
|
+
var _default = _dataTable["default"];
|
|
14
|
+
exports["default"] = _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TypeZTemplatesDataCommonProps } from '../../data-common';
|
|
3
|
-
import type { linkParamsType } from '
|
|
3
|
+
import type { linkParamsType } from '../../../z-data-table';
|
|
4
4
|
export interface ChartRendererProps {
|
|
5
5
|
chartSetting?: Pick<TypeZTemplatesDataCommonProps, 'chartSetting'>;
|
|
6
6
|
chartRenderRef?: React.Ref<{
|
|
@@ -6,9 +6,8 @@ exports["default"] = void 0;
|
|
|
6
6
|
var _tabs = _interopRequireDefault(require("antd/lib/tabs"));
|
|
7
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var _customRenderer = _interopRequireDefault(require("../custom-renderer"));
|
|
9
|
+
var _dataTable = require("../../../z-data-table/data-table.helper");
|
|
10
|
+
var _zDataTable = require("../../../z-data-table");
|
|
12
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
13
|
var ChartRenderer = function ChartRenderer(_ref) {
|
|
@@ -47,7 +46,7 @@ var ChartRenderer = function ChartRenderer(_ref) {
|
|
|
47
46
|
if (chartSetting.length) {
|
|
48
47
|
var index = 0;
|
|
49
48
|
var item = chartSetting[index];
|
|
50
|
-
setActiveKey("" + (item === null || item === void 0 ? void 0 : item.dataSetName) +
|
|
49
|
+
setActiveKey("" + (item === null || item === void 0 ? void 0 : item.dataSetName) + _dataTable.separator + index);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
}, []);
|
|
@@ -75,8 +74,14 @@ var ChartRenderer = function ChartRenderer(_ref) {
|
|
|
75
74
|
|
|
76
75
|
// 普通列表json对象
|
|
77
76
|
if (isObject) {
|
|
78
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
79
|
-
|
|
77
|
+
return chartSetting !== null && chartSetting !== void 0 && chartSetting.custom ? /*#__PURE__*/_react["default"].createElement(_zDataTable.CustomRenderer, (0, _extends2["default"])({}, chartSetting, {
|
|
78
|
+
currentKey: activeKey,
|
|
79
|
+
chartRef: function chartRef(ref) {
|
|
80
|
+
_chartRef.current[chartSetting === null || chartSetting === void 0 ? void 0 : chartSetting.dataSetName] = ref;
|
|
81
|
+
},
|
|
82
|
+
onConfirm: onConfirm
|
|
83
|
+
})) : /*#__PURE__*/_react["default"].createElement(_zDataTable.TableRenderer, (0, _extends2["default"])({}, chartSetting, {
|
|
84
|
+
currentKey: activeKey,
|
|
80
85
|
chartRef: function chartRef(ref) {
|
|
81
86
|
_chartRef.current[chartSetting === null || chartSetting === void 0 ? void 0 : chartSetting.dataSetName] = ref;
|
|
82
87
|
},
|
|
@@ -91,20 +96,20 @@ var ChartRenderer = function ChartRenderer(_ref) {
|
|
|
91
96
|
return /*#__PURE__*/_react["default"].createElement(_tabs["default"], {
|
|
92
97
|
activeKey: activeKey,
|
|
93
98
|
onChange: handleTabsChange
|
|
94
|
-
}, chartSetting.map(function (e, i) {
|
|
99
|
+
}, chartSetting === null || chartSetting === void 0 ? void 0 : chartSetting.map(function (e, i) {
|
|
95
100
|
return /*#__PURE__*/_react["default"].createElement(_tabs["default"].TabPane, {
|
|
96
101
|
tab: "" + ((e === null || e === void 0 ? void 0 : e.title) || ''),
|
|
97
|
-
key: "" + (e === null || e === void 0 ? void 0 : e.dataSetName) +
|
|
98
|
-
}, e !== null && e !== void 0 && e.custom ? /*#__PURE__*/_react["default"].createElement(
|
|
99
|
-
|
|
102
|
+
key: "" + (e === null || e === void 0 ? void 0 : e.dataSetName) + _dataTable.separator + i.toString()
|
|
103
|
+
}, e !== null && e !== void 0 && e.custom ? /*#__PURE__*/_react["default"].createElement(_zDataTable.CustomRenderer, (0, _extends2["default"])({}, e, {
|
|
104
|
+
currentKey: activeKey,
|
|
100
105
|
chartRef: function chartRef(ref) {
|
|
101
|
-
_chartRef.current["" + (e === null || e === void 0 ? void 0 : e.dataSetName) +
|
|
106
|
+
_chartRef.current["" + (e === null || e === void 0 ? void 0 : e.dataSetName) + _dataTable.separator + i] = ref;
|
|
102
107
|
},
|
|
103
108
|
onConfirm: onConfirm
|
|
104
|
-
})) : /*#__PURE__*/_react["default"].createElement(
|
|
105
|
-
|
|
109
|
+
})) : /*#__PURE__*/_react["default"].createElement(_zDataTable.TableRenderer, (0, _extends2["default"])({}, e, {
|
|
110
|
+
currentKey: activeKey,
|
|
106
111
|
chartRef: function chartRef(ref) {
|
|
107
|
-
_chartRef.current["" + (e === null || e === void 0 ? void 0 : e.dataSetName) +
|
|
112
|
+
_chartRef.current["" + (e === null || e === void 0 ? void 0 : e.dataSetName) + _dataTable.separator + i] = ref;
|
|
108
113
|
},
|
|
109
114
|
onConfirm: onConfirm
|
|
110
115
|
})));
|
|
@@ -1,120 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
-
|
|
4
|
-
export interface TypeTargetProps {
|
|
5
|
-
/** 指标名称 */
|
|
6
|
-
name: string;
|
|
7
|
-
/** 是否默认选中 */
|
|
8
|
-
checked: boolean;
|
|
9
|
-
/** 别名 */
|
|
10
|
-
alias: string;
|
|
11
|
-
/** 英文名 */
|
|
12
|
-
enName: string;
|
|
13
|
-
/** 是否过滤 */
|
|
14
|
-
isFilter: boolean;
|
|
15
|
-
/** 是否可选 */
|
|
16
|
-
optional: boolean;
|
|
17
|
-
/** 小数位 精确度 */
|
|
18
|
-
precision: number;
|
|
19
|
-
/** 是否展示百分号 */
|
|
20
|
-
percent: boolean;
|
|
21
|
-
/** 是否允许排序 */
|
|
22
|
-
sorted: boolean;
|
|
23
|
-
/** 宽度 */
|
|
24
|
-
width: number;
|
|
25
|
-
/** 是否合计 */
|
|
26
|
-
amounted: boolean;
|
|
27
|
-
/** 指标描述 */
|
|
28
|
-
description?: string;
|
|
29
|
-
/** 下转二级页 */
|
|
30
|
-
link?: string;
|
|
31
|
-
/** 查询绑定关系 */
|
|
32
|
-
queryBind?: string;
|
|
33
|
-
/** 依赖 */
|
|
34
|
-
dependencies?: string[];
|
|
35
|
-
}
|
|
36
|
-
/** 表格相关配置 */
|
|
37
|
-
export interface TypeChartSettingProps {
|
|
38
|
-
/** 二级页标题 */
|
|
39
|
-
chartTitle?: string;
|
|
40
|
-
/** 自定义渲染 */
|
|
41
|
-
custom?: boolean;
|
|
42
|
-
/** 自定义渲染方法 */
|
|
43
|
-
child?: (p: any) => React.ReactNode;
|
|
44
|
-
/** 标题 */
|
|
45
|
-
title?: string;
|
|
46
|
-
/** 维度配置 */
|
|
47
|
-
dimJson?: {
|
|
48
|
-
/** 维度标题 */
|
|
49
|
-
title: string;
|
|
50
|
-
/** 维度项配置 */
|
|
51
|
-
data: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
|
|
52
|
-
};
|
|
53
|
-
/** 指标配置 */
|
|
54
|
-
indexJson: {
|
|
55
|
-
title: string;
|
|
56
|
-
/** 指标项配置 */
|
|
57
|
-
data: TypeTargetProps[];
|
|
58
|
-
};
|
|
59
|
-
dataSetName: string;
|
|
60
|
-
/** 自动请求 */
|
|
61
|
-
autoLoad: boolean;
|
|
62
|
-
/** 刷新时间 */
|
|
63
|
-
refreshRate?: number;
|
|
64
|
-
/** 记住勾选 */
|
|
65
|
-
remember?: boolean;
|
|
66
|
-
/** 导出 */
|
|
67
|
-
exporter?: boolean;
|
|
68
|
-
/** 操作列(表头)配置 */
|
|
69
|
-
actionJson?: {
|
|
70
|
-
/** 表头名称 */
|
|
71
|
-
title: string;
|
|
72
|
-
/** 宽度 */
|
|
73
|
-
width?: number;
|
|
74
|
-
/** 固定列 */
|
|
75
|
-
isFixed: boolean;
|
|
76
|
-
/** 固定到 */
|
|
77
|
-
fixed?: string;
|
|
78
|
-
/** 自定义渲染 */
|
|
79
|
-
custom: boolean;
|
|
80
|
-
/** 自定义渲染方法 */
|
|
81
|
-
render?: (p: any) => React.ReactNode;
|
|
82
|
-
};
|
|
83
|
-
/** 导出配置 */
|
|
84
|
-
exportConfig?: {
|
|
85
|
-
name: string;
|
|
86
|
-
code: string;
|
|
87
|
-
menuId: string;
|
|
88
|
-
};
|
|
89
|
-
/** 条件格式设置 */
|
|
90
|
-
expressions?: any[] | [];
|
|
91
|
-
linkPageTitle?: string;
|
|
92
|
-
/** 下钻二级页设置 */
|
|
93
|
-
linkPage?: TypeChartSettingProps[];
|
|
94
|
-
/** 数据源参数"键"" 和 查询参数"值" 和 上一级维度(dim)"值" 关系绑定 */
|
|
95
|
-
queryBind?: Array<{
|
|
96
|
-
sourceQueryKey: string;
|
|
97
|
-
currentQueryKey: string;
|
|
98
|
-
parentDimKey: string;
|
|
99
|
-
}>;
|
|
100
|
-
/** chartRef */
|
|
101
|
-
chartRef?: React.Ref<{
|
|
102
|
-
queryChart: (v: Record<string, any>, d: string | undefined) => void;
|
|
103
|
-
}>;
|
|
104
|
-
/** 确认 */
|
|
105
|
-
onConfirm?: () => void;
|
|
106
|
-
/** 查询参数转换 */
|
|
107
|
-
formatter?: (v: Record<string, any>) => Record<string, any>;
|
|
108
|
-
}
|
|
3
|
+
import type { TypeZDataTableProps } from '../z-data-table';
|
|
109
4
|
export interface TypeZTemplatesDataCommonProps {
|
|
110
5
|
/** 查询表单配置 */
|
|
111
6
|
querySetting: ProFormRenderProps;
|
|
112
7
|
/** 内容区配置 */
|
|
113
|
-
chartSetting:
|
|
114
|
-
custom: boolean;
|
|
115
|
-
child: (p: any) => React.ReactNode;
|
|
116
|
-
title: string;
|
|
117
|
-
}> | React.ReactNode;
|
|
8
|
+
chartSetting: TypeZDataTableProps | TypeZDataTableProps[] | React.ReactNode;
|
|
118
9
|
_unsafe_MixedSetter_chartSetting_select?: any;
|
|
119
10
|
}
|
|
120
11
|
export default class ZTemplatesDataCommonContainer extends React.Component<TypeZTemplatesDataCommonProps, any> {
|
|
@@ -14,14 +14,10 @@ var _chartRenderer = _interopRequireDefault(require("./components/chart-renderer
|
|
|
14
14
|
var _utils = require("../../utils");
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
/** 指标配置 */
|
|
18
|
-
|
|
19
|
-
/** 表格相关配置 */
|
|
20
|
-
|
|
21
17
|
var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
22
18
|
var querySetting = props.querySetting,
|
|
19
|
+
chartSetting = props.chartSetting,
|
|
23
20
|
_unsafe_MixedSetter_chartSetting_select = props._unsafe_MixedSetter_chartSetting_select;
|
|
24
|
-
var chartSetting = props.chartSetting;
|
|
25
21
|
var formRef = (0, _react.useRef)();
|
|
26
22
|
var chartRenderRef = (0, _react.useRef)();
|
|
27
23
|
// todo 不知道meta里是哪里配置有问题,出现_unsafe_MixedSetter...
|
|
@@ -113,7 +109,6 @@ var ZTemplatesDataCommon = /*#__PURE__*/_react["default"].forwardRef(function (p
|
|
|
113
109
|
console.log("formProps", formProps);
|
|
114
110
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_rcPro.ProFormRender, (0, _extends2["default"])({}, formProps, {
|
|
115
111
|
formRef: formRef,
|
|
116
|
-
onValuesChange: function onValuesChange(changeValues) {},
|
|
117
112
|
onFinish: /*#__PURE__*/function () {
|
|
118
113
|
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(formatData) {
|
|
119
114
|
var _formProps$onFinish;
|
package/lib/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
|
34
34
|
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
35
|
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
36
|
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
+
export { default as ZDataTable } from './components/z-data-table';
|
|
38
|
+
export type { TypeZDataTableProps } from './components/z-data-table';
|
|
37
39
|
export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
|
|
38
40
|
export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
|
|
39
41
|
export { default as ZSlick } from './components/z-slick';
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.ZWarehouse = exports.ZTpl = exports.ZTemplatesDataCommon = exports.ZTable = exports.ZStatistic = exports.ZSlick = exports.ZSingleFactory = exports.ZSimpleBar = exports.ZRcEditTable = exports.ZRankingList = exports.ZProProvider = exports.ZPreview = exports.ZPointerBlock = exports.ZOperationRecords = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZConfigProvider = exports.ZButton = exports.ZBox = exports.ZAuth = exports.ZAggBlock = void 0;
|
|
5
|
+
exports.ZWarehouse = exports.ZTpl = exports.ZTemplatesDataCommon = exports.ZTable = exports.ZStatistic = exports.ZSlick = exports.ZSingleFactory = exports.ZSimpleBar = exports.ZRcEditTable = exports.ZRankingList = exports.ZProProvider = exports.ZPreview = exports.ZPointerBlock = exports.ZOperationRecords = exports.ZList = exports.ZForm = exports.ZEllipsis = exports.ZDiv = exports.ZDataTable = exports.ZConfigProvider = exports.ZButton = exports.ZBox = exports.ZAuth = exports.ZAggBlock = void 0;
|
|
6
6
|
var _zButton = _interopRequireDefault(require("./components/z-button"));
|
|
7
7
|
exports.ZButton = _zButton["default"];
|
|
8
8
|
var _zForm = _interopRequireDefault(require("./components/z-form"));
|
|
@@ -45,6 +45,8 @@ var _zPointerBlock = _interopRequireDefault(require("./components/z-pointer-bloc
|
|
|
45
45
|
exports.ZPointerBlock = _zPointerBlock["default"];
|
|
46
46
|
var _zAggBlock = _interopRequireDefault(require("./components/z-agg-block"));
|
|
47
47
|
exports.ZAggBlock = _zAggBlock["default"];
|
|
48
|
+
var _zDataTable = _interopRequireDefault(require("./components/z-data-table"));
|
|
49
|
+
exports.ZDataTable = _zDataTable["default"];
|
|
48
50
|
var _zTemplatesDataCommon = _interopRequireDefault(require("./components/z-templates-data-common"));
|
|
49
51
|
exports.ZTemplatesDataCommon = _zTemplatesDataCommon["default"];
|
|
50
52
|
var _zSlick = _interopRequireDefault(require("./components/z-slick"));
|
package/lib/style.js
CHANGED
|
@@ -6,10 +6,10 @@ require('antd/lib/config-provider/style');
|
|
|
6
6
|
require('antd/es/config-provider/style');
|
|
7
7
|
require('antd/lib/row/style');
|
|
8
8
|
require('antd/lib/col/style');
|
|
9
|
-
require('antd/lib/message/style');
|
|
10
|
-
require('antd/lib/tabs/style');
|
|
11
9
|
require('antd/lib/checkbox/style');
|
|
12
10
|
require('antd/lib/spin/style');
|
|
13
11
|
require('antd/lib/radio/style');
|
|
12
|
+
require('antd/lib/message/style');
|
|
13
|
+
require('antd/lib/tabs/style');
|
|
14
14
|
require('antd/lib/carousel/style');
|
|
15
15
|
require('./index.scss');
|