@ztocwst/rc-pro-materials 0.1.20 → 0.1.21
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/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 +4 -4
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.js +8 -8
- package/dist/SCM_Comps.js +8 -8
- 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-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/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-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 +45 -45
- 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-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-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 +31 -31
- package/es/index.scss +1 -1
- package/es/style.js +1 -2
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +12 -12
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/button.js +3 -2
- package/es/utils/props/common.d.ts +1 -1
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/form.d.ts +35 -35
- 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/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/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-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/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-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 +45 -45
- 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-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-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 +31 -31
- package/lib/index.scss +1 -1
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +12 -12
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/button.js +3 -2
- package/lib/utils/props/common.d.ts +1 -1
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/form.d.ts +35 -35
- 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/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/variables.scss +3 -3
- package/package.json +4 -3
|
@@ -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,45 +1,45 @@
|
|
|
1
|
-
.ranking-list .ant-table .ant-table-thead > tr > th {
|
|
2
|
-
border-bottom: none;
|
|
3
|
-
font-size: 13px;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
color: #999;
|
|
6
|
-
background-color: #fff;
|
|
7
|
-
padding: 8px 5px;
|
|
8
|
-
|
|
9
|
-
&::before {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ranking-list .ant-table .ant-table-tbody > tr > td {
|
|
15
|
-
border-bottom: none;
|
|
16
|
-
font-size: 13px;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
color: #333;
|
|
19
|
-
padding: 11px 7px;
|
|
20
|
-
background-color: #fff;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ranking-list {
|
|
24
|
-
&-number {
|
|
25
|
-
width: 20px;
|
|
26
|
-
height: 20px;
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
color: #333;
|
|
32
|
-
background-color: #f8f8f8;
|
|
33
|
-
|
|
34
|
-
&.highlight {
|
|
35
|
-
color: #fff;
|
|
36
|
-
background: #1890ff;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-icon {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
.ranking-list .ant-table .ant-table-thead > tr > th {
|
|
2
|
+
border-bottom: none;
|
|
3
|
+
font-size: 13px;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
color: #999;
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
padding: 8px 5px;
|
|
8
|
+
|
|
9
|
+
&::before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ranking-list .ant-table .ant-table-tbody > tr > td {
|
|
15
|
+
border-bottom: none;
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
color: #333;
|
|
19
|
+
padding: 11px 7px;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ranking-list {
|
|
24
|
+
&-number {
|
|
25
|
+
width: 20px;
|
|
26
|
+
height: 20px;
|
|
27
|
+
border-radius: 50%;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
color: #333;
|
|
32
|
+
background-color: #f8f8f8;
|
|
33
|
+
|
|
34
|
+
&.highlight {
|
|
35
|
+
color: #fff;
|
|
36
|
+
background: #1890ff;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-icon {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -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;
|
|
@@ -10,8 +10,8 @@ var _typography = _interopRequireDefault(require("antd/lib/typography"));
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
require("./index.less");
|
|
12
12
|
var _excluded = ["type", "showRanking", "number"];
|
|
13
|
-
/**
|
|
14
|
-
* 排行榜
|
|
13
|
+
/**
|
|
14
|
+
* 排行榜
|
|
15
15
|
*/
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZSimpleBar from './z-simple-bar';
|
|
2
|
-
export type { TypeZSimpleBarProps } from './z-simple-bar';
|
|
3
|
-
export default ZSimpleBar;
|
|
1
|
+
import ZSimpleBar from './z-simple-bar';
|
|
2
|
+
export type { TypeZSimpleBarProps } from './z-simple-bar';
|
|
3
|
+
export default ZSimpleBar;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.z-simple-bar {
|
|
2
|
-
.bar-item {
|
|
3
|
-
margin-bottom: 20px;
|
|
4
|
-
|
|
5
|
-
&:last-child {
|
|
6
|
-
margin-bottom: 0;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
.z-simple-bar {
|
|
2
|
+
.bar-item {
|
|
3
|
+
margin-bottom: 20px;
|
|
4
|
+
|
|
5
|
+
&:last-child {
|
|
6
|
+
margin-bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ProgressProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
|
|
5
|
-
/** 数据源 */
|
|
6
|
-
data: any[];
|
|
7
|
-
/** 行key */
|
|
8
|
-
rowKey?: string;
|
|
9
|
-
/**
|
|
10
|
-
* 双行显示
|
|
11
|
-
* @type boolean
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
wrap?: boolean;
|
|
15
|
-
/** 标题字段 */
|
|
16
|
-
titleField?: string | ((v: any, index: number) => React.ReactNode);
|
|
17
|
-
/** 值字段 */
|
|
18
|
-
valueField?: string | ((v: any, index: number) => React.ReactNode);
|
|
19
|
-
/** 百分比字段 */
|
|
20
|
-
percentField?: string | ((v: any, index: number) => React.ReactNode);
|
|
21
|
-
/** 百分比内容格式化,中转其本身的format */
|
|
22
|
-
format?: (percent: number, successPercent: number, item: any, index: number) => string;
|
|
23
|
-
/** 单号显示间距 */
|
|
24
|
-
gap?: number;
|
|
25
|
-
}
|
|
26
|
-
declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
|
|
27
|
-
export default ZSimpleBar;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProgressProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface TypeZSimpleBarProps extends Omit<ProgressProps, 'format'> {
|
|
5
|
+
/** 数据源 */
|
|
6
|
+
data: any[];
|
|
7
|
+
/** 行key */
|
|
8
|
+
rowKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 双行显示
|
|
11
|
+
* @type boolean
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
wrap?: boolean;
|
|
15
|
+
/** 标题字段 */
|
|
16
|
+
titleField?: string | ((v: any, index: number) => React.ReactNode);
|
|
17
|
+
/** 值字段 */
|
|
18
|
+
valueField?: string | ((v: any, index: number) => React.ReactNode);
|
|
19
|
+
/** 百分比字段 */
|
|
20
|
+
percentField?: string | ((v: any, index: number) => React.ReactNode);
|
|
21
|
+
/** 百分比内容格式化,中转其本身的format */
|
|
22
|
+
format?: (percent: number, successPercent: number, item: any, index: number) => string;
|
|
23
|
+
/** 单号显示间距 */
|
|
24
|
+
gap?: number;
|
|
25
|
+
}
|
|
26
|
+
declare const ZSimpleBar: (props: TypeZSimpleBarProps) => import("react").JSX.Element;
|
|
27
|
+
export default ZSimpleBar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZSingerFactory from './zSingerFactory';
|
|
2
|
-
export default ZSingerFactory;
|
|
1
|
+
import ZSingerFactory from './zSingerFactory';
|
|
2
|
+
export default ZSingerFactory;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const ZSingerFactory: (props: any) => React.JSX.Element;
|
|
3
|
-
export default ZSingerFactory;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const ZSingerFactory: (props: any) => React.JSX.Element;
|
|
3
|
+
export default ZSingerFactory;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZStatistic from './z-statistic';
|
|
2
|
-
export type { TypeZStatisticProps } from './z-statistic';
|
|
3
|
-
export default ZStatistic;
|
|
1
|
+
import ZStatistic from './z-statistic';
|
|
2
|
+
export type { TypeZStatisticProps } from './z-statistic';
|
|
3
|
+
export default ZStatistic;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.statistic-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
|
|
5
|
-
.statistic-title-suffix {
|
|
6
|
-
margin-left: 4px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.statistic-left {
|
|
10
|
-
flex: 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.statistic-right {
|
|
14
|
-
text-align: right;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.statistic-right-title-extra {
|
|
18
|
-
margin-bottom: 4px;
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
min-height: 22px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
.statistic-wrap {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
|
|
5
|
+
.statistic-title-suffix {
|
|
6
|
+
margin-left: 4px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.statistic-left {
|
|
10
|
+
flex: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.statistic-right {
|
|
14
|
+
text-align: right;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.statistic-right-title-extra {
|
|
18
|
+
margin-bottom: 4px;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
min-height: 22px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StatisticProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface TypeZStatisticProps extends StatisticProps {
|
|
5
|
-
/** 标题后缀 */
|
|
6
|
-
titleSuffix?: string | React.ReactNode;
|
|
7
|
-
/** 标题附加内容 */
|
|
8
|
-
titleExtra?: string | React.ReactNode;
|
|
9
|
-
/** 值附加内容 */
|
|
10
|
-
valueExtra?: string | React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare const ZStatistic: (props: TypeZStatisticProps) => import("react").JSX.Element;
|
|
13
|
-
export default ZStatistic;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StatisticProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface TypeZStatisticProps extends StatisticProps {
|
|
5
|
+
/** 标题后缀 */
|
|
6
|
+
titleSuffix?: string | React.ReactNode;
|
|
7
|
+
/** 标题附加内容 */
|
|
8
|
+
titleExtra?: string | React.ReactNode;
|
|
9
|
+
/** 值附加内容 */
|
|
10
|
+
valueExtra?: string | React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const ZStatistic: (props: TypeZStatisticProps) => import("react").JSX.Element;
|
|
13
|
+
export default ZStatistic;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZTable from './table';
|
|
2
|
-
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZTable;
|
|
1
|
+
import ZTable from './table';
|
|
2
|
+
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZTable;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProTableProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default class ZTableContainer extends React.Component<ProTableProps, any> {
|
|
4
|
-
tableRef: any;
|
|
5
|
-
constructor(props: any);
|
|
6
|
-
getTableRef: () => any;
|
|
7
|
-
render(): React.JSX.Element;
|
|
8
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProTableProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default class ZTableContainer extends React.Component<ProTableProps, any> {
|
|
4
|
+
tableRef: any;
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
getTableRef: () => any;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
|
+
}
|
|
@@ -1,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
|
-
getListFormCurrenRef: () => any;
|
|
21
|
-
getBillFormCurrenRef: () => 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
|
+
getListFormCurrenRef: () => any;
|
|
21
|
+
getBillFormCurrenRef: () => any;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
|
+
}
|
|
@@ -10,8 +10,8 @@ var _rcPro = require("@ztocwst/rc-pro");
|
|
|
10
10
|
var _utils = require("../../utils");
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
/**
|
|
14
|
-
* 模板列表
|
|
13
|
+
/**
|
|
14
|
+
* 模板列表
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
var ZTpl = function ZTpl(props) {
|
|
@@ -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/lib/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
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';
|
|
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';
|
package/lib/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
// @import './components/rc-button/index.scss';
|
|
1
|
+
// @import './components/rc-button/index.scss';
|
package/lib/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/lib/utils/hoc.js
CHANGED
|
@@ -5,9 +5,9 @@ exports.__esModule = true;
|
|
|
5
5
|
exports.withWrap = withWrap;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
/**
|
|
9
|
-
* 简单包装,不做任何处理
|
|
10
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
8
|
+
/**
|
|
9
|
+
* 简单包装,不做任何处理
|
|
10
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
11
11
|
*/
|
|
12
12
|
function withWrap(Comp) {
|
|
13
13
|
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { processButtonProps } from './props/button';
|
|
2
|
-
import { processFormProps } from './props/form';
|
|
3
|
-
import { processListTplProps } from './props/listTpl';
|
|
4
|
-
import { processTplProps } from './props/tpl';
|
|
5
|
-
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
-
import { processMicroModalProps } from './props/microModal';
|
|
7
|
-
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
-
import { processEditTableProps } from './props/editTable';
|
|
9
|
-
import { processPreviewProps } from './props/preview';
|
|
10
|
-
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
-
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
12
|
-
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns };
|
|
1
|
+
import { processButtonProps } from './props/button';
|
|
2
|
+
import { processFormProps } from './props/form';
|
|
3
|
+
import { processListTplProps } from './props/listTpl';
|
|
4
|
+
import { processTplProps } from './props/tpl';
|
|
5
|
+
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
+
import { processMicroModalProps } from './props/microModal';
|
|
7
|
+
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
+
import { processEditTableProps } from './props/editTable';
|
|
9
|
+
import { processPreviewProps } from './props/preview';
|
|
10
|
+
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
+
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
12
|
+
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
-
linkButton?: boolean;
|
|
4
|
-
}, extra?: {
|
|
5
|
-
tableRef?: any;
|
|
6
|
-
}) => {
|
|
7
|
-
items: any[];
|
|
8
|
-
type?: string;
|
|
9
|
-
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
10
|
-
size?: import("antd/lib/button").ButtonSize;
|
|
11
|
-
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
12
|
-
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
13
|
-
};
|
|
1
|
+
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
+
linkButton?: boolean;
|
|
4
|
+
}, extra?: {
|
|
5
|
+
tableRef?: any;
|
|
6
|
+
}) => {
|
|
7
|
+
items: any[];
|
|
8
|
+
type?: string;
|
|
9
|
+
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
10
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
11
|
+
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
12
|
+
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
13
|
+
};
|
|
@@ -45,14 +45,15 @@ var processButtonProps = function processButtonProps(props, extra) {
|
|
|
45
45
|
restItems = (0, _objectWithoutPropertiesLoose2["default"])(_ref2, _excluded3);
|
|
46
46
|
// 导入导出
|
|
47
47
|
if (advancedConfig === 'FILE_CONFIG') {
|
|
48
|
+
var _request$submit, _request$query;
|
|
48
49
|
var _fileConfig$request = fileConfig.request,
|
|
49
50
|
request = _fileConfig$request === void 0 ? {} : _fileConfig$request,
|
|
50
51
|
fileRest = (0, _objectWithoutPropertiesLoose2["default"])(fileConfig, _excluded4);
|
|
51
52
|
return (0, _extends2["default"])({}, restItems, {
|
|
52
53
|
fileConfig: (0, _extends2["default"])({}, fileRest, {
|
|
53
|
-
request: (0, _extends2["default"])({}, request !== null && request !== void 0 && request.submit ? {
|
|
54
|
+
request: (0, _extends2["default"])({}, request !== null && request !== void 0 && (_request$submit = request.submit) !== null && _request$submit !== void 0 && _request$submit.url ? {
|
|
54
55
|
submit: (0, _common.processRequestConfig)(request === null || request === void 0 ? void 0 : request.submit)
|
|
55
|
-
} : {}, request !== null && request !== void 0 && request.query ? {
|
|
56
|
+
} : {}, request !== null && request !== void 0 && (_request$query = request.query) !== null && _request$query !== void 0 && _request$query.url ? {
|
|
56
57
|
query: (0, _common.processRequestConfig)(request === null || request === void 0 ? void 0 : request.query)
|
|
57
58
|
} : {})
|
|
58
59
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const processRequestConfig: (props: any) => any;
|
|
1
|
+
export declare const processRequestConfig: (props: any) => any;
|