@zat-design/sisyphus-react 3.4.2 → 3.4.3
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/dist/index.esm.css +286 -240
- package/dist/less.esm.css +5022 -0
- package/dist/less.esm.js +3 -0
- package/es/ProConfigProvider/index.js +2 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/components/RenderField/index.js +28 -20
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +67 -30
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProEnum/components/Group.d.ts +2 -0
- package/es/ProEnum/components/Group.js +26 -8
- package/es/ProEnum/index.js +4 -3
- package/es/ProEnum/style/index.less +12 -3
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/combination/FormList/index.js +6 -3
- package/es/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/es/ProForm/components/combination/FormList/utils.js +5 -3
- package/es/ProForm/components/combination/Group/index.js +28 -15
- package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/es/ProForm/components/combination/Group/style/index.less +4 -4
- package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/es/ProForm/components/combination/Group/utils.js +10 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +21 -13
- package/es/ProForm/components/render/RenderFields.d.ts +2 -1
- package/es/ProForm/components/render/RenderFields.js +7 -3
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +8 -6
- package/es/ProForm/propsType.d.ts +5 -1
- package/es/ProForm/style/index.less +17 -13
- package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/es/ProForm/utils/diffOriginal.js +61 -0
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +1 -1
- package/es/ProForm/utils/transformNames.d.ts +1 -1
- package/es/ProForm/utils/transformNames.js +11 -4
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +4 -3
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +5 -3
- package/es/ProForm/utils/valueType.d.ts +10 -5
- package/es/ProForm/utils/valueType.js +20 -10
- package/es/ProIcon/config/index.d.ts +2 -1
- package/es/ProIcon/config/index.js +191 -133
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +21 -36
- package/es/ProIcon/propsTypes.d.ts +2 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/es/ProLayout/components/ProCollapse/index.js +22 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +6 -5
- package/es/ProLayout/style/index.less +176 -88
- package/es/ProStep/components/Item/index.js +2 -1
- package/es/ProStep/style/index.less +71 -70
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +3 -3
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +2 -2
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/ProThemeTools/index.js +21 -28
- package/es/ProThemeTools/propsType.d.ts +1 -1
- package/es/ProThemeTools/style/index.less +25 -8
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +2 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/assets/catalog.svg +30 -1
- package/es/assets/fold.svg +27 -0
- package/es/assets/setting.svg +14 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/style/components.less +0 -1
- package/es/style/less.less +2 -0
- package/es/style/theme/antd.less +1 -2
- package/es/style/theme/index.less +2 -2
- package/es/style/theme/tokens.less +2 -2
- package/es/tokens.js +2 -2
- package/lib/ProConfigProvider/index.js +2 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +27 -19
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +67 -30
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProEnum/components/Group.d.ts +2 -0
- package/lib/ProEnum/components/Group.js +26 -8
- package/lib/ProEnum/index.js +4 -3
- package/lib/ProEnum/style/index.less +12 -3
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/combination/FormList/index.js +6 -3
- package/lib/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/lib/ProForm/components/combination/FormList/utils.js +5 -3
- package/lib/ProForm/components/combination/Group/index.js +25 -12
- package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/lib/ProForm/components/combination/Group/style/index.less +4 -4
- package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/utils.js +11 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/index.d.ts +0 -1
- package/lib/ProForm/components/index.js +0 -7
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +21 -13
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
- package/lib/ProForm/components/render/RenderFields.js +7 -3
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +7 -5
- package/lib/ProForm/propsType.d.ts +5 -1
- package/lib/ProForm/style/index.less +17 -13
- package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/lib/ProForm/utils/diffOriginal.js +68 -0
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- package/lib/ProForm/utils/transformNames.d.ts +1 -1
- package/lib/ProForm/utils/transformNames.js +10 -3
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +4 -3
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +5 -3
- package/lib/ProForm/utils/valueType.d.ts +10 -5
- package/lib/ProForm/utils/valueType.js +20 -10
- package/lib/ProIcon/config/index.d.ts +2 -1
- package/lib/ProIcon/config/index.js +191 -133
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +21 -37
- package/lib/ProIcon/propsTypes.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/lib/ProLayout/components/ProCollapse/index.js +20 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +6 -5
- package/lib/ProLayout/style/index.less +176 -88
- package/lib/ProStep/components/Item/index.js +2 -1
- package/lib/ProStep/style/index.less +71 -70
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +3 -3
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +2 -2
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/ProThemeTools/index.js +19 -27
- package/lib/ProThemeTools/propsType.d.ts +1 -1
- package/lib/ProThemeTools/style/index.less +25 -8
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +2 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/assets/catalog.svg +30 -1
- package/lib/assets/fold.svg +27 -0
- package/lib/assets/setting.svg +14 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/style/components.less +0 -1
- package/lib/style/less.less +2 -0
- package/lib/style/theme/antd.less +1 -2
- package/lib/style/theme/index.less +2 -2
- package/lib/style/theme/tokens.less +2 -2
- package/lib/tokens.js +2 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- package/lib/ProIcon/symbolIcon.js +0 -45
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
|
@@ -6,37 +6,38 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.pro-step {
|
|
9
|
-
position
|
|
10
|
-
right
|
|
11
|
-
z-index
|
|
12
|
-
min-width
|
|
13
|
-
min-height
|
|
14
|
-
text-align : center;
|
|
15
|
-
background-color: var(--zaui-global-bg, #fff);
|
|
16
|
-
cursor : pointer;
|
|
17
|
-
box-shadow : -1px 0px 5px 0px var(--zaui-shadow, rgba(56,56,56,0.15));
|
|
18
|
-
transition : width .2s;
|
|
9
|
+
position: fixed;
|
|
10
|
+
right: 0;
|
|
11
|
+
z-index: 101;
|
|
12
|
+
min-width: 48px;
|
|
13
|
+
min-height: 48px;
|
|
19
14
|
overflow-x: hidden;
|
|
20
15
|
overflow-y: auto;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
text-align: center;
|
|
17
|
+
background-color: var(--zaui-global-bg, #fff);
|
|
18
|
+
border-radius: 0 0 var(--zaui-border-radius) var(--zaui-border-radius);
|
|
19
|
+
box-shadow: -1px 0px 5px 0px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: width 0.2s;
|
|
22
|
+
|
|
23
|
+
> .step-menu {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 48px;
|
|
28
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
28
29
|
border-bottom: 1px solid var(--zaui-line, #dddddd);
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
> .menu-icon {
|
|
31
32
|
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
32
|
-
fill
|
|
33
|
+
fill: var(--zaui-brand, #006aff);
|
|
33
34
|
|
|
34
|
-
>div {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
display : flex;
|
|
38
|
-
align-items : center;
|
|
35
|
+
> div {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
39
38
|
justify-content: center;
|
|
39
|
+
width: 48px;
|
|
40
|
+
height: 24px;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -50,12 +51,12 @@
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
.com-menu-item {
|
|
53
|
-
display
|
|
54
|
-
align-items
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
55
56
|
justify-content: space-between;
|
|
56
|
-
width
|
|
57
|
-
height
|
|
58
|
-
padding-right
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 48px;
|
|
59
|
+
padding-right: var(--zaui-space-size-md, 24px);
|
|
59
60
|
|
|
60
61
|
&:hover {
|
|
61
62
|
background-color: rgba(185, 185, 189, 0.1);
|
|
@@ -69,63 +70,63 @@
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
display
|
|
73
|
+
> .menu-item {
|
|
74
|
+
display: flex;
|
|
74
75
|
align-items: center;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
display
|
|
78
|
-
align-items
|
|
77
|
+
> .menu-icon {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
79
80
|
justify-content: center;
|
|
80
|
-
width
|
|
81
|
-
height
|
|
81
|
+
width: 48px;
|
|
82
|
+
height: 100%;
|
|
82
83
|
|
|
83
|
-
>svg {
|
|
84
|
-
fill: var(--zaui-brand, #
|
|
84
|
+
> svg {
|
|
85
|
+
fill: var(--zaui-brand, #006aff);
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
width
|
|
89
|
-
height
|
|
90
|
-
background
|
|
88
|
+
> .dot {
|
|
89
|
+
width: 6px;
|
|
90
|
+
height: 6px;
|
|
91
|
+
background: var(--zaui-brand, #006aff);
|
|
91
92
|
border-radius: 3px;
|
|
92
93
|
|
|
93
94
|
&.errored {
|
|
94
95
|
background: #ff5050;
|
|
95
|
-
fill
|
|
96
|
+
fill: #ff5050;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
&.disabled {
|
|
99
100
|
background: #939599;
|
|
100
|
-
fill
|
|
101
|
+
fill: #939599;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.dot-icon {
|
|
105
|
-
display
|
|
106
|
-
align-items
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
107
108
|
justify-content: center;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
background
|
|
113
|
-
border-radius
|
|
109
|
+
width: 18px;
|
|
110
|
+
height: 18px;
|
|
111
|
+
color: #ffffff;
|
|
112
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
113
|
+
background: var(--zaui-brand, #006aff);
|
|
114
|
+
border-radius: 9px;
|
|
114
115
|
|
|
115
116
|
&.errored {
|
|
116
117
|
background: #ff5050;
|
|
117
|
-
fill
|
|
118
|
+
fill: #ff5050;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
&.disabled {
|
|
121
122
|
background: #939599;
|
|
122
|
-
fill
|
|
123
|
+
fill: #939599;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
color: #
|
|
128
|
+
> .menu-name {
|
|
129
|
+
color: #0a0a0a;
|
|
129
130
|
|
|
130
131
|
&.disabled {
|
|
131
132
|
color: #626366;
|
|
@@ -133,26 +134,26 @@
|
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
> .checked-status {
|
|
137
138
|
height: 18px;
|
|
138
139
|
|
|
139
|
-
>svg {
|
|
140
|
-
fill: var(--zaui-brand, #
|
|
140
|
+
> svg {
|
|
141
|
+
fill: var(--zaui-brand, #006aff);
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.errorDot {
|
|
144
|
-
display
|
|
145
|
-
align-items
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
146
147
|
justify-content: center;
|
|
147
|
-
width
|
|
148
|
-
height
|
|
149
|
-
background
|
|
150
|
-
border-radius
|
|
151
|
-
|
|
152
|
-
>span {
|
|
153
|
-
color
|
|
154
|
-
font-weight
|
|
155
|
-
font-size
|
|
148
|
+
width: 16px;
|
|
149
|
+
height: 16px;
|
|
150
|
+
background: rgba(255, 80, 80, 0.2);
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
|
|
153
|
+
> span {
|
|
154
|
+
color: #ff5050;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
font-size: var(--aui-font-size-sm, 12px);
|
|
156
157
|
border-radius: 8px;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
@@ -18,10 +18,10 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
18
18
|
ellipsis = props.ellipsis,
|
|
19
19
|
width = props.width,
|
|
20
20
|
originalValue = props.originalValue,
|
|
21
|
-
|
|
21
|
+
originalDiffTip = props.originalDiffTip;
|
|
22
22
|
if (originalValue !== undefined) {
|
|
23
23
|
var renderNode = value ? node : '-';
|
|
24
|
-
if (ellipsis ||
|
|
24
|
+
if (ellipsis || originalDiffTip) {
|
|
25
25
|
if (ellipsis) {
|
|
26
26
|
renderNode = _jsx(Text, {
|
|
27
27
|
style: {
|
|
@@ -38,7 +38,7 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
38
38
|
style: {
|
|
39
39
|
width: width
|
|
40
40
|
},
|
|
41
|
-
title:
|
|
41
|
+
title: originalDiffTip ? _jsxs(_Fragment, {
|
|
42
42
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, _jsx("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
43
43
|
}) : node,
|
|
44
44
|
children: renderNode
|
|
@@ -26,7 +26,7 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
|
|
|
26
26
|
precision?: number;
|
|
27
27
|
code?: string | string[] | ((text: any, record: any) => string);
|
|
28
28
|
copyable?: boolean;
|
|
29
|
-
|
|
29
|
+
originalDiffTip?: boolean;
|
|
30
30
|
prefix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
31
31
|
suffix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
32
32
|
tooltip?: ReactNode | {
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
margin-left: -8px;
|
|
178
178
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
179
179
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
180
|
-
border-radius: var(--zaui-border-radius,
|
|
180
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.varied-cell.empty-cell {
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
.@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
|
|
433
433
|
color: #ffffff;
|
|
434
434
|
background: var(--zaui-brand, #006aff) !important;
|
|
435
|
-
border-radius: var(--zaui-border-radius,
|
|
435
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.pro-table-footer {
|
package/es/ProTable/utils.js
CHANGED
|
@@ -57,8 +57,8 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
57
57
|
prefix = column.prefix,
|
|
58
58
|
suffix = column.suffix,
|
|
59
59
|
dataIndex = column.dataIndex,
|
|
60
|
-
_column$
|
|
61
|
-
|
|
60
|
+
_column$originalDiffT = column.originalDiffTip,
|
|
61
|
+
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT;
|
|
62
62
|
// 前缀处理
|
|
63
63
|
var prefixNode = function prefixNode(value, record, index) {
|
|
64
64
|
if (!prefix) {
|
|
@@ -122,7 +122,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
122
122
|
node: renderValue,
|
|
123
123
|
value: value,
|
|
124
124
|
currentValue: renderValue,
|
|
125
|
-
|
|
125
|
+
originalDiffTip: originalDiffTip
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
// 千分位, 千分位带CNY前缀
|
|
@@ -151,7 +151,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
151
151
|
node: node,
|
|
152
152
|
value: value,
|
|
153
153
|
currentValue: renderValue,
|
|
154
|
-
|
|
154
|
+
originalDiffTip: originalDiffTip
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -203,7 +203,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
203
203
|
node: node,
|
|
204
204
|
value: value,
|
|
205
205
|
currentValue: renderValue,
|
|
206
|
-
|
|
206
|
+
originalDiffTip: originalDiffTip
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -224,7 +224,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
224
224
|
node: node,
|
|
225
225
|
value: value,
|
|
226
226
|
currentValue: renderValue,
|
|
227
|
-
|
|
227
|
+
originalDiffTip: originalDiffTip
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
} else if (precision || prefix || suffix) {
|
|
@@ -250,7 +250,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
250
250
|
node: node,
|
|
251
251
|
value: value,
|
|
252
252
|
currentValue: renderValue,
|
|
253
|
-
|
|
253
|
+
originalDiffTip: originalDiffTip
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
256
|
} else if (valueType === 'address') {
|
|
@@ -322,7 +322,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
322
322
|
node: value,
|
|
323
323
|
value: value,
|
|
324
324
|
currentValue: value || '-',
|
|
325
|
-
|
|
325
|
+
originalDiffTip: originalDiffTip
|
|
326
326
|
}), suffixNode(value, record, index)]
|
|
327
327
|
});
|
|
328
328
|
};
|
|
@@ -344,7 +344,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
344
344
|
node: node,
|
|
345
345
|
value: value,
|
|
346
346
|
currentValue: value || '-',
|
|
347
|
-
|
|
347
|
+
originalDiffTip: originalDiffTip
|
|
348
348
|
});
|
|
349
349
|
};
|
|
350
350
|
}
|
|
@@ -70,9 +70,11 @@
|
|
|
70
70
|
.pro-tabs-tab {
|
|
71
71
|
.pro-tabs-card {
|
|
72
72
|
.@{ant-prefix}-tag {
|
|
73
|
+
min-width: 22px;
|
|
73
74
|
margin-right: 0;
|
|
74
75
|
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
75
|
-
|
|
76
|
+
text-align: center;
|
|
77
|
+
border-radius: 12px;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.@{ant-prefix}-space-item {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
2
|
-
declare const PrdTools: ({ onReset, onClose, setState,
|
|
2
|
+
declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, prefixCls, }: DevToolsPropsType) => JSX.Element;
|
|
3
3
|
export default PrdTools;
|
|
@@ -24,7 +24,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
24
24
|
var onReset = _ref.onReset,
|
|
25
25
|
onClose = _ref.onClose,
|
|
26
26
|
setState = _ref.setState,
|
|
27
|
-
|
|
27
|
+
open = _ref.open,
|
|
28
28
|
state = _ref.state,
|
|
29
29
|
tableBorder = _ref.tableBorder,
|
|
30
30
|
tableStripe = _ref.tableStripe,
|
|
@@ -68,7 +68,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
68
68
|
title: "".concat(locale.ProThemeTools.title),
|
|
69
69
|
placement: "right",
|
|
70
70
|
onClose: onClose,
|
|
71
|
-
open:
|
|
71
|
+
open: open,
|
|
72
72
|
closable: false,
|
|
73
73
|
children: [_jsx("div", {
|
|
74
74
|
className: "pro-drawer-close",
|
|
@@ -9,12 +9,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
9
9
|
var _excluded = ["size", "className", "cacheTime", "color", "mode", "iconFollowTheme", "prefixCls", "tableBorder", "tableStripe", "theme", "onChange"];
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
/* eslint-disable prefer-const */
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
|
-
import { usePrevious, useUpdateEffect } from 'ahooks';
|
|
14
|
+
import { usePrevious, useUpdateEffect, useToggle } from 'ahooks';
|
|
15
|
+
import { ReactSVG } from 'react-svg';
|
|
15
16
|
import { isEqual } from 'lodash';
|
|
16
17
|
import classnames from 'classnames';
|
|
17
18
|
import { getKebabCase, setThemes, setTableBorder, getMapKebabCase, getMapHumpCase } from './utils/index';
|
|
19
|
+
import settingSvg from '../assets/setting.svg';
|
|
18
20
|
import { PrdTools } from './component';
|
|
19
21
|
import locale from '../locale';
|
|
20
22
|
var defaultCacheTime = 1; // 配置保存时间为一天
|
|
@@ -50,24 +52,18 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
50
52
|
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
51
53
|
onChange = _ref.onChange,
|
|
52
54
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
-
var
|
|
55
|
+
var _useToggle = useToggle(false),
|
|
56
|
+
_useToggle2 = _slicedToArray(_useToggle, 2),
|
|
57
|
+
visible = _useToggle2[0],
|
|
58
|
+
toggle = _useToggle2[1].toggle;
|
|
59
|
+
var _useState = useState(_objectSpread(_objectSpread({}, defaultThemeConfig), getMapHumpCase(theme))),
|
|
54
60
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _useState3 = useState(_objectSpread(_objectSpread({}, defaultThemeConfig), getMapHumpCase(theme))),
|
|
58
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
|
-
state = _useState4[0],
|
|
60
|
-
setState = _useState4[1];
|
|
61
|
+
state = _useState2[0],
|
|
62
|
+
setState = _useState2[1];
|
|
61
63
|
var previousState = usePrevious(state);
|
|
62
64
|
var zauiBrand = state.zauiBrand,
|
|
63
65
|
zauiStripe = state.zauiStripe,
|
|
64
66
|
zauiTableBorder = state.zauiTableBorder;
|
|
65
|
-
var showDrawer = function showDrawer() {
|
|
66
|
-
setVisible(true);
|
|
67
|
-
};
|
|
68
|
-
var onClose = function onClose() {
|
|
69
|
-
setVisible(false);
|
|
70
|
-
};
|
|
71
67
|
// 重置
|
|
72
68
|
var onReset = function onReset() {
|
|
73
69
|
setState(_objectSpread(_objectSpread({}, state), defaultThemeConfig));
|
|
@@ -180,24 +176,21 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
180
176
|
'pro-theme-tools': true,
|
|
181
177
|
'pro-theme-tools-follow': iconFollowTheme
|
|
182
178
|
}, className, className));
|
|
183
|
-
return _jsxs("div", _objectSpread(_objectSpread({
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
onClick: function onClick() {
|
|
192
|
-
showDrawer();
|
|
193
|
-
}
|
|
179
|
+
return _jsxs("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
180
|
+
children: [_jsx("div", {
|
|
181
|
+
className: cls,
|
|
182
|
+
onClick: toggle,
|
|
183
|
+
children: _jsx(ReactSVG, {
|
|
184
|
+
className: "setting-icon",
|
|
185
|
+
src: settingSvg
|
|
186
|
+
})
|
|
194
187
|
}), _jsx(PrdTools, {
|
|
195
188
|
prefixCls: prefixCls,
|
|
196
189
|
onReset: onReset,
|
|
197
|
-
onClose:
|
|
190
|
+
onClose: toggle,
|
|
198
191
|
onCopy: onCopy,
|
|
199
192
|
setState: setState,
|
|
200
|
-
|
|
193
|
+
open: visible,
|
|
201
194
|
state: state,
|
|
202
195
|
tableBorder: tableBorder,
|
|
203
196
|
tableStripe: tableStripe
|
|
@@ -5,18 +5,35 @@
|
|
|
5
5
|
|
|
6
6
|
.pro-theme-tools {
|
|
7
7
|
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
width: 34px;
|
|
11
|
+
height: 34px;
|
|
12
|
+
background: #d8e6ff;
|
|
13
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
|
|
16
|
+
.setting-icon {
|
|
17
|
+
margin-top: -1px;
|
|
18
|
+
div {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
8
24
|
|
|
9
25
|
&.pro-theme-tools-follow {
|
|
26
|
+
background: var(--ant-primary-1);
|
|
10
27
|
svg {
|
|
11
28
|
color: var(--zaui-brand, #006aff);
|
|
12
29
|
}
|
|
13
30
|
}
|
|
14
31
|
|
|
15
32
|
.anticon {
|
|
16
|
-
color: var(--zaui-
|
|
33
|
+
color: var(--zaui-text, #343434);
|
|
17
34
|
|
|
18
35
|
svg {
|
|
19
|
-
font-size:
|
|
36
|
+
font-size: 20px;
|
|
20
37
|
}
|
|
21
38
|
}
|
|
22
39
|
}
|
|
@@ -36,16 +53,16 @@
|
|
|
36
53
|
|
|
37
54
|
.copy-btn {
|
|
38
55
|
position: absolute;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
bottom: 20px;
|
|
57
|
+
left: 32px;
|
|
58
|
+
z-index: 10;
|
|
59
|
+
width: calc(100% - 64px);
|
|
43
60
|
}
|
|
44
61
|
|
|
45
62
|
.pro-theme-tools-box {
|
|
46
|
-
display
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
47
65
|
justify-content: space-between;
|
|
48
|
-
flex-wrap : wrap;
|
|
49
66
|
}
|
|
50
67
|
|
|
51
68
|
.pro-theme-tools-space {
|
|
@@ -11,12 +11,14 @@ import _TreeSelect from "antd/es/tree-select";
|
|
|
11
11
|
var _excluded = ["disabled", "code", "dataSource", "defaultDisableValue", "onChange", "useRequest", "transformResponse", "fieldNames", "tooltip", "showSearch", "filterTreeNode", "treeNodeFilterProp", "defaultExpandAll", "expandedKeys", "treeCheckable", "onSearch", "otherProps", "width", "dropdownStyle", "popupClassName", "style", "allowClear", "listHeight", "showCodeName", "className"],
|
|
12
12
|
_excluded2 = ["children"];
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
/* eslint-disable react/no-danger */
|
|
15
|
+
/* eslint-disable react/jsx-closing-tag-location */
|
|
14
16
|
import { useDeepCompareEffect, useRequest as useRequestFunc, useSetState } from 'ahooks';
|
|
15
17
|
import classnames from 'classnames';
|
|
16
18
|
import { useImperativeHandle, forwardRef } from 'react';
|
|
17
19
|
import { cloneDeep } from 'lodash';
|
|
18
|
-
import { useProConfig } from '
|
|
19
|
-
import Container from '
|
|
20
|
+
import { useProConfig } from '../../../ProConfigProvider';
|
|
21
|
+
import Container from '../../../ProForm/components/Container';
|
|
20
22
|
var SHOW_PARENT = _TreeSelect.SHOW_PARENT;
|
|
21
23
|
export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
22
24
|
// 全局属性配置在ConfigProvider
|
|
@@ -282,8 +284,7 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
282
284
|
*/
|
|
283
285
|
var renderTreeNode = function renderTreeNode(node, grade) {
|
|
284
286
|
var children = node.children,
|
|
285
|
-
icon = node.icon
|
|
286
|
-
hideNodeClass = node.hideNodeClass;
|
|
287
|
+
icon = node.icon;
|
|
287
288
|
var labelText = node[label];
|
|
288
289
|
var value = node[code];
|
|
289
290
|
var titleHtml = _jsx("span", {
|
|
@@ -302,10 +303,10 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
302
303
|
children: [_jsx("span", {
|
|
303
304
|
className: "check-option-text-content",
|
|
304
305
|
children: titleHtml
|
|
305
|
-
}), _jsx("span", {
|
|
306
|
+
}), !disabled ? _jsx("span", {
|
|
306
307
|
className: "check-mark-icon",
|
|
307
308
|
children: _jsx(Icon, {})
|
|
308
|
-
})]
|
|
309
|
+
}) : null]
|
|
309
310
|
});
|
|
310
311
|
if (!children) {
|
|
311
312
|
return _jsx(_TreeSelect.TreeNode, {
|
|
@@ -357,10 +358,6 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
357
358
|
item[label] = item[label].replace(regExp, "<span class=\"highlight-search-text\">".concat(keyWord, "</span>"));
|
|
358
359
|
}
|
|
359
360
|
currentAllNodeChild.push(item);
|
|
360
|
-
// if (tag || item?.children?.length) {
|
|
361
|
-
// // 如果子节点有匹配项或者自己匹配了那么都加入结果中
|
|
362
|
-
// currentAllNodeChild.push(item);
|
|
363
|
-
// }
|
|
364
361
|
}
|
|
365
362
|
return currentAllNodeChild;
|
|
366
363
|
};
|
|
@@ -473,7 +470,6 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
473
470
|
var treeProps = _objectSpread({
|
|
474
471
|
disabled: disabled,
|
|
475
472
|
showSearch: showSearch,
|
|
476
|
-
// filterTreeNode: filterTreeNodeEvent,
|
|
477
473
|
treeDefaultExpandAll: defaultExpandAll,
|
|
478
474
|
treeExpandedKeys: expandedKeys,
|
|
479
475
|
treeCheckable: treeCheckable,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TreeSelectProps } from 'antd';
|
|
3
3
|
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
-
import { ProFormOtherProps } from '
|
|
4
|
+
import { ProFormOtherProps } from '../../../ProForm/propsType';
|
|
5
5
|
export interface DataProps {
|
|
6
6
|
label: string;
|
|
7
7
|
value?: string;
|
package/es/ProTree/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
*@Description: ProTree组件,集成了tree和treeSelect
|
|
9
9
|
*/
|
|
10
10
|
import ProTree from './components/ProTree';
|
|
11
|
-
import ProTreeSelect from '
|
|
11
|
+
import ProTreeSelect from './components/ProTreeSelect';
|
|
12
12
|
var ProTreeHandle = function ProTreeHandle(props) {
|
|
13
13
|
var _props$mode = props.mode,
|
|
14
14
|
mode = _props$mode === void 0 ? 'tree' : _props$mode;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
font-size: var(--zaui-font-size, 14px);
|
|
54
54
|
line-height: 20px;
|
|
55
55
|
border: 1px solid #e6e6e6;
|
|
56
|
-
border-radius: var(--zaui-border-radius,
|
|
56
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
57
57
|
|
|
58
58
|
&:first-child {
|
|
59
59
|
margin-right: var(--zaui-space-size-md, 16px);
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
font-size: var(--zaui-font-size, 14px);
|
|
247
247
|
background: #f2f2f2;
|
|
248
248
|
border: none;
|
|
249
|
-
border-radius: var(--zaui-border-radius,
|
|
249
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
250
250
|
|
|
251
251
|
.pro-tooltip {
|
|
252
252
|
flex: 1;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
line-height: 16px;
|
|
13
13
|
&:hover {
|
|
14
14
|
background: #F8F9FA;
|
|
15
|
-
border-radius: var(--zaui-border-radius,
|
|
15
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
16
16
|
color: var(--zaui-brand);
|
|
17
17
|
.file-actions-wrap {
|
|
18
18
|
.file-actions{
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
justify-content: center;
|
|
94
94
|
&:hover {
|
|
95
95
|
background: #F8F9FA;
|
|
96
|
-
border-radius: var(--zaui-border-radius,
|
|
96
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
97
97
|
}
|
|
98
98
|
&:hover,&.file-box-error {
|
|
99
99
|
.file-actions-wrap {
|