@ztocwst/rc-pro-materials 0.2.7 → 0.2.8

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 (197) 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/designer.html +2 -2
  7. package/build/lowcode/index.html +2 -2
  8. package/build/lowcode/index.js +1 -1
  9. package/build/lowcode/meta.js +1 -1
  10. package/build/lowcode/preview.js +5 -5
  11. package/build/lowcode/render/default/view.css +1 -2
  12. package/build/lowcode/render/default/view.js +8 -51
  13. package/build/lowcode/view.css +1 -2
  14. package/build/lowcode/view.js +9 -52
  15. package/dist/SCM_Comps.js +10 -53
  16. package/dist/SCM_Comps.js.map +1 -1
  17. package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
  18. package/es/components/z-Ellipsis/index.d.ts +3 -3
  19. package/es/components/z-agg-block/index.d.ts +3 -3
  20. package/es/components/z-agg-block/index.less +134 -134
  21. package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
  22. package/es/components/z-auth/auth.d.ts +9 -9
  23. package/es/components/z-auth/index.d.ts +3 -3
  24. package/es/components/z-box/box.d.ts +20 -20
  25. package/es/components/z-box/index.d.ts +3 -3
  26. package/es/components/z-box/index.less +4 -4
  27. package/es/components/z-button/index.d.ts +3 -3
  28. package/es/components/z-button/z-button.d.ts +4 -4
  29. package/es/components/z-config-provider/configProvider.d.ts +4 -4
  30. package/es/components/z-config-provider/configProvider.js +11 -11
  31. package/es/components/z-config-provider/index.d.ts +3 -3
  32. package/es/components/z-div/div.d.ts +6 -6
  33. package/es/components/z-div/index.d.ts +2 -2
  34. package/es/components/z-editTable/editTable.d.ts +11 -11
  35. package/es/components/z-editTable/editTable.js +2 -2
  36. package/es/components/z-editTable/index.d.ts +2 -2
  37. package/es/components/z-form/index.d.ts +3 -3
  38. package/es/components/z-form/z-form.d.ts +10 -10
  39. package/es/components/z-list/index.d.ts +3 -3
  40. package/es/components/z-list/list.d.ts +17 -17
  41. package/es/components/z-list/list.js +2 -2
  42. package/es/components/z-operation-records/index.d.ts +3 -3
  43. package/es/components/z-operation-records/operationRecords.d.ts +4 -4
  44. package/es/components/z-pointer-block/index.d.ts +3 -3
  45. package/es/components/z-pointer-block/index.less +15 -15
  46. package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  47. package/es/components/z-preview/index.d.ts +3 -3
  48. package/es/components/z-preview/preview.d.ts +4 -4
  49. package/es/components/z-pro-provider/index.d.ts +3 -3
  50. package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  51. package/es/components/z-ranking-list/index.d.ts +2 -2
  52. package/es/components/z-ranking-list/index.less +49 -49
  53. package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  54. package/es/components/z-ranking-list/z-ranking-list.js +2 -2
  55. package/es/components/z-simple-bar/index.d.ts +3 -3
  56. package/es/components/z-simple-bar/index.less +9 -9
  57. package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  58. package/es/components/z-singleFactory/index.d.ts +2 -2
  59. package/es/components/z-singleFactory/zSingerFactory.d.ts +3 -3
  60. package/es/components/z-statistic/index.d.ts +3 -3
  61. package/es/components/z-statistic/index.less +22 -22
  62. package/es/components/z-statistic/z-statistic.d.ts +13 -13
  63. package/es/components/z-table/index.d.ts +3 -3
  64. package/es/components/z-table/table.d.ts +8 -8
  65. package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
  66. package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
  67. package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
  68. package/es/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
  69. package/es/components/z-templates-data-common/components/dim-target/index.less +49 -49
  70. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
  71. package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
  72. package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
  73. package/es/components/z-templates-data-common/components/link-renderer/index.less +33 -33
  74. package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
  75. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
  76. package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
  77. package/es/components/z-templates-data-common/data-common.d.ts +105 -105
  78. package/es/components/z-templates-data-common/data-common.helper.d.ts +61 -61
  79. package/es/components/z-templates-data-common/data-common.helper.js +21 -21
  80. package/es/components/z-templates-data-common/index.d.ts +3 -3
  81. package/es/components/z-tpl/index.d.ts +3 -3
  82. package/es/components/z-tpl/tpl.d.ts +23 -23
  83. package/es/components/z-tpl/tpl.js +2 -2
  84. package/es/components/z-warehouse/index.d.ts +2 -2
  85. package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
  86. package/es/index.d.ts +38 -38
  87. package/es/index.scss +1 -1
  88. package/es/utils/hoc.d.ts +6 -6
  89. package/es/utils/hoc.js +3 -3
  90. package/es/utils/index.d.ts +13 -13
  91. package/es/utils/props/button.d.ts +13 -13
  92. package/es/utils/props/common.d.ts +7 -7
  93. package/es/utils/props/common.js +4 -4
  94. package/es/utils/props/editTable.d.ts +3 -3
  95. package/es/utils/props/form.d.ts +35 -0
  96. package/es/utils/props/form.js +2 -2
  97. package/es/utils/props/listTpl.d.ts +29 -29
  98. package/es/utils/props/microModal.d.ts +7 -7
  99. package/es/utils/props/microSwitch.d.ts +1 -1
  100. package/es/utils/props/modalSelect.d.ts +6 -6
  101. package/es/utils/props/operationRecords.d.ts +2 -2
  102. package/es/utils/props/preview.d.ts +2 -2
  103. package/es/utils/props/tpl.d.ts +162 -162
  104. package/es/utils/props/warehouseAndFactory.d.ts +1 -1
  105. package/es/utils/rcProRequest.d.ts +3 -3
  106. package/es/variables.scss +3 -3
  107. package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
  108. package/lib/components/z-Ellipsis/index.d.ts +3 -3
  109. package/lib/components/z-agg-block/index.d.ts +3 -3
  110. package/lib/components/z-agg-block/index.less +134 -134
  111. package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
  112. package/lib/components/z-auth/auth.d.ts +9 -9
  113. package/lib/components/z-auth/index.d.ts +3 -3
  114. package/lib/components/z-box/box.d.ts +20 -20
  115. package/lib/components/z-box/index.d.ts +3 -3
  116. package/lib/components/z-box/index.less +4 -4
  117. package/lib/components/z-button/index.d.ts +3 -3
  118. package/lib/components/z-button/z-button.d.ts +4 -4
  119. package/lib/components/z-config-provider/configProvider.d.ts +4 -4
  120. package/lib/components/z-config-provider/configProvider.js +11 -11
  121. package/lib/components/z-config-provider/index.d.ts +3 -3
  122. package/lib/components/z-div/div.d.ts +6 -6
  123. package/lib/components/z-div/index.d.ts +2 -2
  124. package/lib/components/z-editTable/editTable.d.ts +11 -11
  125. package/lib/components/z-editTable/editTable.js +2 -2
  126. package/lib/components/z-editTable/index.d.ts +2 -2
  127. package/lib/components/z-form/index.d.ts +3 -3
  128. package/lib/components/z-form/z-form.d.ts +10 -10
  129. package/lib/components/z-list/index.d.ts +3 -3
  130. package/lib/components/z-list/list.d.ts +17 -17
  131. package/lib/components/z-list/list.js +2 -2
  132. package/lib/components/z-operation-records/index.d.ts +3 -3
  133. package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
  134. package/lib/components/z-pointer-block/index.d.ts +3 -3
  135. package/lib/components/z-pointer-block/index.less +15 -15
  136. package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
  137. package/lib/components/z-preview/index.d.ts +3 -3
  138. package/lib/components/z-preview/preview.d.ts +4 -4
  139. package/lib/components/z-pro-provider/index.d.ts +3 -3
  140. package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
  141. package/lib/components/z-ranking-list/index.d.ts +2 -2
  142. package/lib/components/z-ranking-list/index.less +49 -49
  143. package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
  144. package/lib/components/z-ranking-list/z-ranking-list.js +2 -2
  145. package/lib/components/z-simple-bar/index.d.ts +3 -3
  146. package/lib/components/z-simple-bar/index.less +9 -9
  147. package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
  148. package/lib/components/z-singleFactory/index.d.ts +2 -2
  149. package/lib/components/z-singleFactory/zSingerFactory.d.ts +3 -3
  150. package/lib/components/z-statistic/index.d.ts +3 -3
  151. package/lib/components/z-statistic/index.less +22 -22
  152. package/lib/components/z-statistic/z-statistic.d.ts +13 -13
  153. package/lib/components/z-table/index.d.ts +3 -3
  154. package/lib/components/z-table/table.d.ts +8 -8
  155. package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
  156. package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
  157. package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
  158. package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
  159. package/lib/components/z-templates-data-common/components/dim-target/index.less +49 -49
  160. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
  161. package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
  162. package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
  163. package/lib/components/z-templates-data-common/components/link-renderer/index.less +33 -33
  164. package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
  165. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
  166. package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
  167. package/lib/components/z-templates-data-common/data-common.d.ts +105 -105
  168. package/lib/components/z-templates-data-common/data-common.helper.d.ts +61 -61
  169. package/lib/components/z-templates-data-common/data-common.helper.js +21 -21
  170. package/lib/components/z-templates-data-common/index.d.ts +3 -3
  171. package/lib/components/z-tpl/index.d.ts +3 -3
  172. package/lib/components/z-tpl/tpl.d.ts +23 -23
  173. package/lib/components/z-tpl/tpl.js +2 -2
  174. package/lib/components/z-warehouse/index.d.ts +2 -2
  175. package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
  176. package/lib/index.d.ts +38 -38
  177. package/lib/index.scss +1 -1
  178. package/lib/utils/hoc.d.ts +6 -6
  179. package/lib/utils/hoc.js +3 -3
  180. package/lib/utils/index.d.ts +13 -13
  181. package/lib/utils/props/button.d.ts +13 -13
  182. package/lib/utils/props/common.d.ts +7 -7
  183. package/lib/utils/props/common.js +4 -4
  184. package/lib/utils/props/editTable.d.ts +3 -3
  185. package/lib/utils/props/form.d.ts +35 -0
  186. package/lib/utils/props/form.js +2 -2
  187. package/lib/utils/props/listTpl.d.ts +29 -29
  188. package/lib/utils/props/microModal.d.ts +7 -7
  189. package/lib/utils/props/microSwitch.d.ts +1 -1
  190. package/lib/utils/props/modalSelect.d.ts +6 -6
  191. package/lib/utils/props/operationRecords.d.ts +2 -2
  192. package/lib/utils/props/preview.d.ts +2 -2
  193. package/lib/utils/props/tpl.d.ts +162 -162
  194. package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
  195. package/lib/utils/rcProRequest.d.ts +3 -3
  196. package/lib/variables.scss +3 -3
  197. package/package.json +4 -4
@@ -1,3 +1,3 @@
1
- import ZSimpleBar from './z-simple-bar';
2
- export type { TypeZSimpleBarProps } from './z-simple-bar';
3
- export default ZSimpleBar;
1
+ import ZSimpleBar from './z-simple-bar';
2
+ export type { TypeZSimpleBarProps } from './z-simple-bar';
3
+ export default ZSimpleBar;
@@ -1,9 +1,9 @@
1
- .z-simple-bar {
2
- .bar-item {
3
- margin-bottom: 20px;
4
-
5
- &:last-child {
6
- margin-bottom: 0;
7
- }
8
- }
9
- }
1
+ .z-simple-bar {
2
+ .bar-item {
3
+ margin-bottom: 20px;
4
+
5
+ &:last-child {
6
+ margin-bottom: 0;
7
+ }
8
+ }
9
+ }
@@ -1,27 +1,27 @@
1
- /// <reference types="react" />
2
- import { ProgressProps } from 'antd';
3
- import './index.less';
4
- export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
5
- /** 数据源 */
6
- data: any[];
7
- /** 行key */
8
- rowKey?: string;
9
- /**
10
- * 双行显示
11
- * @type boolean
12
- * @default false
13
- */
14
- wrap?: boolean;
15
- /** 标题字段 */
16
- titleField?: string | ((v: any, index: number) => React.ReactNode);
17
- /** 值字段 */
18
- valueField?: string | ((v: any, index: number) => React.ReactNode);
19
- /** 百分比字段 */
20
- percentField?: string | ((v: any, index: number) => React.ReactNode);
21
- /** 百分比内容格式化,中转其本身的format */
22
- format?: (percent: number, successPercent: number, item: any, index: number) => string;
23
- /** 单号显示间距 */
24
- gap?: number;
25
- }
26
- declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
27
- export default ZSimpleBar;
1
+ /// <reference types="react" />
2
+ import { ProgressProps } from 'antd';
3
+ import './index.less';
4
+ export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
5
+ /** 数据源 */
6
+ data: any[];
7
+ /** 行key */
8
+ rowKey?: string;
9
+ /**
10
+ * 双行显示
11
+ * @type boolean
12
+ * @default false
13
+ */
14
+ wrap?: boolean;
15
+ /** 标题字段 */
16
+ titleField?: string | ((v: any, index: number) => React.ReactNode);
17
+ /** 值字段 */
18
+ valueField?: string | ((v: any, index: number) => React.ReactNode);
19
+ /** 百分比字段 */
20
+ percentField?: string | ((v: any, index: number) => React.ReactNode);
21
+ /** 百分比内容格式化,中转其本身的format */
22
+ format?: (percent: number, successPercent: number, item: any, index: number) => string;
23
+ /** 单号显示间距 */
24
+ gap?: number;
25
+ }
26
+ declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
27
+ export default ZSimpleBar;
@@ -1,2 +1,2 @@
1
- import ZSingerFactory from './zSingerFactory';
2
- export default ZSingerFactory;
1
+ import ZSingerFactory from './zSingerFactory';
2
+ export default ZSingerFactory;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- declare const ZSingerFactory: (props: any) => React.JSX.Element;
3
- export default ZSingerFactory;
1
+ import * as React from 'react';
2
+ declare const ZSingerFactory: (props: any) => React.JSX.Element;
3
+ export default ZSingerFactory;
@@ -1,3 +1,3 @@
1
- import ZStatistic from './z-statistic';
2
- export type { TypeZStatisticProps } from './z-statistic';
3
- export default ZStatistic;
1
+ import ZStatistic from './z-statistic';
2
+ export type { TypeZStatisticProps } from './z-statistic';
3
+ export default ZStatistic;
@@ -1,22 +1,22 @@
1
- .statistic-wrap {
2
- display: flex;
3
- flex-direction: row;
4
-
5
- .statistic-title-suffix {
6
- margin-left: 4px;
7
- }
8
-
9
- .statistic-left {
10
- flex: 1;
11
- }
12
-
13
- .statistic-right {
14
- text-align: right;
15
- }
16
-
17
- .statistic-right-title-extra {
18
- margin-bottom: 4px;
19
- font-size: 14px;
20
- min-height: 22px;
21
- }
22
- }
1
+ .statistic-wrap {
2
+ display: flex;
3
+ flex-direction: row;
4
+
5
+ .statistic-title-suffix {
6
+ margin-left: 4px;
7
+ }
8
+
9
+ .statistic-left {
10
+ flex: 1;
11
+ }
12
+
13
+ .statistic-right {
14
+ text-align: right;
15
+ }
16
+
17
+ .statistic-right-title-extra {
18
+ margin-bottom: 4px;
19
+ font-size: 14px;
20
+ min-height: 22px;
21
+ }
22
+ }
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
2
- import { StatisticProps } from 'antd';
3
- import './index.less';
4
- export interface TypeZStatisticProps extends StatisticProps {
5
- /** 标题后缀 */
6
- titleSuffix?: string | React.ReactNode;
7
- /** 标题附加内容 */
8
- titleExtra?: string | React.ReactNode;
9
- /** 值附加内容 */
10
- valueExtra?: string | React.ReactNode;
11
- }
12
- declare const ZStatistic: (props: TypeZStatisticProps) => import("react").JSX.Element;
13
- export default ZStatistic;
1
+ /// <reference types="react" />
2
+ import { StatisticProps } from 'antd';
3
+ import './index.less';
4
+ export interface TypeZStatisticProps extends StatisticProps {
5
+ /** 标题后缀 */
6
+ titleSuffix?: string | React.ReactNode;
7
+ /** 标题附加内容 */
8
+ titleExtra?: string | React.ReactNode;
9
+ /** 值附加内容 */
10
+ valueExtra?: string | React.ReactNode;
11
+ }
12
+ declare const ZStatistic: (props: TypeZStatisticProps) => import("react").JSX.Element;
13
+ export default ZStatistic;
@@ -1,3 +1,3 @@
1
- import ZTable from './table';
2
- export type { ProTableProps } from '@ztocwst/rc-pro';
3
- export default ZTable;
1
+ import ZTable from './table';
2
+ export type { ProTableProps } from '@ztocwst/rc-pro';
3
+ export default ZTable;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import type { ProTableProps } from '@ztocwst/rc-pro';
3
- export default class ZTableContainer extends React.Component<ProTableProps, any> {
4
- tableRef: any;
5
- constructor(props: any);
6
- getTableRef: () => any;
7
- render(): React.JSX.Element;
8
- }
1
+ import * as React from 'react';
2
+ import type { ProTableProps } from '@ztocwst/rc-pro';
3
+ export default class ZTableContainer extends React.Component<ProTableProps, any> {
4
+ tableRef: any;
5
+ constructor(props: any);
6
+ getTableRef: () => any;
7
+ render(): React.JSX.Element;
8
+ }
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import type { TypeZTemplatesDataCommonProps } from '../../data-common';
3
- import type { linkParamsType } from '../link-renderer';
4
- export interface ChartRendererProps {
5
- chartSetting?: Pick<TypeZTemplatesDataCommonProps, 'chartSetting'>;
6
- chartRenderRef?: React.Ref<{
7
- onLink: (v: linkParamsType) => void;
8
- queryChart: (v: Record<string, any>, d: string | undefined) => void;
9
- }>;
10
- /** 确认 */
11
- onConfirm?: () => void;
12
- }
13
- declare const ChartRenderer: ({ chartRenderRef, chartSetting, onConfirm }: ChartRendererProps) => JSX.Element | Pick<TypeZTemplatesDataCommonProps, "chartSetting">;
14
- export default ChartRenderer;
1
+ import React from 'react';
2
+ import type { TypeZTemplatesDataCommonProps } from '../../data-common';
3
+ import type { linkParamsType } from '../link-renderer';
4
+ export interface ChartRendererProps {
5
+ chartSetting?: Pick<TypeZTemplatesDataCommonProps, 'chartSetting'>;
6
+ chartRenderRef?: React.Ref<{
7
+ onLink: (v: linkParamsType) => void;
8
+ queryChart: (v: Record<string, any>, d: string | undefined) => void;
9
+ }>;
10
+ /** 确认 */
11
+ onConfirm?: () => void;
12
+ }
13
+ declare const ChartRenderer: ({ chartRenderRef, chartSetting, onConfirm }: ChartRendererProps) => JSX.Element | Pick<TypeZTemplatesDataCommonProps, "chartSetting">;
14
+ export default ChartRenderer;
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
2
- import type { TypeChartSettingProps } from '../../data-common';
3
- import type { linkParamsType } from '../link-renderer';
4
- declare const CustomRenderer: (props: TypeChartSettingProps & {
5
- activeKey: string;
6
- custom: boolean;
7
- child: (p: any) => React.ReactNode;
8
- chartRef?: import("react").Ref<{
9
- onLink: (v: linkParamsType) => void;
10
- queryChart: (v: Record<string, any>, d: string | undefined) => void;
11
- }>;
12
- }) => import("react").JSX.Element;
13
- export default CustomRenderer;
1
+ /// <reference types="react" />
2
+ import type { TypeChartSettingProps } from '../../data-common';
3
+ import type { linkParamsType } from '../link-renderer';
4
+ declare const CustomRenderer: (props: TypeChartSettingProps & {
5
+ activeKey: string;
6
+ custom: boolean;
7
+ child: (p: any) => React.ReactNode;
8
+ chartRef?: import("react").Ref<{
9
+ onLink: (v: linkParamsType) => void;
10
+ queryChart: (v: Record<string, any>, d: string | undefined) => void;
11
+ }>;
12
+ }) => import("react").JSX.Element;
13
+ export default CustomRenderer;
@@ -1,39 +1,39 @@
1
- import type { CheckboxValueType } from 'antd/es/checkbox/Group';
2
- import { TypeTargetProps } from '../../data-common';
3
- /**
4
- * 维度状态
5
- */
6
- export interface DimsType {
7
- title: string;
8
- all: boolean;
9
- indeterminate: boolean;
10
- dimension: CheckboxValueType[];
11
- dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
12
- }
13
- /**
14
- * 指标状态
15
- */
16
- export interface TargetsType {
17
- title: string;
18
- all: boolean;
19
- indeterminate: boolean;
20
- index: CheckboxValueType[];
21
- indexSource: TypeTargetProps[];
22
- }
23
- /**
24
- * 维度指标组件初始
25
- */
26
- export interface DimTargetInitialValueType {
27
- dims: DimsType;
28
- targets: TargetsType;
29
- rememberCheck: boolean;
30
- }
31
- /**
32
- * 维度指标 Change value
33
- */
34
- export interface DimTargetChangeOptionType {
35
- dimension: CheckboxValueType[];
36
- dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
37
- index: CheckboxValueType[];
38
- indexSource: TypeTargetProps[];
39
- }
1
+ import type { CheckboxValueType } from 'antd/es/checkbox/Group';
2
+ import { TypeTargetProps } from '../../data-common';
3
+ /**
4
+ * 维度状态
5
+ */
6
+ export interface DimsType {
7
+ title: string;
8
+ all: boolean;
9
+ indeterminate: boolean;
10
+ dimension: CheckboxValueType[];
11
+ dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
12
+ }
13
+ /**
14
+ * 指标状态
15
+ */
16
+ export interface TargetsType {
17
+ title: string;
18
+ all: boolean;
19
+ indeterminate: boolean;
20
+ index: CheckboxValueType[];
21
+ indexSource: TypeTargetProps[];
22
+ }
23
+ /**
24
+ * 维度指标组件初始
25
+ */
26
+ export interface DimTargetInitialValueType {
27
+ dims: DimsType;
28
+ targets: TargetsType;
29
+ rememberCheck: boolean;
30
+ }
31
+ /**
32
+ * 维度指标 Change value
33
+ */
34
+ export interface DimTargetChangeOptionType {
35
+ dimension: CheckboxValueType[];
36
+ dimensionSource: Array<Omit<TypeTargetProps, 'amounted' | 'enName' | 'isFilter'>>;
37
+ index: CheckboxValueType[];
38
+ indexSource: TypeTargetProps[];
39
+ }
@@ -1,16 +1,16 @@
1
- import React from 'react';
2
- import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
3
- import type { DimTargetChangeOptionType, DimTargetInitialValueType } from './dim-target.helper';
4
- import './index.less';
5
- export interface DimTargetProps {
6
- value?: DimTargetInitialValueType;
7
- dataSetName?: string;
8
- remember?: boolean;
9
- buttons?: ProButtonItemsProps[];
10
- dimTargetRef?: React.Ref<{
11
- getDimTargetValues: () => DimTargetChangeOptionType;
12
- }>;
13
- onChange?: (v: DimTargetChangeOptionType) => void;
14
- }
15
- declare const DimTarget: ({ value, dataSetName, remember, buttons, dimTargetRef, onChange, }: DimTargetProps) => JSX.Element;
16
- export default DimTarget;
1
+ import React from 'react';
2
+ import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
3
+ import type { DimTargetChangeOptionType, DimTargetInitialValueType } from './dim-target.helper';
4
+ import './index.less';
5
+ export interface DimTargetProps {
6
+ value?: DimTargetInitialValueType;
7
+ dataSetName?: string;
8
+ remember?: boolean;
9
+ buttons?: ProButtonItemsProps[];
10
+ dimTargetRef?: React.Ref<{
11
+ getDimTargetValues: () => DimTargetChangeOptionType;
12
+ }>;
13
+ onChange?: (v: DimTargetChangeOptionType) => void;
14
+ }
15
+ declare const DimTarget: ({ value, dataSetName, remember, buttons, dimTargetRef, onChange, }: DimTargetProps) => JSX.Element;
16
+ export default DimTarget;
@@ -1,49 +1,49 @@
1
- .dim-target {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 20px 0;
6
-
7
- .ant-checkbox-wrapper + .ant-checkbox-wrapper {
8
- margin-left: 0;
9
- }
10
-
11
- .dim-target-content {
12
- display: flex;
13
- }
14
-
15
- .dim-target-label {
16
- min-width: 80px;
17
- color: rgba(0, 0, 0, 0.85);
18
- font-size: 14px;
19
- text-align: right;
20
- padding-right: 6px;
21
- }
22
-
23
- .dim-target-body {
24
- display: flex;
25
- }
26
-
27
- .ant-checkbox-wrapper {
28
- margin-bottom: 16px;
29
- white-space: nowrap;
30
- }
31
-
32
- .dim-target-handle {
33
- position: relative;
34
- width: 160px;
35
- padding-left: 40px;
36
- }
37
-
38
- .dim-target-handle::before {
39
- position: absolute;
40
- top: 50%;
41
- left: 0;
42
- display: inline-block;
43
- width: 1px;
44
- height: 110%;
45
- background: #e5e5e5;
46
- transform: translateY(-50%);
47
- content: '';
48
- }
49
- }
1
+ .dim-target {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ padding: 20px 0;
6
+
7
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
8
+ margin-left: 0;
9
+ }
10
+
11
+ .dim-target-content {
12
+ display: flex;
13
+ }
14
+
15
+ .dim-target-label {
16
+ min-width: 80px;
17
+ color: rgba(0, 0, 0, 0.85);
18
+ font-size: 14px;
19
+ text-align: right;
20
+ padding-right: 6px;
21
+ }
22
+
23
+ .dim-target-body {
24
+ display: flex;
25
+ }
26
+
27
+ .ant-checkbox-wrapper {
28
+ margin-bottom: 16px;
29
+ white-space: nowrap;
30
+ }
31
+
32
+ .dim-target-handle {
33
+ position: relative;
34
+ width: 160px;
35
+ padding-left: 40px;
36
+ }
37
+
38
+ .dim-target-handle::before {
39
+ position: absolute;
40
+ top: 50%;
41
+ left: 0;
42
+ display: inline-block;
43
+ width: 1px;
44
+ height: 110%;
45
+ background: #e5e5e5;
46
+ transform: translateY(-50%);
47
+ content: '';
48
+ }
49
+ }
@@ -1,8 +1,8 @@
1
- import type { DependencyList, EffectCallback } from 'react';
2
- /**
3
- * 依赖更改时生命周期
4
- * @param effect 更新时做需要调用的函数
5
- * @param deps 更新依赖
6
- */
7
- declare const useUpdateEffect: (effect: EffectCallback, deps: DependencyList) => void;
8
- export default useUpdateEffect;
1
+ import type { DependencyList, EffectCallback } from 'react';
2
+ /**
3
+ * 依赖更改时生命周期
4
+ * @param effect 更新时做需要调用的函数
5
+ * @param deps 更新依赖
6
+ */
7
+ declare const useUpdateEffect: (effect: EffectCallback, deps: DependencyList) => void;
8
+ export default useUpdateEffect;
@@ -3,8 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _react = require("react");
6
- /**
7
- * 是否第一次
6
+ /**
7
+ * 是否第一次
8
8
  */
9
9
  var useFirstRender = function useFirstRender() {
10
10
  var isFirst = (0, _react.useRef)(true);
@@ -15,10 +15,10 @@ var useFirstRender = function useFirstRender() {
15
15
  return isFirst.current;
16
16
  };
17
17
 
18
- /**
19
- * 依赖更改时生命周期
20
- * @param effect 更新时做需要调用的函数
21
- * @param deps 更新依赖
18
+ /**
19
+ * 依赖更改时生命周期
20
+ * @param effect 更新时做需要调用的函数
21
+ * @param deps 更新依赖
22
22
  */
23
23
  var useUpdateEffect = function useUpdateEffect(effect, deps) {
24
24
  var isFirst = useFirstRender();
@@ -1,16 +1,16 @@
1
- /// <reference types="react" />
2
- import type { CheckboxValueType } from 'antd/es/checkbox/Group';
3
- import type { TypeChartSettingProps } from '../../data-common';
4
- import './index.less';
5
- export interface linkParamsType extends Pick<TypeChartSettingProps, 'dataSetName'> {
6
- index?: number | string;
7
- width?: number;
8
- dimension?: CheckboxValueType[];
9
- record?: Record<string, any>;
10
- }
11
- export interface linkStateType extends linkParamsType, Pick<TypeChartSettingProps, 'chartTitle' | 'title' | 'autoLoad' | 'refreshRate'> {
12
- }
13
- declare const LinkRenderer: (props: Pick<TypeChartSettingProps, "onConfirm" | "chartRef" | "dimJson" | "linkPage" | "linkPageTitle"> & {
14
- onBack?: () => void;
15
- }) => import("react").JSX.Element;
16
- export default LinkRenderer;
1
+ /// <reference types="react" />
2
+ import type { CheckboxValueType } from 'antd/es/checkbox/Group';
3
+ import type { TypeChartSettingProps } from '../../data-common';
4
+ import './index.less';
5
+ export interface linkParamsType extends Pick<TypeChartSettingProps, 'dataSetName'> {
6
+ index?: number | string;
7
+ width?: number;
8
+ dimension?: CheckboxValueType[];
9
+ record?: Record<string, any>;
10
+ }
11
+ export interface linkStateType extends linkParamsType, Pick<TypeChartSettingProps, 'chartTitle' | 'title' | 'autoLoad' | 'refreshRate'> {
12
+ }
13
+ declare const LinkRenderer: (props: Pick<TypeChartSettingProps, "onConfirm" | "chartRef" | "dimJson" | "linkPage" | "linkPageTitle"> & {
14
+ onBack?: () => void;
15
+ }) => import("react").JSX.Element;
16
+ export default LinkRenderer;
@@ -1,33 +1,33 @@
1
- @root-entry-name: 'default';
2
- @import (reference) '~antd/es/style/themes/index.less';
3
- .link-head {
4
- display: flex;
5
- align-items: center;
6
- margin: 12px 0;
7
- .ant-radio-group {
8
- flex: 1;
9
- overflow-x: auto;
10
- display: flex;
11
- }
12
-
13
- .link-title {
14
- display: flex;
15
- align-items: center;
16
- margin-right: 12px;
17
- font-weight: 600;
18
- font-size: 20px;
19
- color: #333;
20
- white-space: nowrap;
21
- }
22
-
23
- .arrow-left {
24
- margin-right: 5px;
25
- font-size: 20px;
26
- cursor: pointer;
27
- }
28
-
29
- .arrow-left:hover {
30
- transition: all 0.3s ease-in;
31
- color: var(--ant-primary-color, @primary-color);
32
- }
33
- }
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+ .link-head {
4
+ display: flex;
5
+ align-items: center;
6
+ margin: 12px 0;
7
+ .ant-radio-group {
8
+ flex: 1;
9
+ overflow-x: auto;
10
+ display: flex;
11
+ }
12
+
13
+ .link-title {
14
+ display: flex;
15
+ align-items: center;
16
+ margin-right: 12px;
17
+ font-weight: 600;
18
+ font-size: 20px;
19
+ color: #333;
20
+ white-space: nowrap;
21
+ }
22
+
23
+ .arrow-left {
24
+ margin-right: 5px;
25
+ font-size: 20px;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .arrow-left:hover {
30
+ transition: all 0.3s ease-in;
31
+ color: var(--ant-primary-color, @primary-color);
32
+ }
33
+ }
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import type { TypeChartSettingProps } from '../../data-common';
3
- declare const TableRenderer: (props: TypeChartSettingProps & {
4
- activeKey: string;
5
- }) => import("react").JSX.Element;
6
- export default TableRenderer;
1
+ /// <reference types="react" />
2
+ import type { TypeChartSettingProps } from '../../data-common';
3
+ declare const TableRenderer: (props: TypeChartSettingProps & {
4
+ activeKey: string;
5
+ }) => import("react").JSX.Element;
6
+ export default TableRenderer;