@ztocwst/rc-pro-materials 0.1.22 → 0.1.24
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 +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/dist/SCM_Comps.css +1 -1
- 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-agg-block/index.d.ts +3 -0
- package/es/components/z-agg-block/index.js +2 -0
- package/es/components/z-agg-block/index.less +119 -0
- package/es/components/z-agg-block/z-agg-block.d.ts +28 -0
- package/es/components/z-agg-block/z-agg-block.js +53 -0
- 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/box.js +6 -3
- 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/div.js +3 -2
- 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-pointer-block/index.d.ts +3 -0
- package/es/components/z-pointer-block/index.js +2 -0
- package/es/components/z-pointer-block/index.less +15 -0
- package/es/components/z-pointer-block/z-pointer-block.d.ts +14 -0
- package/es/components/z-pointer-block/z-pointer-block.js +28 -0
- 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 +4 -4
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/es/components/z-warehouse/zWarehouse.js +0 -1
- package/es/index.d.ts +35 -31
- package/es/index.js +4 -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 +12 -12
- package/es/utils/props/button.d.ts +13 -13
- 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-agg-block/index.d.ts +3 -0
- package/lib/components/z-agg-block/index.js +8 -0
- package/lib/components/z-agg-block/index.less +119 -0
- package/lib/components/z-agg-block/z-agg-block.d.ts +28 -0
- package/lib/components/z-agg-block/z-agg-block.js +59 -0
- 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/box.js +6 -3
- 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/div.js +4 -2
- 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-pointer-block/index.d.ts +3 -0
- package/lib/components/z-pointer-block/index.js +8 -0
- package/lib/components/z-pointer-block/index.less +15 -0
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +14 -0
- package/lib/components/z-pointer-block/z-pointer-block.js +34 -0
- 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 +4 -4
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +3 -3
- package/lib/components/z-warehouse/zWarehouse.js +0 -1
- package/lib/index.d.ts +35 -31
- package/lib/index.js +6 -2
- package/lib/index.scss +1 -1
- package/lib/style.js +2 -0
- 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/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 +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZEllipsis: React.FC<ProEllipsisProps>;
|
|
4
|
-
export default ZEllipsis;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZEllipsis: React.FC<ProEllipsisProps>;
|
|
4
|
+
export default ZEllipsis;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZEllipsis from './ellipsis';
|
|
2
|
-
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZEllipsis;
|
|
1
|
+
import ZEllipsis from './ellipsis';
|
|
2
|
+
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZEllipsis;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
4
|
+
.pointer-block-wrap {
|
|
5
|
+
box-shadow: 0px 4px 16px 2px rgba(0, 0, 0, 0.1);
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&.animate :hover {
|
|
11
|
+
transform: scale(1.05);
|
|
12
|
+
transition: all 0.3s ease-in;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pointer-block-title {
|
|
17
|
+
display: flex;
|
|
18
|
+
// color: #487ffb;
|
|
19
|
+
color: @primary-color;
|
|
20
|
+
|
|
21
|
+
.ant-typography {
|
|
22
|
+
color: inherit;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pointer-block-title-l {
|
|
27
|
+
flex: 1;
|
|
28
|
+
|
|
29
|
+
.title {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.sub-title {
|
|
34
|
+
font-size: 24px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
img {
|
|
38
|
+
width: 80px;
|
|
39
|
+
height: 80px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pointer-block-content {
|
|
44
|
+
margin-top: 10px;
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-gap: 10px;
|
|
47
|
+
grid-template-columns: repeat(1, 1fr);
|
|
48
|
+
|
|
49
|
+
// 流程指标块
|
|
50
|
+
&.process .z-pointer-block,
|
|
51
|
+
&.process > * {
|
|
52
|
+
position: relative;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: -6px;
|
|
57
|
+
// left: -20px;
|
|
58
|
+
left: 0;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
width: 104%;
|
|
61
|
+
height: 1px;
|
|
62
|
+
background: #e5e5e5;
|
|
63
|
+
content: '';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:first-child::before {
|
|
67
|
+
left: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&::after {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: -10px;
|
|
73
|
+
left: -10px;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
width: 10px;
|
|
76
|
+
height: 10px;
|
|
77
|
+
background: #fff;
|
|
78
|
+
border: 2px solid @primary-color;
|
|
79
|
+
// border: 2px solid var(--ant-primary-color);
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
content: '';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 纵向
|
|
86
|
+
&.vertical .z-pointer-block,
|
|
87
|
+
&.vertical > * {
|
|
88
|
+
&::before {
|
|
89
|
+
position: absolute;
|
|
90
|
+
// top: -20px;
|
|
91
|
+
top: 0;
|
|
92
|
+
left: -6px;
|
|
93
|
+
display: inline-block;
|
|
94
|
+
width: 1px;
|
|
95
|
+
height: 110%;
|
|
96
|
+
background: #e5e5e5;
|
|
97
|
+
content: '';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:first-child::before {
|
|
101
|
+
top: 0;
|
|
102
|
+
left: -6px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&::after {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: -10px;
|
|
108
|
+
left: -10px;
|
|
109
|
+
display: inline-block;
|
|
110
|
+
width: 10px;
|
|
111
|
+
height: 10px;
|
|
112
|
+
background: #fff;
|
|
113
|
+
border: 2px solid @primary-color;
|
|
114
|
+
// border: 2px solid var(--ant-primary-color);
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
content: '';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { TypeZPointerBlockProps } from '../z-pointer-block';
|
|
4
|
+
export interface TypeAggBlockProps {
|
|
5
|
+
/** 背景色 */
|
|
6
|
+
color?: {
|
|
7
|
+
start: string;
|
|
8
|
+
end: string;
|
|
9
|
+
};
|
|
10
|
+
/** 开启动画 */
|
|
11
|
+
animate?: boolean;
|
|
12
|
+
/** 标题 */
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
/** 副标题 */
|
|
15
|
+
subTitle?: React.ReactNode;
|
|
16
|
+
/** 额外附属配置 */
|
|
17
|
+
extra?: React.ReactNode;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
/** 流程指标 */
|
|
20
|
+
process?: boolean;
|
|
21
|
+
/** 方向:横向 | 纵向 */
|
|
22
|
+
direction?: 'horizontal' | 'vertical';
|
|
23
|
+
/** 一行几列 */
|
|
24
|
+
column?: number;
|
|
25
|
+
items?: TypeZPointerBlockProps[] | React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare const ZAggBlock: React.FC<TypeAggBlockProps>;
|
|
28
|
+
export default ZAggBlock;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["color", "animate", "title", "subTitle", "extra", "process", "direction", "column"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import "./index.less";
|
|
7
|
+
import ZPointerBlock from "../z-pointer-block";
|
|
8
|
+
var ZAggBlock = function ZAggBlock(_ref) {
|
|
9
|
+
var _rest$items;
|
|
10
|
+
var color = _ref.color,
|
|
11
|
+
animate = _ref.animate,
|
|
12
|
+
title = _ref.title,
|
|
13
|
+
subTitle = _ref.subTitle,
|
|
14
|
+
extra = _ref.extra,
|
|
15
|
+
process = _ref.process,
|
|
16
|
+
direction = _ref.direction,
|
|
17
|
+
column = _ref.column,
|
|
18
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: classnames('pointer-block-wrap', {
|
|
21
|
+
animate: !!animate
|
|
22
|
+
}),
|
|
23
|
+
style: _extends({
|
|
24
|
+
background: "linear-gradient(180deg, " + ((color === null || color === void 0 ? void 0 : color.start) || '#eaf0ff') + " 0%, " + ((color === null || color === void 0 ? void 0 : color.end) || '#fafeff') + " 100%)"
|
|
25
|
+
}, rest.style || {})
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "pointer-block-title"
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: "pointer-block-title-l"
|
|
30
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: "title"
|
|
32
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: "sub-title"
|
|
34
|
+
}, subTitle)), /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "pointer-block-title-r"
|
|
36
|
+
}, extra)), /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: classnames('pointer-block-content', {
|
|
38
|
+
process: !!process,
|
|
39
|
+
vertical: direction === 'vertical'
|
|
40
|
+
}),
|
|
41
|
+
style: {
|
|
42
|
+
gridTemplateColumns: "repeat(" + (column || 1) + ", 1fr)"
|
|
43
|
+
}
|
|
44
|
+
}, /*#__PURE__*/React.isValidElement(rest.items) ? rest.items : (_rest$items = rest.items) === null || _rest$items === void 0 ? void 0 : _rest$items.map(function (e, index) {
|
|
45
|
+
if ( /*#__PURE__*/React.isValidElement(e)) {
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/React.createElement(ZPointerBlock, _extends({
|
|
49
|
+
key: index
|
|
50
|
+
}, e));
|
|
51
|
+
})));
|
|
52
|
+
};
|
|
53
|
+
export default ZAggBlock;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TypeAuthProps {
|
|
3
|
-
/** 权限编码集合 */
|
|
4
|
-
authCodes?: string[];
|
|
5
|
-
/** 编码 */
|
|
6
|
-
code: string;
|
|
7
|
-
}
|
|
8
|
-
declare const Auth: React.FC<TypeAuthProps>;
|
|
9
|
-
export default Auth;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TypeAuthProps {
|
|
3
|
+
/** 权限编码集合 */
|
|
4
|
+
authCodes?: string[];
|
|
5
|
+
/** 编码 */
|
|
6
|
+
code: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Auth: React.FC<TypeAuthProps>;
|
|
9
|
+
export default Auth;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZAuth from './auth';
|
|
2
|
-
export type { TypeAuthProps } from './auth';
|
|
3
|
-
export default ZAuth;
|
|
1
|
+
import ZAuth from './auth';
|
|
2
|
+
export type { TypeAuthProps } from './auth';
|
|
3
|
+
export default ZAuth;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TypeZBoxProps {
|
|
4
|
-
/** 对齐方向 */
|
|
5
|
-
direction: 'column' | 'row';
|
|
6
|
-
/** 主轴对齐 */
|
|
7
|
-
justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
8
|
-
/** 交叉轴对齐 */
|
|
9
|
-
align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
10
|
-
/** 宽度 */
|
|
11
|
-
width: '' | '100%';
|
|
12
|
-
/** 间距 */
|
|
13
|
-
spacing: number;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
className?: string;
|
|
16
|
-
/** 是否换行 */
|
|
17
|
-
wrap: 'wrap' | 'nowrap';
|
|
18
|
-
}
|
|
19
|
-
declare const ZBox: React.FC<TypeZBoxProps>;
|
|
20
|
-
export default ZBox;
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TypeZBoxProps {
|
|
4
|
+
/** 对齐方向 */
|
|
5
|
+
direction: 'column' | 'row';
|
|
6
|
+
/** 主轴对齐 */
|
|
7
|
+
justify: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
8
|
+
/** 交叉轴对齐 */
|
|
9
|
+
align: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
10
|
+
/** 宽度 */
|
|
11
|
+
width: '' | '100%';
|
|
12
|
+
/** 间距 */
|
|
13
|
+
spacing: number;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** 是否换行 */
|
|
17
|
+
wrap: 'wrap' | 'nowrap';
|
|
18
|
+
}
|
|
19
|
+
declare const ZBox: React.FC<TypeZBoxProps>;
|
|
20
|
+
export default ZBox;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["direction", "justify", "align", "width", "wrap", "spacing", "style", "className", "children"];
|
|
2
4
|
import "./index.less";
|
|
3
5
|
import classnames from 'classnames';
|
|
4
6
|
var ZBox = function ZBox(props) {
|
|
@@ -11,7 +13,8 @@ var ZBox = function ZBox(props) {
|
|
|
11
13
|
spacing = props.spacing,
|
|
12
14
|
style = props.style,
|
|
13
15
|
className = props.className,
|
|
14
|
-
children = props.children
|
|
16
|
+
children = props.children,
|
|
17
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
15
18
|
var styleProps = {
|
|
16
19
|
flexFlow: direction,
|
|
17
20
|
justifyContent: justify,
|
|
@@ -20,10 +23,10 @@ var ZBox = function ZBox(props) {
|
|
|
20
23
|
gap: spacing,
|
|
21
24
|
flexWrap: wrap
|
|
22
25
|
};
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
24
27
|
className: classnames('rc-z-box', (_classnames = {}, _classnames[className] = !!className, _classnames)),
|
|
25
28
|
style: _extends({}, styleProps, style)
|
|
26
|
-
}, children);
|
|
29
|
+
}), children);
|
|
27
30
|
};
|
|
28
31
|
ZBox.displayName = 'ZBox';
|
|
29
32
|
export default ZBox;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZBox from './box';
|
|
2
|
-
export type { TypeZBoxProps } from './box';
|
|
3
|
-
export default ZBox;
|
|
1
|
+
import ZBox from './box';
|
|
2
|
+
export type { TypeZBoxProps } from './box';
|
|
3
|
+
export default ZBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.rc-z-box {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
display: flex;
|
|
4
|
-
}
|
|
1
|
+
.rc-z-box {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZButton from './z-button';
|
|
2
|
-
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
-
export default ZButton;
|
|
1
|
+
import ZButton from './z-button';
|
|
2
|
+
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
+
export default ZButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
-
declare const ZButton: React.FC<ProButtonProps>;
|
|
4
|
-
export default ZButton;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
3
|
+
declare const ZButton: React.FC<ProButtonProps>;
|
|
4
|
+
export default ZButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
-
declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
|
|
4
|
-
export default ZConfigProvider;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
+
declare const ZConfigProvider: React.FC<RcConfigConsumerProps>;
|
|
4
|
+
export default ZConfigProvider;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZConfigProvider from './configProvider';
|
|
2
|
-
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZConfigProvider;
|
|
1
|
+
import ZConfigProvider from './configProvider';
|
|
2
|
+
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZConfigProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
declare const ZDiv: import("react").ForwardRefExoticComponent<{
|
|
3
|
-
className?: string;
|
|
4
|
-
style: CSSProperties;
|
|
5
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export default ZDiv;
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
declare const ZDiv: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
className?: string;
|
|
4
|
+
style: CSSProperties;
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export default ZDiv;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import { forwardRef } from 'react';
|
|
2
3
|
var ZDiv = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
3
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
4
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
4
5
|
className: props.className,
|
|
5
6
|
style: props.style,
|
|
6
7
|
ref: ref
|
|
7
|
-
}, props.children);
|
|
8
|
+
}), props.children);
|
|
8
9
|
});
|
|
9
10
|
ZDiv.displayName = 'ZDiv';
|
|
10
11
|
export default ZDiv;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZDiv from './div';
|
|
2
|
-
export default ZDiv;
|
|
1
|
+
import ZDiv from './div';
|
|
2
|
+
export default ZDiv;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* rcEditTable
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
export default class ZRcEditTable extends React.Component {
|
|
6
|
-
proEditableFormRef: any;
|
|
7
|
-
editableFormRef: any;
|
|
8
|
-
constructor(props: any);
|
|
9
|
-
getProEditableFormRefRef: () => any;
|
|
10
|
-
render(): React.JSX.Element;
|
|
11
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* rcEditTable
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
export default class ZRcEditTable extends React.Component {
|
|
6
|
+
proEditableFormRef: any;
|
|
7
|
+
editableFormRef: any;
|
|
8
|
+
constructor(props: any);
|
|
9
|
+
getProEditableFormRefRef: () => any;
|
|
10
|
+
render(): React.JSX.Element;
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZRcEditTable from './editTable';
|
|
2
|
-
export default ZRcEditTable;
|
|
1
|
+
import ZRcEditTable from './editTable';
|
|
2
|
+
export default ZRcEditTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZForm from './z-form';
|
|
2
|
-
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZForm;
|
|
1
|
+
import ZForm from './z-form';
|
|
2
|
+
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZForm;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
-
export default class ZFormContainer extends React.Component<ProFormRenderProps, any> {
|
|
4
|
-
formRef: any;
|
|
5
|
-
currentRef: any;
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
getFormRef: () => any;
|
|
8
|
-
getCurrentRef: () => any;
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
3
|
+
export default class ZFormContainer extends React.Component<ProFormRenderProps, any> {
|
|
4
|
+
formRef: any;
|
|
5
|
+
currentRef: any;
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
getFormRef: () => any;
|
|
8
|
+
getCurrentRef: () => any;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZList from './list';
|
|
2
|
-
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZList;
|
|
1
|
+
import ZList from './list';
|
|
2
|
+
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZList;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 模板列表
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import type { RcListItem } from '@ztocwst/rc-pro';
|
|
6
|
-
export default class ZTplListContainer extends React.Component<RcListItem, any> {
|
|
7
|
-
listRef: any;
|
|
8
|
-
tableRef: any;
|
|
9
|
-
listFormRef: any;
|
|
10
|
-
listFormCurrentRef: any;
|
|
11
|
-
constructor(props: any);
|
|
12
|
-
getListRef: () => any;
|
|
13
|
-
getTableRef: () => any;
|
|
14
|
-
getListFormRef: () => any;
|
|
15
|
-
getListFormCurrentRef: () => any;
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 模板列表
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import type { RcListItem } from '@ztocwst/rc-pro';
|
|
6
|
+
export default class ZTplListContainer extends React.Component<RcListItem, any> {
|
|
7
|
+
listRef: any;
|
|
8
|
+
tableRef: any;
|
|
9
|
+
listFormRef: any;
|
|
10
|
+
listFormCurrentRef: any;
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
getListRef: () => any;
|
|
13
|
+
getTableRef: () => any;
|
|
14
|
+
getListFormRef: () => any;
|
|
15
|
+
getListFormCurrentRef: () => any;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +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
|
+
.icon {
|
|
12
|
+
color: @primary-color;
|
|
13
|
+
// color: var(--ant-primary-color);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TypeZPointerBlockProps {
|
|
4
|
+
/** 标题 */
|
|
5
|
+
title: string | React.ReactNode;
|
|
6
|
+
/** 值 */
|
|
7
|
+
value: string;
|
|
8
|
+
/** 图标 */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
align?: 'top' | 'middle' | 'bottom';
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const ZPointerBlock: ({ style, title, value, icon, align }: TypeZPointerBlockProps) => import("react").JSX.Element;
|
|
14
|
+
export default ZPointerBlock;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import _Row from "antd/es/row";
|
|
2
|
+
import _Col from "antd/es/col";
|
|
3
|
+
import _Statistic from "antd/es/statistic";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
var ZPointerBlock = function ZPointerBlock(_ref) {
|
|
7
|
+
var style = _ref.style,
|
|
8
|
+
title = _ref.title,
|
|
9
|
+
value = _ref.value,
|
|
10
|
+
icon = _ref.icon,
|
|
11
|
+
align = _ref.align;
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "z-pointer-block",
|
|
14
|
+
style: _extends({}, style)
|
|
15
|
+
}, /*#__PURE__*/React.createElement(_Row, {
|
|
16
|
+
align: align,
|
|
17
|
+
gutter: 8
|
|
18
|
+
}, /*#__PURE__*/React.createElement(_Col, {
|
|
19
|
+
flex: 1
|
|
20
|
+
}, /*#__PURE__*/React.createElement(_Statistic, {
|
|
21
|
+
title: title,
|
|
22
|
+
value: value,
|
|
23
|
+
groupSeparator: ""
|
|
24
|
+
})), icon ? /*#__PURE__*/React.createElement(_Col, {
|
|
25
|
+
className: "icon"
|
|
26
|
+
}, icon) : null));
|
|
27
|
+
};
|
|
28
|
+
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;
|