@ztocwst/rc-pro-materials 0.2.9 → 0.2.11
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 +2 -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 +17 -14
- 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 +17 -14
- 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,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>;
|
|
@@ -24,10 +24,10 @@ export var timeUnit = 60 * 1000;
|
|
|
24
24
|
export var BETWEEN = '<=,<';
|
|
25
25
|
/** 数据类型 */
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* 计算宽
|
|
29
|
-
* @param length
|
|
30
|
-
* @param width
|
|
27
|
+
/**
|
|
28
|
+
* 计算宽
|
|
29
|
+
* @param length
|
|
30
|
+
* @param width
|
|
31
31
|
*/
|
|
32
32
|
export var computeWidth = function computeWidth(length, width) {
|
|
33
33
|
if (width === void 0) {
|
|
@@ -36,9 +36,9 @@ export var computeWidth = function computeWidth(length, width) {
|
|
|
36
36
|
return length * width;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* 获取最大宽
|
|
41
|
-
* @param strArr
|
|
39
|
+
/**
|
|
40
|
+
* 获取最大宽
|
|
41
|
+
* @param strArr
|
|
42
42
|
*/
|
|
43
43
|
export var getMaxWidth = function getMaxWidth(strArr) {
|
|
44
44
|
if (!(strArr !== null && strArr !== void 0 && strArr.length)) return 0;
|
|
@@ -50,8 +50,8 @@ export var getMaxWidth = function getMaxWidth(strArr) {
|
|
|
50
50
|
return computeWidth(length, 14);
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
/**
|
|
54
|
-
* 处理 QueryParams 去除空字符串
|
|
53
|
+
/**
|
|
54
|
+
* 处理 QueryParams 去除空字符串
|
|
55
55
|
*/
|
|
56
56
|
export var handleQueryParams = function handleQueryParams(query) {
|
|
57
57
|
var queryParams = _extends({}, query);
|
|
@@ -63,8 +63,8 @@ export var handleQueryParams = function handleQueryParams(query) {
|
|
|
63
63
|
return queryParams;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* 处理数据千分位
|
|
66
|
+
/**
|
|
67
|
+
* 处理数据千分位
|
|
68
68
|
*/
|
|
69
69
|
export var handleThousand = function handleThousand(value) {
|
|
70
70
|
if (!Number.isNaN(value) && value) {
|
|
@@ -82,8 +82,8 @@ export var handleThousand = function handleThousand(value) {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
/**
|
|
86
|
-
* 保留几位小数点
|
|
85
|
+
/**
|
|
86
|
+
* 保留几位小数点
|
|
87
87
|
*/
|
|
88
88
|
export var handleDecimal = function handleDecimal(value, decimal) {
|
|
89
89
|
if (decimal === void 0) {
|
|
@@ -93,8 +93,8 @@ export var handleDecimal = function handleDecimal(value, decimal) {
|
|
|
93
93
|
return Number(value).toFixed(decimal);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
/**
|
|
97
|
-
* 百分比转化
|
|
96
|
+
/**
|
|
97
|
+
* 百分比转化
|
|
98
98
|
*/
|
|
99
99
|
export var handlePercent = function handlePercent(value, decimal, unit) {
|
|
100
100
|
if (decimal === void 0) {
|
|
@@ -107,8 +107,8 @@ export var handlePercent = function handlePercent(value, decimal, unit) {
|
|
|
107
107
|
return (Number(value) * unit).toFixed(decimal) + "%";
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
/**
|
|
111
|
-
* link外链处理
|
|
110
|
+
/**
|
|
111
|
+
* link外链处理
|
|
112
112
|
*/
|
|
113
113
|
export var handleLink = function handleLink(value, onLink) {
|
|
114
114
|
if (value === null || value === undefined) return;
|
|
@@ -118,10 +118,10 @@ export var handleLink = function handleLink(value, onLink) {
|
|
|
118
118
|
}, value);
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* 条件格式设置
|
|
123
|
-
* @param value 处理前的值
|
|
124
|
-
* @param handledValue 被处理后的值 可能会是link标签
|
|
121
|
+
/**
|
|
122
|
+
* 条件格式设置
|
|
123
|
+
* @param value 处理前的值
|
|
124
|
+
* @param handledValue 被处理后的值 可能会是link标签
|
|
125
125
|
*/
|
|
126
126
|
export var handleCondition = function handleCondition(value, handledValue, conditions) {
|
|
127
127
|
if (value === null || value === undefined) return;
|
|
@@ -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
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZWarehouse from './zWarehouse';
|
|
2
|
-
export default ZWarehouse;
|
|
1
|
+
import ZWarehouse from './zWarehouse';
|
|
2
|
+
export default ZWarehouse;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const ZWarehouse: (props: any) => React.JSX.Element;
|
|
3
|
-
export default ZWarehouse;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const ZWarehouse: (props: any) => React.JSX.Element;
|
|
3
|
+
export default ZWarehouse;
|
package/es/index.d.ts
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
-
export { default as ZButton } from './components/z-button';
|
|
3
|
-
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
-
export { default as ZForm } from './components/z-form';
|
|
5
|
-
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
-
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
-
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
-
export { default as ZTable } from './components/z-table';
|
|
9
|
-
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
-
export { default as ZPreview } from './components/z-preview';
|
|
11
|
-
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
-
export { default as ZList } from './components/z-list';
|
|
13
|
-
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
-
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
-
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
-
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
-
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
-
export { default as ZBox } from './components/z-box';
|
|
19
|
-
export { default as ZDiv } from './components/z-div';
|
|
20
|
-
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
-
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
-
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
-
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
-
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
-
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
-
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
-
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
-
export { default as ZAuth } from './components/z-auth';
|
|
29
|
-
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
-
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
-
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
-
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
-
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
-
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
-
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
-
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
-
export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
|
|
38
|
-
export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
|
|
1
|
+
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
+
export { default as ZButton } from './components/z-button';
|
|
3
|
+
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
+
export { default as ZForm } from './components/z-form';
|
|
5
|
+
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
+
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
+
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
+
export { default as ZTable } from './components/z-table';
|
|
9
|
+
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
+
export { default as ZPreview } from './components/z-preview';
|
|
11
|
+
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
+
export { default as ZList } from './components/z-list';
|
|
13
|
+
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
+
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
+
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
+
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
+
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
+
export { default as ZBox } from './components/z-box';
|
|
19
|
+
export { default as ZDiv } from './components/z-div';
|
|
20
|
+
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
+
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
+
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
+
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
+
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
+
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
+
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
+
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
+
export { default as ZAuth } from './components/z-auth';
|
|
29
|
+
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
+
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
+
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
+
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
+
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
+
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
+
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
+
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
+
export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
|
|
38
|
+
export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
|
|
39
|
+
export { default as ZSlick } from './components/z-slick';
|
|
40
|
+
export type { TypeZSlickProps } from './components/z-slick';
|
package/es/index.js
CHANGED
|
@@ -23,6 +23,7 @@ export { default as ZPointerBlock } from "./components/z-pointer-block";
|
|
|
23
23
|
// 聚合指标
|
|
24
24
|
export { default as ZAggBlock } from "./components/z-agg-block";
|
|
25
25
|
export { default as ZTemplatesDataCommon } from "./components/z-templates-data-common";
|
|
26
|
+
export { default as ZSlick } from "./components/z-slick";
|
|
26
27
|
|
|
27
28
|
// const bizCssPrefix = 'bizpack';
|
|
28
29
|
|
package/es/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
// @import './components/rc-button/index.scss';
|
|
1
|
+
// @import './components/rc-button/index.scss';
|
package/es/style.js
CHANGED
|
@@ -11,6 +11,7 @@ import 'antd/lib/tabs/style';
|
|
|
11
11
|
import 'antd/lib/checkbox/style';
|
|
12
12
|
import 'antd/lib/radio/style';
|
|
13
13
|
import 'antd/lib/spin/style';
|
|
14
|
+
import 'antd/lib/carousel/style';
|
|
14
15
|
import 'antd/es/statistic/style';
|
|
15
16
|
import 'antd/es/progress/style';
|
|
16
17
|
import 'antd/es/table/style';
|
|
@@ -22,4 +23,5 @@ import 'antd/es/tabs/style';
|
|
|
22
23
|
import 'antd/es/checkbox/style';
|
|
23
24
|
import 'antd/es/radio/style';
|
|
24
25
|
import 'antd/es/spin/style';
|
|
26
|
+
import 'antd/es/carousel/style';
|
|
25
27
|
import './index.scss';
|
package/es/utils/hoc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 简单包装,不做任何处理
|
|
4
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
-
*/
|
|
6
|
-
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 简单包装,不做任何处理
|
|
4
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
+
*/
|
|
6
|
+
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
package/es/utils/hoc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* 简单包装,不做任何处理
|
|
6
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
4
|
+
/**
|
|
5
|
+
* 简单包装,不做任何处理
|
|
6
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
7
7
|
*/
|
|
8
8
|
export function withWrap(Comp) {
|
|
9
9
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|