@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,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProOperationRecordsProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZOperationRecords: React.FC<ProOperationRecordsProps>;
|
|
4
|
-
export default ZOperationRecords;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProOperationRecordsProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZOperationRecords: React.FC<ProOperationRecordsProps>;
|
|
4
|
+
export default ZOperationRecords;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZPointerBlock from './z-pointer-block';
|
|
2
|
-
export type { TypeZPointerBlockProps } from './z-pointer-block';
|
|
3
|
-
export default ZPointerBlock;
|
|
1
|
+
import ZPointerBlock from './z-pointer-block';
|
|
2
|
+
export type { TypeZPointerBlockProps } from './z-pointer-block';
|
|
3
|
+
export default ZPointerBlock;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
-
|
|
4
|
-
.z-pointer-block {
|
|
5
|
-
padding: 16px;
|
|
6
|
-
background: #fff;
|
|
7
|
-
border-radius: 8px;
|
|
8
|
-
border: 1px solid #d9d9d9;
|
|
9
|
-
min-width: 100px;
|
|
10
|
-
|
|
11
|
-
.z-pointer-icon {
|
|
12
|
-
// color: @primary-color;
|
|
13
|
-
color: var(--ant-primary-color, @primary-color);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
4
|
+
.z-pointer-block {
|
|
5
|
+
padding: 16px;
|
|
6
|
+
background: #fff;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
border: 1px solid #d9d9d9;
|
|
9
|
+
min-width: 100px;
|
|
10
|
+
|
|
11
|
+
.z-pointer-icon {
|
|
12
|
+
// color: @primary-color;
|
|
13
|
+
color: var(--ant-primary-color, @primary-color);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { TypeZStatisticProps } from '../z-statistic';
|
|
4
|
-
export type TypeZPointerBlockProps = {
|
|
5
|
-
/** 标题 */
|
|
6
|
-
title: string | React.ReactNode;
|
|
7
|
-
/** 值 */
|
|
8
|
-
value: string;
|
|
9
|
-
/** 图标 */
|
|
10
|
-
icon?: React.ReactNode;
|
|
11
|
-
align?: 'top' | 'middle' | 'bottom';
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
onClick?: (item?: any) => void;
|
|
14
|
-
} & TypeZStatisticProps;
|
|
15
|
-
declare const ZPointerBlock: (props: TypeZPointerBlockProps) => import("react").JSX.Element;
|
|
16
|
-
export default ZPointerBlock;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { TypeZStatisticProps } from '../z-statistic';
|
|
4
|
+
export type TypeZPointerBlockProps = {
|
|
5
|
+
/** 标题 */
|
|
6
|
+
title: string | React.ReactNode;
|
|
7
|
+
/** 值 */
|
|
8
|
+
value: string;
|
|
9
|
+
/** 图标 */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
align?: 'top' | 'middle' | 'bottom';
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
onClick?: (item?: any) => void;
|
|
14
|
+
} & TypeZStatisticProps;
|
|
15
|
+
declare const ZPointerBlock: (props: TypeZPointerBlockProps) => import("react").JSX.Element;
|
|
16
|
+
export default ZPointerBlock;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZPreview from './preview';
|
|
2
|
-
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZPreview;
|
|
1
|
+
import ZPreview from './preview';
|
|
2
|
+
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZPreview;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZPreview: React.FC<ProPreviewProps>;
|
|
4
|
-
export default ZPreview;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZPreview: React.FC<ProPreviewProps>;
|
|
4
|
+
export default ZPreview;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZProProvider from './z-pro-provider';
|
|
2
|
-
export type { TypeZProProviderProps } from './z-pro-provider';
|
|
3
|
-
export default ZProProvider;
|
|
1
|
+
import ZProProvider from './z-pro-provider';
|
|
2
|
+
export type { TypeZProProviderProps } from './z-pro-provider';
|
|
3
|
+
export default ZProProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface TypeZProProviderProps {
|
|
3
|
-
locale?: 'zh-CN' | 'en-US';
|
|
4
|
-
}
|
|
5
|
-
declare const ZProProvider: React.FC<TypeZProProviderProps>;
|
|
6
|
-
export default ZProProvider;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TypeZProProviderProps {
|
|
3
|
+
locale?: 'zh-CN' | 'en-US';
|
|
4
|
+
}
|
|
5
|
+
declare const ZProProvider: React.FC<TypeZProProviderProps>;
|
|
6
|
+
export default ZProProvider;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZRankingList from './z-ranking-list';
|
|
2
|
-
export default ZRankingList;
|
|
1
|
+
import ZRankingList from './z-ranking-list';
|
|
2
|
+
export default ZRankingList;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
@root-entry-name: 'default';
|
|
2
|
-
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
-
|
|
4
|
-
.ranking-list .ant-table .ant-table-thead > tr > th {
|
|
5
|
-
border-bottom: none;
|
|
6
|
-
font-size: 13px;
|
|
7
|
-
font-weight: 400;
|
|
8
|
-
color: #999;
|
|
9
|
-
background-color: #fff;
|
|
10
|
-
padding: 8px 5px;
|
|
11
|
-
|
|
12
|
-
&::before {
|
|
13
|
-
display: none;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ranking-list .ant-table .ant-table-tbody > tr > td {
|
|
18
|
-
border-bottom: none;
|
|
19
|
-
font-size: 13px;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
color: #333;
|
|
22
|
-
padding: 11px 7px;
|
|
23
|
-
background-color: #fff;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ranking-list {
|
|
27
|
-
&-number {
|
|
28
|
-
width: 20px;
|
|
29
|
-
height: 20px;
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
color: #333;
|
|
35
|
-
background-color: #f8f8f8;
|
|
36
|
-
|
|
37
|
-
&.highlight {
|
|
38
|
-
color: #fff;
|
|
39
|
-
// background: #1890ff;
|
|
40
|
-
background: var(--ant-primary-color, @primary-color);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-icon {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
4
|
+
.ranking-list .ant-table .ant-table-thead > tr > th {
|
|
5
|
+
border-bottom: none;
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
color: #999;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
padding: 8px 5px;
|
|
11
|
+
|
|
12
|
+
&::before {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ranking-list .ant-table .ant-table-tbody > tr > td {
|
|
18
|
+
border-bottom: none;
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
color: #333;
|
|
22
|
+
padding: 11px 7px;
|
|
23
|
+
background-color: #fff;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ranking-list {
|
|
27
|
+
&-number {
|
|
28
|
+
width: 20px;
|
|
29
|
+
height: 20px;
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
color: #333;
|
|
35
|
+
background-color: #f8f8f8;
|
|
36
|
+
|
|
37
|
+
&.highlight {
|
|
38
|
+
color: #fff;
|
|
39
|
+
// background: #1890ff;
|
|
40
|
+
background: var(--ant-primary-color, @primary-color);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-icon {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 排行榜
|
|
3
|
-
*/
|
|
4
|
-
import { TableProps } from 'antd';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import './index.less';
|
|
7
|
-
declare const ZRankingList: React.FC<{
|
|
8
|
-
columns: TableProps<any>['columns'];
|
|
9
|
-
dataSource: any[];
|
|
10
|
-
showHeader?: boolean;
|
|
11
|
-
name: React.ReactNode;
|
|
12
|
-
icon?: string[];
|
|
13
|
-
}>;
|
|
14
|
-
export default ZRankingList;
|
|
1
|
+
/**
|
|
2
|
+
* 排行榜
|
|
3
|
+
*/
|
|
4
|
+
import { TableProps } from 'antd';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import './index.less';
|
|
7
|
+
declare const ZRankingList: React.FC<{
|
|
8
|
+
columns: TableProps<any>['columns'];
|
|
9
|
+
dataSource: any[];
|
|
10
|
+
showHeader?: boolean;
|
|
11
|
+
name: React.ReactNode;
|
|
12
|
+
icon?: string[];
|
|
13
|
+
}>;
|
|
14
|
+
export default ZRankingList;
|
|
@@ -2,8 +2,8 @@ import _Table from "antd/es/table";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
4
|
import _Typography from "antd/es/typography";
|
|
5
|
-
/**
|
|
6
|
-
* 排行榜
|
|
5
|
+
/**
|
|
6
|
+
* 排行榜
|
|
7
7
|
*/
|
|
8
8
|
var _excluded = ["type", "showRanking", "number"];
|
|
9
9
|
import * as React from 'react';
|
|
@@ -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;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TypeZSlickProps {
|
|
3
|
+
/** 自动切换 */
|
|
4
|
+
autoplay: boolean;
|
|
5
|
+
/** 面板指示点位置 */
|
|
6
|
+
dotPosition: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
+
/** 是否显示面板指示点 */
|
|
8
|
+
dots: boolean | {
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
/** 动画效果 */
|
|
12
|
+
easing: string;
|
|
13
|
+
/** 动画效果函数 */
|
|
14
|
+
effect: 'scrollx' | 'fade';
|
|
15
|
+
/** 是否无线循环 */
|
|
16
|
+
infinite: boolean;
|
|
17
|
+
/** 显示几张幻灯片 */
|
|
18
|
+
slidesToShow: number;
|
|
19
|
+
/** 一次滚动几张 */
|
|
20
|
+
slidesToScroll: number;
|
|
21
|
+
/** 是否垂直切换 */
|
|
22
|
+
vertical: boolean;
|
|
23
|
+
/** 自动播放速度 */
|
|
24
|
+
speed: number;
|
|
25
|
+
/** 自动滚动的延迟,默认3000ms */
|
|
26
|
+
autoplaySpeed: number;
|
|
27
|
+
/** 鼠标悬停暂停切换 */
|
|
28
|
+
pauseOnHover: boolean;
|
|
29
|
+
/** 电梯模式 */
|
|
30
|
+
centerMode: boolean;
|
|
31
|
+
/** centerPadding */
|
|
32
|
+
centerPadding: string;
|
|
33
|
+
rows?: number;
|
|
34
|
+
slidesPerRow?: number;
|
|
35
|
+
/** 切换面板的回调 */
|
|
36
|
+
afterChange: (current: any) => void;
|
|
37
|
+
/** 切换面板的回调 */
|
|
38
|
+
beforeChange: (from: any, to: any) => void;
|
|
39
|
+
children: React.ReactChild;
|
|
40
|
+
restProps?: any;
|
|
41
|
+
}
|
|
42
|
+
export default class ZSlickContainer extends React.Component<TypeZSlickProps, any> {
|
|
43
|
+
slickRef: any;
|
|
44
|
+
constructor(props: any);
|
|
45
|
+
getRef: () => any;
|
|
46
|
+
render(): JSX.Element;
|
|
47
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
|
+
import _Carousel from "antd/es/carousel";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
|
+
var _excluded = ["children", "restProps"];
|
|
6
|
+
import React from 'react';
|
|
7
|
+
var ZSlick = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
8
|
+
var children = props.children,
|
|
9
|
+
restProps = props.restProps,
|
|
10
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
11
|
+
return /*#__PURE__*/React.createElement(_Carousel, _extends({
|
|
12
|
+
ref: ref
|
|
13
|
+
}, rest, typeof restProps === 'function' ? restProps() : restProps), children);
|
|
14
|
+
});
|
|
15
|
+
var ZSlickContainer = /*#__PURE__*/function (_React$Component) {
|
|
16
|
+
_inheritsLoose(ZSlickContainer, _React$Component);
|
|
17
|
+
function ZSlickContainer(props) {
|
|
18
|
+
var _this;
|
|
19
|
+
_this = _React$Component.call(this, props) || this;
|
|
20
|
+
_this.slickRef = void 0;
|
|
21
|
+
_this.getRef = function () {
|
|
22
|
+
return _this.slickRef.current;
|
|
23
|
+
};
|
|
24
|
+
_this.slickRef = /*#__PURE__*/React.createRef();
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
var _proto = ZSlickContainer.prototype;
|
|
28
|
+
_proto.render = function render() {
|
|
29
|
+
return /*#__PURE__*/React.createElement(ZSlick, _extends({}, this.props, {
|
|
30
|
+
ref: this.slickRef
|
|
31
|
+
}));
|
|
32
|
+
};
|
|
33
|
+
return ZSlickContainer;
|
|
34
|
+
}(React.Component);
|
|
35
|
+
export { ZSlickContainer as default };
|
|
@@ -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;
|