@ztocwst/rc-pro-materials 0.2.0 → 0.2.1

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 (191) hide show
  1. package/README.md +17 -17
  2. package/build/index.js +8 -8
  3. package/build/lowcode/assets-daily.json +11 -11
  4. package/build/lowcode/assets-dev.json +2 -2
  5. package/build/lowcode/assets-prod.json +11 -11
  6. package/build/lowcode/index.js +1 -1
  7. package/build/lowcode/meta.js +1 -1
  8. package/build/lowcode/preview.js +5 -5
  9. package/build/lowcode/render/default/view.css +2 -1
  10. package/build/lowcode/render/default/view.js +51 -8
  11. package/build/lowcode/view.css +2 -1
  12. package/build/lowcode/view.js +52 -9
  13. package/dist/SCM_Comps.js +51 -8
  14. package/dist/SCM_Comps.js.map +1 -1
  15. package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
  16. package/es/components/z-Ellipsis/index.d.ts +3 -3
  17. package/es/components/z-agg-block/index.d.ts +3 -3
  18. package/es/components/z-agg-block/index.less +134 -134
  19. package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
  20. package/es/components/z-auth/auth.d.ts +9 -9
  21. package/es/components/z-auth/index.d.ts +3 -3
  22. package/es/components/z-box/box.d.ts +20 -20
  23. package/es/components/z-box/index.d.ts +3 -3
  24. package/es/components/z-box/index.less +4 -4
  25. package/es/components/z-button/index.d.ts +3 -3
  26. package/es/components/z-button/z-button.d.ts +4 -4
  27. package/es/components/z-config-provider/configProvider.d.ts +4 -4
  28. package/es/components/z-config-provider/index.d.ts +3 -3
  29. package/es/components/z-div/div.d.ts +6 -6
  30. package/es/components/z-div/index.d.ts +2 -2
  31. package/es/components/z-editTable/editTable.d.ts +11 -11
  32. package/es/components/z-editTable/editTable.js +2 -2
  33. package/es/components/z-editTable/index.d.ts +2 -2
  34. package/es/components/z-form/index.d.ts +3 -3
  35. package/es/components/z-form/z-form.d.ts +10 -10
  36. package/es/components/z-list/index.d.ts +3 -3
  37. package/es/components/z-list/list.d.ts +17 -17
  38. package/es/components/z-list/list.js +2 -2
  39. package/es/components/z-operation-records/index.d.ts +3 -3
  40. package/es/components/z-operation-records/operationRecords.d.ts +4 -4
  41. package/es/components/z-pointer-block/index.d.ts +3 -3
  42. package/es/components/z-pointer-block/index.less +15 -15
  43. package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  44. package/es/components/z-preview/index.d.ts +3 -3
  45. package/es/components/z-preview/preview.d.ts +4 -4
  46. package/es/components/z-pro-provider/index.d.ts +3 -3
  47. package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  48. package/es/components/z-ranking-list/index.d.ts +2 -2
  49. package/es/components/z-ranking-list/index.less +49 -49
  50. package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  51. package/es/components/z-ranking-list/z-ranking-list.js +2 -2
  52. package/es/components/z-simple-bar/index.d.ts +3 -3
  53. package/es/components/z-simple-bar/index.less +9 -9
  54. package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  55. package/es/components/z-singleFactory/index.d.ts +2 -2
  56. package/es/components/z-singleFactory/zSingerFactory.d.ts +3 -3
  57. package/es/components/z-statistic/index.d.ts +3 -3
  58. package/es/components/z-statistic/index.less +22 -22
  59. package/es/components/z-statistic/z-statistic.d.ts +13 -13
  60. package/es/components/z-table/index.d.ts +3 -3
  61. package/es/components/z-table/table.d.ts +8 -8
  62. package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
  63. package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
  64. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
  65. package/es/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
  66. package/es/components/z-templates-data-common/components/dim-target/index.less +49 -49
  67. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
  68. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
  69. package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
  70. package/es/components/z-templates-data-common/components/link-renderer/index.less +33 -33
  71. package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
  72. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
  73. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
  74. package/es/components/z-templates-data-common/data-common.d.ts +105 -105
  75. package/es/components/z-templates-data-common/data-common.helper.d.ts +61 -61
  76. package/es/components/z-templates-data-common/data-common.helper.js +21 -21
  77. package/es/components/z-templates-data-common/index.d.ts +3 -3
  78. package/es/components/z-tpl/index.d.ts +3 -3
  79. package/es/components/z-tpl/tpl.d.ts +23 -23
  80. package/es/components/z-tpl/tpl.js +2 -2
  81. package/es/components/z-warehouse/index.d.ts +2 -2
  82. package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
  83. package/es/index.d.ts +38 -38
  84. package/es/index.scss +1 -1
  85. package/es/utils/hoc.d.ts +6 -6
  86. package/es/utils/hoc.js +3 -3
  87. package/es/utils/index.d.ts +13 -13
  88. package/es/utils/props/button.d.ts +13 -13
  89. package/es/utils/props/common.d.ts +1 -1
  90. package/es/utils/props/editTable.d.ts +3 -3
  91. package/es/utils/props/form.js +2 -2
  92. package/es/utils/props/listTpl.d.ts +29 -29
  93. package/es/utils/props/microModal.d.ts +7 -7
  94. package/es/utils/props/microSwitch.d.ts +1 -1
  95. package/es/utils/props/modalSelect.d.ts +6 -6
  96. package/es/utils/props/operationRecords.d.ts +2 -2
  97. package/es/utils/props/preview.d.ts +2 -2
  98. package/es/utils/props/tpl.d.ts +162 -162
  99. package/es/utils/props/warehouseAndFactory.d.ts +1 -1
  100. package/es/utils/rcProRequest.d.ts +3 -3
  101. package/es/variables.scss +3 -3
  102. package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
  103. package/lib/components/z-Ellipsis/index.d.ts +3 -3
  104. package/lib/components/z-agg-block/index.d.ts +3 -3
  105. package/lib/components/z-agg-block/index.less +134 -134
  106. package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
  107. package/lib/components/z-auth/auth.d.ts +9 -9
  108. package/lib/components/z-auth/index.d.ts +3 -3
  109. package/lib/components/z-box/box.d.ts +20 -20
  110. package/lib/components/z-box/index.d.ts +3 -3
  111. package/lib/components/z-box/index.less +4 -4
  112. package/lib/components/z-button/index.d.ts +3 -3
  113. package/lib/components/z-button/z-button.d.ts +4 -4
  114. package/lib/components/z-config-provider/configProvider.d.ts +4 -4
  115. package/lib/components/z-config-provider/index.d.ts +3 -3
  116. package/lib/components/z-div/div.d.ts +6 -6
  117. package/lib/components/z-div/index.d.ts +2 -2
  118. package/lib/components/z-editTable/editTable.d.ts +11 -11
  119. package/lib/components/z-editTable/editTable.js +2 -2
  120. package/lib/components/z-editTable/index.d.ts +2 -2
  121. package/lib/components/z-form/index.d.ts +3 -3
  122. package/lib/components/z-form/z-form.d.ts +10 -10
  123. package/lib/components/z-list/index.d.ts +3 -3
  124. package/lib/components/z-list/list.d.ts +17 -17
  125. package/lib/components/z-list/list.js +2 -2
  126. package/lib/components/z-operation-records/index.d.ts +3 -3
  127. package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
  128. package/lib/components/z-pointer-block/index.d.ts +3 -3
  129. package/lib/components/z-pointer-block/index.less +15 -15
  130. package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  131. package/lib/components/z-preview/index.d.ts +3 -3
  132. package/lib/components/z-preview/preview.d.ts +4 -4
  133. package/lib/components/z-pro-provider/index.d.ts +3 -3
  134. package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  135. package/lib/components/z-ranking-list/index.d.ts +2 -2
  136. package/lib/components/z-ranking-list/index.less +49 -49
  137. package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  138. package/lib/components/z-ranking-list/z-ranking-list.js +2 -2
  139. package/lib/components/z-simple-bar/index.d.ts +3 -3
  140. package/lib/components/z-simple-bar/index.less +9 -9
  141. package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  142. package/lib/components/z-singleFactory/index.d.ts +2 -2
  143. package/lib/components/z-singleFactory/zSingerFactory.d.ts +3 -3
  144. package/lib/components/z-statistic/index.d.ts +3 -3
  145. package/lib/components/z-statistic/index.less +22 -22
  146. package/lib/components/z-statistic/z-statistic.d.ts +13 -13
  147. package/lib/components/z-table/index.d.ts +3 -3
  148. package/lib/components/z-table/table.d.ts +8 -8
  149. package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
  150. package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
  151. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
  152. package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
  153. package/lib/components/z-templates-data-common/components/dim-target/index.less +49 -49
  154. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
  155. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
  156. package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
  157. package/lib/components/z-templates-data-common/components/link-renderer/index.less +33 -33
  158. package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
  159. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
  160. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
  161. package/lib/components/z-templates-data-common/data-common.d.ts +105 -105
  162. package/lib/components/z-templates-data-common/data-common.helper.d.ts +61 -61
  163. package/lib/components/z-templates-data-common/data-common.helper.js +21 -21
  164. package/lib/components/z-templates-data-common/index.d.ts +3 -3
  165. package/lib/components/z-tpl/index.d.ts +3 -3
  166. package/lib/components/z-tpl/tpl.d.ts +23 -23
  167. package/lib/components/z-tpl/tpl.js +2 -2
  168. package/lib/components/z-warehouse/index.d.ts +2 -2
  169. package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
  170. package/lib/index.d.ts +38 -38
  171. package/lib/index.scss +1 -1
  172. package/lib/utils/hoc.d.ts +6 -6
  173. package/lib/utils/hoc.js +3 -3
  174. package/lib/utils/index.d.ts +13 -13
  175. package/lib/utils/props/button.d.ts +13 -13
  176. package/lib/utils/props/common.d.ts +1 -1
  177. package/lib/utils/props/editTable.d.ts +3 -3
  178. package/lib/utils/props/form.js +2 -2
  179. package/lib/utils/props/listTpl.d.ts +29 -29
  180. package/lib/utils/props/microModal.d.ts +7 -7
  181. package/lib/utils/props/microSwitch.d.ts +1 -1
  182. package/lib/utils/props/modalSelect.d.ts +6 -6
  183. package/lib/utils/props/operationRecords.d.ts +2 -2
  184. package/lib/utils/props/preview.d.ts +2 -2
  185. package/lib/utils/props/tpl.d.ts +162 -162
  186. package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
  187. package/lib/utils/rcProRequest.d.ts +3 -3
  188. package/lib/variables.scss +3 -3
  189. package/package.json +3 -3
  190. package/es/utils/props/form.d.ts +0 -35
  191. package/lib/utils/props/form.d.ts +0 -35
@@ -1,64 +1,64 @@
1
- import { TypeChartSettingProps } from '../../data-common';
2
- import type { linkParamsType } from '../link-renderer';
3
- import type { DimTargetChangeOptionType } from '../dim-target/dim-target.helper';
4
- import type { valueType } from '../../data-common.helper';
5
- export declare const stringTrim: (str: string) => string;
6
- /**
7
- * 维度指标数据源处理
8
- */
9
- export declare const handleDimTargetFormat: (dimTargetSource: Pick<TypeChartSettingProps, 'dimJson' | 'indexJson'>, result?: Record<string, any>) => {
10
- rememberCheck: boolean;
11
- dims: {
12
- all: boolean;
13
- title: string;
14
- indeterminate: boolean;
15
- dimension: any[];
16
- dimensionSource: Omit<import("../../data-common").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
17
- };
18
- targets: {
19
- all: boolean;
20
- title: string;
21
- indeterminate: boolean;
22
- index: any[];
23
- indexSource: import("../../data-common").TypeTargetProps[];
24
- };
25
- };
26
- /**
27
- * 获取维度指标数据源
28
- */
29
- export declare const getDimTargetData: (rcProContext: any, params: Record<string, any>, dimTargetSource: Pick<TypeChartSettingProps, 'dimJson' | 'indexJson'>) => Promise<{
30
- rememberCheck: boolean;
31
- dims: {
32
- all: boolean;
33
- title: string;
34
- indeterminate: boolean;
35
- dimension: any[];
36
- dimensionSource: Omit<import("../../data-common").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
37
- };
38
- targets: {
39
- all: boolean;
40
- title: string;
41
- indeterminate: boolean;
42
- index: any[];
43
- indexSource: import("../../data-common").TypeTargetProps[];
44
- };
45
- }>;
46
- /**
47
- * 数据渲染格式处理
48
- */
49
- export declare const handleValueFormat: (value: valueType, record: Record<string, any>, find?: Record<string, any>, condition?: any[], onLink?: () => void) => any;
50
- /**
51
- * 条件格式
52
- */
53
- export type ExpressionsType = any[] | [];
54
- /**
55
- * 根据维度指标获取表格列
56
- */
57
- export declare const handleColumns: (option: DimTargetChangeOptionType, expressions?: ExpressionsType, onLink?: (v: linkParamsType) => void) => {
58
- title: import("antd/es/checkbox/Group").CheckboxValueType;
59
- dataIndex: string;
60
- ellipsis: boolean;
61
- sorter: any;
62
- width: any;
63
- render: (value: valueType, record: Record<string, any>) => any;
64
- }[];
1
+ import { TypeChartSettingProps } from '../../data-common';
2
+ import type { linkParamsType } from '../link-renderer';
3
+ import type { DimTargetChangeOptionType } from '../dim-target/dim-target.helper';
4
+ import type { valueType } from '../../data-common.helper';
5
+ export declare const stringTrim: (str: string) => string;
6
+ /**
7
+ * 维度指标数据源处理
8
+ */
9
+ export declare const handleDimTargetFormat: (dimTargetSource: Pick<TypeChartSettingProps, 'dimJson' | 'indexJson'>, result?: Record<string, any>) => {
10
+ rememberCheck: boolean;
11
+ dims: {
12
+ all: boolean;
13
+ title: string;
14
+ indeterminate: boolean;
15
+ dimension: any[];
16
+ dimensionSource: Omit<import("../../data-common").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
17
+ };
18
+ targets: {
19
+ all: boolean;
20
+ title: string;
21
+ indeterminate: boolean;
22
+ index: any[];
23
+ indexSource: import("../../data-common").TypeTargetProps[];
24
+ };
25
+ };
26
+ /**
27
+ * 获取维度指标数据源
28
+ */
29
+ export declare const getDimTargetData: (rcProContext: any, params: Record<string, any>, dimTargetSource: Pick<TypeChartSettingProps, 'dimJson' | 'indexJson'>) => Promise<{
30
+ rememberCheck: boolean;
31
+ dims: {
32
+ all: boolean;
33
+ title: string;
34
+ indeterminate: boolean;
35
+ dimension: any[];
36
+ dimensionSource: Omit<import("../../data-common").TypeTargetProps, "amounted" | "enName" | "isFilter">[];
37
+ };
38
+ targets: {
39
+ all: boolean;
40
+ title: string;
41
+ indeterminate: boolean;
42
+ index: any[];
43
+ indexSource: import("../../data-common").TypeTargetProps[];
44
+ };
45
+ }>;
46
+ /**
47
+ * 数据渲染格式处理
48
+ */
49
+ export declare const handleValueFormat: (value: valueType, record: Record<string, any>, find?: Record<string, any>, condition?: any[], onLink?: () => void) => any;
50
+ /**
51
+ * 条件格式
52
+ */
53
+ export type ExpressionsType = any[] | [];
54
+ /**
55
+ * 根据维度指标获取表格列
56
+ */
57
+ export declare const handleColumns: (option: DimTargetChangeOptionType, expressions?: ExpressionsType, onLink?: (v: linkParamsType) => void) => {
58
+ title: import("antd/es/checkbox/Group").CheckboxValueType;
59
+ dataIndex: string;
60
+ ellipsis: boolean;
61
+ sorter: any;
62
+ width: any;
63
+ render: (value: valueType, record: Record<string, any>) => any;
64
+ }[];
@@ -14,8 +14,8 @@ var stringTrim = function stringTrim(str) {
14
14
  return str.replace(/`|'|"/g, '');
15
15
  };
16
16
 
17
- /**
18
- * 维度指标数据源处理
17
+ /**
18
+ * 维度指标数据源处理
19
19
  */
20
20
  exports.stringTrim = stringTrim;
21
21
  var handleDimTargetFormat = function handleDimTargetFormat(dimTargetSource, result) {
@@ -98,8 +98,8 @@ var handleDimTargetFormat = function handleDimTargetFormat(dimTargetSource, resu
98
98
  };
99
99
  };
100
100
 
101
- /**
102
- * 获取维度指标数据源
101
+ /**
102
+ * 获取维度指标数据源
103
103
  */
104
104
  exports.handleDimTargetFormat = handleDimTargetFormat;
105
105
  var getDimTargetData = /*#__PURE__*/function () {
@@ -145,8 +145,8 @@ var getDimTargetData = /*#__PURE__*/function () {
145
145
  };
146
146
  }();
147
147
 
148
- /**
149
- * 数据渲染格式处理
148
+ /**
149
+ * 数据渲染格式处理
150
150
  */
151
151
  exports.getDimTargetData = getDimTargetData;
152
152
  var handleValueFormat = function handleValueFormat(value, record, find, condition, onLink) {
@@ -172,12 +172,12 @@ var handleValueFormat = function handleValueFormat(value, record, find, conditio
172
172
  return (_val = val) !== null && _val !== void 0 ? _val : "-";
173
173
  };
174
174
 
175
- /**
176
- * 条件格式
175
+ /**
176
+ * 条件格式
177
177
  */
178
178
  exports.handleValueFormat = handleValueFormat;
179
- /**
180
- * 根据维度指标获取表格列
179
+ /**
180
+ * 根据维度指标获取表格列
181
181
  */
182
182
  var handleColumns = function handleColumns(option, expressions, onLink) {
183
183
  var dimTarget = [].concat(option.dimension, option.index);
@@ -1,105 +1,105 @@
1
- import React from 'react';
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
- title?: string;
42
- /** 维度配置 */
43
- dimJson?: {
44
- /** 维度标题 */
45
- title: string;
46
- /** 维度项配置 */
47
- data: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
48
- };
49
- /** 指标配置 */
50
- indexJson: {
51
- title: string;
52
- /** 指标项配置 */
53
- data: TypeTargetProps[];
54
- };
55
- dataSetName: string;
56
- /** 自动请求 */
57
- autoLoad: boolean;
58
- /** 刷新时间 */
59
- refreshRate?: number;
60
- /** 记住勾选 */
61
- remember?: boolean;
62
- /** 导出 */
63
- exporter?: boolean;
64
- /** 导出配置 */
65
- exportConfig?: {
66
- name: string;
67
- code: string;
68
- menuId: string;
69
- };
70
- /** 条件格式设置 */
71
- expressions?: any[] | [];
72
- linkPageTitle?: string;
73
- /** 下钻二级页设置 */
74
- linkPage?: TypeChartSettingProps[];
75
- /** 数据源参数"键"" 和 查询参数"值" 和 上一级维度(dim)"值" 关系绑定 */
76
- queryBind?: Array<{
77
- sourceQueryKey: string;
78
- currentQueryKey: string;
79
- parentDimKey: string;
80
- }>;
81
- /** chartRef */
82
- chartRef?: React.Ref<{
83
- queryChart: (v: Record<string, any>, d: string | undefined) => void;
84
- }>;
85
- /** 确认 */
86
- onConfirm?: () => void;
87
- /** 查询参数转换 */
88
- formatter?: (v: Record<string, any>) => Record<string, any>;
89
- }
90
- export interface TypeZTemplatesDataCommonProps {
91
- /** 查询表单配置 */
92
- querySetting: ProFormRenderProps;
93
- /** 内容区配置 */
94
- chartSetting: TypeChartSettingProps | Array<TypeChartSettingProps & {
95
- custom: boolean;
96
- child: (p: any) => React.ReactNode;
97
- title: string;
98
- }> | React.ReactNode;
99
- _unsafe_MixedSetter_chartSetting_select?: any;
100
- }
101
- export default class ZTemplatesDataCommonContainer extends React.Component<TypeZTemplatesDataCommonProps, any> {
102
- chartRef: any;
103
- constructor(props: any);
104
- render(): JSX.Element;
105
- }
1
+ import React from 'react';
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
+ title?: string;
42
+ /** 维度配置 */
43
+ dimJson?: {
44
+ /** 维度标题 */
45
+ title: string;
46
+ /** 维度项配置 */
47
+ data: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
48
+ };
49
+ /** 指标配置 */
50
+ indexJson: {
51
+ title: string;
52
+ /** 指标项配置 */
53
+ data: TypeTargetProps[];
54
+ };
55
+ dataSetName: string;
56
+ /** 自动请求 */
57
+ autoLoad: boolean;
58
+ /** 刷新时间 */
59
+ refreshRate?: number;
60
+ /** 记住勾选 */
61
+ remember?: boolean;
62
+ /** 导出 */
63
+ exporter?: boolean;
64
+ /** 导出配置 */
65
+ exportConfig?: {
66
+ name: string;
67
+ code: string;
68
+ menuId: string;
69
+ };
70
+ /** 条件格式设置 */
71
+ expressions?: any[] | [];
72
+ linkPageTitle?: string;
73
+ /** 下钻二级页设置 */
74
+ linkPage?: TypeChartSettingProps[];
75
+ /** 数据源参数"键"" 和 查询参数"值" 和 上一级维度(dim)"值" 关系绑定 */
76
+ queryBind?: Array<{
77
+ sourceQueryKey: string;
78
+ currentQueryKey: string;
79
+ parentDimKey: string;
80
+ }>;
81
+ /** chartRef */
82
+ chartRef?: React.Ref<{
83
+ queryChart: (v: Record<string, any>, d: string | undefined) => void;
84
+ }>;
85
+ /** 确认 */
86
+ onConfirm?: () => void;
87
+ /** 查询参数转换 */
88
+ formatter?: (v: Record<string, any>) => Record<string, any>;
89
+ }
90
+ export interface TypeZTemplatesDataCommonProps {
91
+ /** 查询表单配置 */
92
+ querySetting: ProFormRenderProps;
93
+ /** 内容区配置 */
94
+ chartSetting: TypeChartSettingProps | Array<TypeChartSettingProps & {
95
+ custom: boolean;
96
+ child: (p: any) => React.ReactNode;
97
+ title: string;
98
+ }> | React.ReactNode;
99
+ _unsafe_MixedSetter_chartSetting_select?: any;
100
+ }
101
+ export default class ZTemplatesDataCommonContainer extends React.Component<TypeZTemplatesDataCommonProps, any> {
102
+ chartRef: any;
103
+ constructor(props: any);
104
+ render(): JSX.Element;
105
+ }
@@ -1,61 +1,61 @@
1
- /// <reference types="react" />
2
- /** table config */
3
- export declare const tableConfigDefault: {
4
- manual: boolean;
5
- toolBars: boolean;
6
- hideDefRowSelection: boolean;
7
- columns: any[];
8
- };
9
- /** 字符串拼接分割符 */
10
- export declare const separator = "***";
11
- /** 时间单位 */
12
- export declare const timeUnit: number;
13
- /** 介于 前闭后开 */
14
- export declare const BETWEEN = "<=,<";
15
- /** 数据类型 */
16
- export type valueType = number | string | null | undefined;
17
- /**
18
- * 计算宽
19
- * @param length
20
- * @param width
21
- */
22
- export declare const computeWidth: (length: number, width?: number) => number;
23
- /**
24
- * 获取最大宽
25
- * @param strArr
26
- */
27
- export declare const getMaxWidth: (strArr: any[]) => number;
28
- /**
29
- * 处理 QueryParams 去除空字符串
30
- */
31
- export declare const handleQueryParams: (query: Record<string, any>) => {
32
- [x: string]: any;
33
- };
34
- /**
35
- * 处理数据千分位
36
- */
37
- export declare const handleThousand: (value: valueType) => valueType;
38
- /**
39
- * 保留几位小数点
40
- */
41
- export declare const handleDecimal: (value: valueType, decimal?: number) => string;
42
- /**
43
- * 百分比转化
44
- */
45
- export declare const handlePercent: (value: valueType, decimal?: number, unit?: number) => string;
46
- /**
47
- * link外链处理
48
- */
49
- export declare const handleLink: (value: valueType, onLink?: () => void) => import("react").JSX.Element;
50
- /**
51
- * 条件格式设置
52
- * @param value 处理前的值
53
- * @param handledValue 被处理后的值 可能会是link标签
54
- */
55
- export declare const handleCondition: (value: valueType, handledValue: any, conditions: any[]) => any;
56
- /** 获取维度指标 */
57
- export declare const getDimTarget: (rcProContext: any, params: any) => Promise<any>;
58
- /** 获取报表数据 */
59
- export declare const getReportData: (rcProContext: any, params: any) => Promise<any>;
60
- /** 记住勾选 */
61
- export declare const saveDimTarget: (rcProContext: any, params: any) => Promise<any>;
1
+ /// <reference types="react" />
2
+ /** table config */
3
+ export declare const tableConfigDefault: {
4
+ manual: boolean;
5
+ toolBars: boolean;
6
+ hideDefRowSelection: boolean;
7
+ columns: any[];
8
+ };
9
+ /** 字符串拼接分割符 */
10
+ export declare const separator = "***";
11
+ /** 时间单位 */
12
+ export declare const timeUnit: number;
13
+ /** 介于 前闭后开 */
14
+ export declare const BETWEEN = "<=,<";
15
+ /** 数据类型 */
16
+ export type valueType = number | string | null | undefined;
17
+ /**
18
+ * 计算宽
19
+ * @param length
20
+ * @param width
21
+ */
22
+ export declare const computeWidth: (length: number, width?: number) => number;
23
+ /**
24
+ * 获取最大宽
25
+ * @param strArr
26
+ */
27
+ export declare const getMaxWidth: (strArr: any[]) => number;
28
+ /**
29
+ * 处理 QueryParams 去除空字符串
30
+ */
31
+ export declare const handleQueryParams: (query: Record<string, any>) => {
32
+ [x: string]: any;
33
+ };
34
+ /**
35
+ * 处理数据千分位
36
+ */
37
+ export declare const handleThousand: (value: valueType) => valueType;
38
+ /**
39
+ * 保留几位小数点
40
+ */
41
+ export declare const handleDecimal: (value: valueType, decimal?: number) => string;
42
+ /**
43
+ * 百分比转化
44
+ */
45
+ export declare const handlePercent: (value: valueType, decimal?: number, unit?: number) => string;
46
+ /**
47
+ * link外链处理
48
+ */
49
+ export declare const handleLink: (value: valueType, onLink?: () => void) => import("react").JSX.Element;
50
+ /**
51
+ * 条件格式设置
52
+ * @param value 处理前的值
53
+ * @param handledValue 被处理后的值 可能会是link标签
54
+ */
55
+ export declare const handleCondition: (value: valueType, handledValue: any, conditions: any[]) => any;
56
+ /** 获取维度指标 */
57
+ export declare const getDimTarget: (rcProContext: any, params: any) => Promise<any>;
58
+ /** 获取报表数据 */
59
+ export declare const getReportData: (rcProContext: any, params: any) => Promise<any>;
60
+ /** 记住勾选 */
61
+ export declare const saveDimTarget: (rcProContext: any, params: any) => Promise<any>;
@@ -31,10 +31,10 @@ exports.timeUnit = timeUnit;
31
31
  var BETWEEN = '<=,<';
32
32
  /** 数据类型 */
33
33
  exports.BETWEEN = BETWEEN;
34
- /**
35
- * 计算宽
36
- * @param length
37
- * @param width
34
+ /**
35
+ * 计算宽
36
+ * @param length
37
+ * @param width
38
38
  */
39
39
  var computeWidth = function computeWidth(length, width) {
40
40
  if (width === void 0) {
@@ -43,9 +43,9 @@ var computeWidth = function computeWidth(length, width) {
43
43
  return length * width;
44
44
  };
45
45
 
46
- /**
47
- * 获取最大宽
48
- * @param strArr
46
+ /**
47
+ * 获取最大宽
48
+ * @param strArr
49
49
  */
50
50
  exports.computeWidth = computeWidth;
51
51
  var getMaxWidth = function getMaxWidth(strArr) {
@@ -58,8 +58,8 @@ var getMaxWidth = function getMaxWidth(strArr) {
58
58
  return computeWidth(length, 14);
59
59
  };
60
60
 
61
- /**
62
- * 处理 QueryParams 去除空字符串
61
+ /**
62
+ * 处理 QueryParams 去除空字符串
63
63
  */
64
64
  exports.getMaxWidth = getMaxWidth;
65
65
  var handleQueryParams = function handleQueryParams(query) {
@@ -72,8 +72,8 @@ var handleQueryParams = function handleQueryParams(query) {
72
72
  return queryParams;
73
73
  };
74
74
 
75
- /**
76
- * 处理数据千分位
75
+ /**
76
+ * 处理数据千分位
77
77
  */
78
78
  exports.handleQueryParams = handleQueryParams;
79
79
  var handleThousand = function handleThousand(value) {
@@ -92,8 +92,8 @@ var handleThousand = function handleThousand(value) {
92
92
  }
93
93
  };
94
94
 
95
- /**
96
- * 保留几位小数点
95
+ /**
96
+ * 保留几位小数点
97
97
  */
98
98
  exports.handleThousand = handleThousand;
99
99
  var handleDecimal = function handleDecimal(value, decimal) {
@@ -104,8 +104,8 @@ var handleDecimal = function handleDecimal(value, decimal) {
104
104
  return Number(value).toFixed(decimal);
105
105
  };
106
106
 
107
- /**
108
- * 百分比转化
107
+ /**
108
+ * 百分比转化
109
109
  */
110
110
  exports.handleDecimal = handleDecimal;
111
111
  var handlePercent = function handlePercent(value, decimal, unit) {
@@ -119,8 +119,8 @@ var handlePercent = function handlePercent(value, decimal, unit) {
119
119
  return (Number(value) * unit).toFixed(decimal) + "%";
120
120
  };
121
121
 
122
- /**
123
- * link外链处理
122
+ /**
123
+ * link外链处理
124
124
  */
125
125
  exports.handlePercent = handlePercent;
126
126
  var handleLink = function handleLink(value, onLink) {
@@ -131,10 +131,10 @@ var handleLink = function handleLink(value, onLink) {
131
131
  }, value);
132
132
  };
133
133
 
134
- /**
135
- * 条件格式设置
136
- * @param value 处理前的值
137
- * @param handledValue 被处理后的值 可能会是link标签
134
+ /**
135
+ * 条件格式设置
136
+ * @param value 处理前的值
137
+ * @param handledValue 被处理后的值 可能会是link标签
138
138
  */
139
139
  exports.handleLink = handleLink;
140
140
  var handleCondition = function handleCondition(value, handledValue, conditions) {
@@ -1,3 +1,3 @@
1
- import ZTemplatesDataCommon from './data-common';
2
- export type { TypeZTemplatesDataCommonProps } from './data-common';
3
- export default ZTemplatesDataCommon;
1
+ import ZTemplatesDataCommon from './data-common';
2
+ export type { TypeZTemplatesDataCommonProps } from './data-common';
3
+ export default ZTemplatesDataCommon;
@@ -1,3 +1,3 @@
1
- import ZTpl from './tpl';
2
- export type { RcBasicTpl } from '@ztocwst/rc-pro';
3
- export default ZTpl;
1
+ import ZTpl from './tpl';
2
+ export type { RcBasicTpl } from '@ztocwst/rc-pro';
3
+ export default ZTpl;
@@ -1,23 +1,23 @@
1
- /**
2
- * 模板列表
3
- */
4
- import * as React from 'react';
5
- import type { RcPageProps } from '@ztocwst/rc-pro';
6
- export default class ZTplListContainer extends React.Component<RcPageProps, any> {
7
- pageRef: any;
8
- listRef: any;
9
- tableRef: any;
10
- listFormRef: any;
11
- listFormCurrentRef: any;
12
- billFormRef: any;
13
- billFormCurrentRef: any;
14
- constructor(props: any);
15
- getPageRef: () => any;
16
- getListRef: () => any;
17
- getTableRef: () => any;
18
- getListFormRef: () => any;
19
- getBillFormRef: () => any;
20
- getListFormCurrentRef: () => any;
21
- getBillFormCurrentRef: () => any;
22
- render(): React.JSX.Element;
23
- }
1
+ /**
2
+ * 模板列表
3
+ */
4
+ import * as React from 'react';
5
+ import type { RcPageProps } from '@ztocwst/rc-pro';
6
+ export default class ZTplListContainer extends React.Component<RcPageProps, any> {
7
+ pageRef: any;
8
+ listRef: any;
9
+ tableRef: any;
10
+ listFormRef: any;
11
+ listFormCurrentRef: any;
12
+ billFormRef: any;
13
+ billFormCurrentRef: any;
14
+ constructor(props: any);
15
+ getPageRef: () => any;
16
+ getListRef: () => any;
17
+ getTableRef: () => any;
18
+ getListFormRef: () => any;
19
+ getBillFormRef: () => any;
20
+ getListFormCurrentRef: () => any;
21
+ getBillFormCurrentRef: () => any;
22
+ render(): React.JSX.Element;
23
+ }