@ztocwst/rc-pro-materials 0.2.9 → 0.2.10
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/README.md +17 -17
- package/build/index.js +8 -8
- 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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -2
- package/build/lowcode/render/default/view.js +8 -51
- package/build/lowcode/view.css +1 -2
- package/build/lowcode/view.js +9 -52
- package/dist/SCM_Comps.js +10 -53
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/es/components/z-Ellipsis/index.d.ts +3 -3
- package/es/components/z-agg-block/index.d.ts +3 -3
- package/es/components/z-agg-block/index.less +134 -134
- package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/es/components/z-auth/auth.d.ts +9 -9
- package/es/components/z-auth/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/index.d.ts +3 -3
- package/es/components/z-box/index.less +4 -4
- package/es/components/z-button/index.d.ts +3 -3
- package/es/components/z-button/z-button.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.js +11 -11
- package/es/components/z-config-provider/index.d.ts +3 -3
- package/es/components/z-div/div.d.ts +6 -6
- package/es/components/z-div/index.d.ts +2 -2
- package/es/components/z-editTable/editTable.d.ts +11 -11
- package/es/components/z-editTable/editTable.js +2 -2
- package/es/components/z-editTable/index.d.ts +2 -2
- package/es/components/z-form/index.d.ts +3 -3
- package/es/components/z-form/z-form.d.ts +10 -10
- package/es/components/z-list/index.d.ts +3 -3
- package/es/components/z-list/list.d.ts +17 -17
- package/es/components/z-list/list.js +2 -2
- package/es/components/z-operation-records/index.d.ts +3 -3
- package/es/components/z-operation-records/operationRecords.d.ts +4 -4
- package/es/components/z-pointer-block/index.d.ts +3 -3
- package/es/components/z-pointer-block/index.less +15 -15
- package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/es/components/z-preview/index.d.ts +3 -3
- package/es/components/z-preview/preview.d.ts +4 -4
- package/es/components/z-pro-provider/index.d.ts +3 -3
- package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/es/components/z-ranking-list/index.d.ts +2 -2
- package/es/components/z-ranking-list/index.less +49 -49
- package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/es/components/z-ranking-list/z-ranking-list.js +2 -2
- package/es/components/z-simple-bar/index.d.ts +3 -3
- package/es/components/z-simple-bar/index.less +9 -9
- package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/es/components/z-singleFactory/index.d.ts +2 -2
- package/es/components/z-singleFactory/zSingerFactory.d.ts +3 -3
- package/es/components/z-slick/index.d.ts +3 -0
- package/es/components/z-slick/index.js +2 -0
- package/es/components/z-slick/slick.d.ts +47 -0
- package/es/components/z-slick/slick.js +35 -0
- package/es/components/z-statistic/index.d.ts +3 -3
- package/es/components/z-statistic/index.less +22 -22
- package/es/components/z-statistic/z-statistic.d.ts +13 -13
- package/es/components/z-table/index.d.ts +3 -3
- package/es/components/z-table/table.d.ts +8 -8
- package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
- package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
- package/es/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
- package/es/components/z-templates-data-common/components/dim-target/index.less +49 -49
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
- package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
- package/es/components/z-templates-data-common/components/link-renderer/index.less +33 -33
- package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
- package/es/components/z-templates-data-common/data-common.d.ts +105 -105
- package/es/components/z-templates-data-common/data-common.helper.d.ts +61 -61
- package/es/components/z-templates-data-common/data-common.helper.js +21 -21
- package/es/components/z-templates-data-common/index.d.ts +3 -3
- package/es/components/z-tpl/index.d.ts +3 -3
- package/es/components/z-tpl/tpl.d.ts +23 -23
- package/es/components/z-tpl/tpl.js +2 -2
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/es/index.d.ts +40 -38
- package/es/index.js +1 -0
- package/es/index.scss +1 -1
- package/es/style.js +1 -0
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +13 -13
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/common.d.ts +7 -7
- package/es/utils/props/common.js +4 -4
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/form.d.ts +35 -0
- package/es/utils/props/form.js +2 -2
- package/es/utils/props/listTpl.d.ts +29 -29
- package/es/utils/props/microModal.d.ts +7 -7
- package/es/utils/props/microSwitch.d.ts +1 -1
- package/es/utils/props/modalSelect.d.ts +6 -6
- package/es/utils/props/operationRecords.d.ts +2 -2
- package/es/utils/props/preview.d.ts +2 -2
- package/es/utils/props/tpl.d.ts +162 -162
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- package/es/utils/rcProRequest.d.ts +3 -3
- package/es/variables.scss +3 -3
- package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/lib/components/z-Ellipsis/index.d.ts +3 -3
- package/lib/components/z-agg-block/index.d.ts +3 -3
- package/lib/components/z-agg-block/index.less +134 -134
- package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/lib/components/z-auth/auth.d.ts +9 -9
- package/lib/components/z-auth/index.d.ts +3 -3
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/index.d.ts +3 -3
- package/lib/components/z-box/index.less +4 -4
- package/lib/components/z-button/index.d.ts +3 -3
- package/lib/components/z-button/z-button.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.js +11 -11
- package/lib/components/z-config-provider/index.d.ts +3 -3
- package/lib/components/z-div/div.d.ts +6 -6
- package/lib/components/z-div/index.d.ts +2 -2
- package/lib/components/z-editTable/editTable.d.ts +11 -11
- package/lib/components/z-editTable/editTable.js +2 -2
- package/lib/components/z-editTable/index.d.ts +2 -2
- package/lib/components/z-form/index.d.ts +3 -3
- package/lib/components/z-form/z-form.d.ts +10 -10
- package/lib/components/z-list/index.d.ts +3 -3
- package/lib/components/z-list/list.d.ts +17 -17
- package/lib/components/z-list/list.js +2 -2
- package/lib/components/z-operation-records/index.d.ts +3 -3
- package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
- package/lib/components/z-pointer-block/index.d.ts +3 -3
- package/lib/components/z-pointer-block/index.less +15 -15
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/lib/components/z-preview/index.d.ts +3 -3
- package/lib/components/z-preview/preview.d.ts +4 -4
- package/lib/components/z-pro-provider/index.d.ts +3 -3
- package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/lib/components/z-ranking-list/index.d.ts +2 -2
- package/lib/components/z-ranking-list/index.less +49 -49
- package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/lib/components/z-ranking-list/z-ranking-list.js +2 -2
- package/lib/components/z-simple-bar/index.d.ts +3 -3
- package/lib/components/z-simple-bar/index.less +9 -9
- package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/lib/components/z-singleFactory/index.d.ts +2 -2
- package/lib/components/z-singleFactory/zSingerFactory.d.ts +3 -3
- package/lib/components/z-slick/index.d.ts +3 -0
- package/lib/components/z-slick/index.js +8 -0
- package/lib/components/z-slick/slick.d.ts +47 -0
- package/lib/components/z-slick/slick.js +40 -0
- package/lib/components/z-statistic/index.d.ts +3 -3
- package/lib/components/z-statistic/index.less +22 -22
- package/lib/components/z-statistic/z-statistic.d.ts +13 -13
- package/lib/components/z-table/index.d.ts +3 -3
- package/lib/components/z-table/table.d.ts +8 -8
- package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +14 -14
- package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +13 -13
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +39 -39
- package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +16 -16
- package/lib/components/z-templates-data-common/components/dim-target/index.less +49 -49
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +8 -8
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +6 -6
- package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +16 -16
- package/lib/components/z-templates-data-common/components/link-renderer/index.less +33 -33
- package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +6 -6
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +64 -64
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +10 -10
- package/lib/components/z-templates-data-common/data-common.d.ts +105 -105
- package/lib/components/z-templates-data-common/data-common.helper.d.ts +61 -61
- package/lib/components/z-templates-data-common/data-common.helper.js +21 -21
- package/lib/components/z-templates-data-common/index.d.ts +3 -3
- package/lib/components/z-tpl/index.d.ts +3 -3
- package/lib/components/z-tpl/tpl.d.ts +23 -23
- package/lib/components/z-tpl/tpl.js +2 -2
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/lib/index.d.ts +40 -38
- package/lib/index.js +4 -2
- package/lib/index.scss +1 -1
- package/lib/style.js +1 -0
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +13 -13
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/common.d.ts +7 -7
- package/lib/utils/props/common.js +4 -4
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/form.d.ts +35 -0
- package/lib/utils/props/form.js +2 -2
- package/lib/utils/props/listTpl.d.ts +29 -29
- package/lib/utils/props/microModal.d.ts +7 -7
- package/lib/utils/props/microSwitch.d.ts +1 -1
- package/lib/utils/props/modalSelect.d.ts +6 -6
- package/lib/utils/props/operationRecords.d.ts +2 -2
- package/lib/utils/props/preview.d.ts +2 -2
- package/lib/utils/props/tpl.d.ts +162 -162
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/utils/rcProRequest.d.ts +3 -3
- package/lib/variables.scss +3 -3
- package/package.json +3 -3
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* 是否第一次
|
|
3
|
+
/**
|
|
4
|
+
* 是否第一次
|
|
5
5
|
*/
|
|
6
6
|
var useFirstRender = function useFirstRender() {
|
|
7
7
|
var isFirst = useRef(true);
|
|
@@ -12,10 +12,10 @@ var useFirstRender = function useFirstRender() {
|
|
|
12
12
|
return isFirst.current;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* 依赖更改时生命周期
|
|
17
|
-
* @param effect 更新时做需要调用的函数
|
|
18
|
-
* @param deps 更新依赖
|
|
15
|
+
/**
|
|
16
|
+
* 依赖更改时生命周期
|
|
17
|
+
* @param effect 更新时做需要调用的函数
|
|
18
|
+
* @param deps 更新依赖
|
|
19
19
|
*/
|
|
20
20
|
var useUpdateEffect = function useUpdateEffect(effect, deps) {
|
|
21
21
|
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;
|
package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts
CHANGED
|
@@ -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
|
+
}[];
|
package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js
CHANGED
|
@@ -9,8 +9,8 @@ export var stringTrim = function stringTrim(str) {
|
|
|
9
9
|
return str.replace(/`|'|"/g, '');
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* 维度指标数据源处理
|
|
12
|
+
/**
|
|
13
|
+
* 维度指标数据源处理
|
|
14
14
|
*/
|
|
15
15
|
export var handleDimTargetFormat = function handleDimTargetFormat(dimTargetSource, result) {
|
|
16
16
|
var _dimJson$data, _indexJson$data;
|
|
@@ -92,8 +92,8 @@ export var handleDimTargetFormat = function handleDimTargetFormat(dimTargetSourc
|
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
/**
|
|
96
|
-
* 获取维度指标数据源
|
|
95
|
+
/**
|
|
96
|
+
* 获取维度指标数据源
|
|
97
97
|
*/
|
|
98
98
|
export var getDimTargetData = /*#__PURE__*/function () {
|
|
99
99
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params, dimTargetSource) {
|
|
@@ -138,8 +138,8 @@ export var getDimTargetData = /*#__PURE__*/function () {
|
|
|
138
138
|
};
|
|
139
139
|
}();
|
|
140
140
|
|
|
141
|
-
/**
|
|
142
|
-
* 数据渲染格式处理
|
|
141
|
+
/**
|
|
142
|
+
* 数据渲染格式处理
|
|
143
143
|
*/
|
|
144
144
|
export var handleValueFormat = function handleValueFormat(value, record, find, condition, onLink) {
|
|
145
145
|
var _val;
|
|
@@ -164,12 +164,12 @@ export var handleValueFormat = function handleValueFormat(value, record, find, c
|
|
|
164
164
|
return (_val = val) !== null && _val !== void 0 ? _val : "-";
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
/**
|
|
168
|
-
* 条件格式
|
|
167
|
+
/**
|
|
168
|
+
* 条件格式
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* 根据维度指标获取表格列
|
|
171
|
+
/**
|
|
172
|
+
* 根据维度指标获取表格列
|
|
173
173
|
*/
|
|
174
174
|
export var handleColumns = function handleColumns(option, expressions, onLink) {
|
|
175
175
|
var dimTarget = [].concat(option.dimension, option.index);
|