@zat-design/sisyphus-react 3.1.4 → 3.1.5-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/Alert.tsx +19 -0
- package/.dumi/theme/builtins/Previewer.tsx +232 -0
- package/.dumi/theme/builtins/SourceCode.tsx +64 -0
- package/.dumi/theme/hooks/useCodeSandbox.tsx +197 -0
- package/.dumi/theme/hooks/useTheme.tsx +707 -0
- package/.dumi/theme/layouts/BasicLayout.tsx +88 -0
- package/.dumi/theme/layouts/components/Dark.less +157 -0
- package/.dumi/theme/layouts/components/Dark.tsx +78 -0
- package/.dumi/theme/layouts/components/Navbar.tsx +83 -0
- package/.dumi/theme/layouts/components/SideMenu.tsx +61 -0
- package/.dumi/theme/layouts/index.tsx +26 -0
- package/.dumi/theme/layouts/layout.less +87 -0
- package/.dumi/theme/typings.d.ts +7 -0
- package/dist/index.esm.css +122 -249
- package/es/ProAction/index.less +3 -2
- package/es/ProConfigProvider/index.d.ts +2 -0
- package/es/ProConfigProvider/index.js +18 -2
- package/es/ProDrawerForm/index.js +5 -3
- package/es/ProDrawerForm/style/index.less +15 -11
- package/es/ProEditLabel/style/index.less +2 -2
- package/es/ProEditTable/style/index.less +15 -8
- package/es/ProEditTable/utils/config.js +11 -4
- package/es/ProEnum/style/index.less +1 -1
- package/es/ProForm/components/base/RangePicker/index.js +0 -3
- package/es/ProForm/components/base/TextArea/index.less +1 -1
- package/es/ProForm/components/combination/Container/style/index.less +0 -1
- package/es/ProForm/components/combination/FormList/style/index.less +20 -19
- package/es/ProForm/components/combination/Group/index.js +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.js +81 -61
- package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/es/ProForm/components/combination/ProModalSelect/index.js +75 -13
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/es/ProForm/components/render/RenderFields.js +10 -5
- package/es/ProForm/components/render/propsType.d.ts +5 -4
- package/es/ProForm/index.js +5 -0
- package/es/ProForm/style/index.less +55 -169
- package/es/ProForm/utils/useShouldUpdate.js +16 -16
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/es/ProLayout/components/ProHeader/components/index.js +2 -1
- package/es/ProLayout/components/ProHeader/index.js +4 -2
- package/es/ProLayout/components/ProHeader/style/index.less +16 -7
- package/es/ProStep/style/index.less +0 -1
- package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/es/ProTable/components/RenderColumn/index.js +41 -25
- package/es/ProTable/index.js +3 -2
- package/es/ProTable/propsType.d.ts +2 -0
- package/es/ProTable/style/index.less +14 -1
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +258 -201
- package/es/ProTabs/style/index.less +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +1 -1
- package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/index.js +24 -17
- package/es/ProThemeTools/propsType.d.ts +8 -6
- package/es/ProThemeTools/style/index.less +2 -2
- package/es/ProThemeTools/utils/index.d.ts +7 -0
- package/es/ProThemeTools/utils/index.js +19 -1
- package/es/ProTree/components/ProTree.js +1 -1
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/components/SearchTitle.js +11 -1
- package/es/ProTree/components/Tree.js +6 -1
- package/es/ProTree/style/index.less +193 -141
- package/es/ProTreeModal/style/index.less +2 -6
- package/es/ProUpload/style/index.less +41 -39
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/locale/en_US.d.ts +69 -0
- package/es/locale/en_US.js +68 -0
- package/es/locale/index.d.ts +7 -0
- package/es/locale/index.js +21 -0
- package/es/locale/zh_CN.d.ts +69 -0
- package/es/locale/zh_CN.js +68 -0
- package/es/old/ProEditableTable/style/index.less +1 -2
- package/es/style/components.less +0 -1
- package/es/style/core/normalize.less +1 -1
- package/es/style/theme/antd.less +3 -4
- package/es/style/theme/index.less +80 -79
- package/es/style/theme/tokens.less +1 -0
- package/lib/ProAction/index.less +3 -2
- package/lib/ProConfigProvider/index.d.ts +2 -0
- package/lib/ProConfigProvider/index.js +17 -2
- package/lib/ProDrawerForm/index.js +5 -3
- package/lib/ProDrawerForm/style/index.less +15 -11
- package/lib/ProEditLabel/style/index.less +2 -2
- package/lib/ProEditTable/style/index.less +15 -8
- package/lib/ProEditTable/utils/config.js +11 -4
- package/lib/ProEnum/style/index.less +1 -1
- package/lib/ProForm/components/base/RangePicker/index.js +0 -3
- package/lib/ProForm/components/base/TextArea/index.less +1 -1
- package/lib/ProForm/components/combination/Container/style/index.less +0 -1
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
- package/lib/ProForm/components/combination/Group/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.js +76 -58
- package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.js +75 -13
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/lib/ProForm/components/render/RenderFields.js +9 -4
- package/lib/ProForm/components/render/propsType.d.ts +5 -4
- package/lib/ProForm/index.js +5 -0
- package/lib/ProForm/style/index.less +55 -169
- package/lib/ProForm/utils/useShouldUpdate.js +16 -16
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
- package/lib/ProLayout/components/ProHeader/index.js +4 -2
- package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
- package/lib/ProStep/style/index.less +0 -1
- package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/lib/ProTable/components/RenderColumn/index.js +38 -24
- package/lib/ProTable/index.js +3 -2
- package/lib/ProTable/propsType.d.ts +2 -0
- package/lib/ProTable/style/index.less +14 -1
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +258 -201
- package/lib/ProTabs/style/index.less +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
- package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/index.js +23 -16
- package/lib/ProThemeTools/propsType.d.ts +8 -6
- package/lib/ProThemeTools/style/index.less +2 -2
- package/lib/ProThemeTools/utils/index.d.ts +7 -0
- package/lib/ProThemeTools/utils/index.js +20 -2
- package/lib/ProTree/components/ProTree.js +1 -1
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/components/SearchTitle.js +11 -1
- package/lib/ProTree/components/Tree.js +6 -1
- package/lib/ProTree/style/index.less +193 -141
- package/lib/ProTreeModal/style/index.less +2 -6
- package/lib/ProUpload/style/index.less +41 -39
- package/lib/index.d.ts +2 -1
- package/lib/index.js +13 -1
- package/lib/locale/en_US.d.ts +69 -0
- package/lib/locale/en_US.js +74 -0
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +28 -0
- package/lib/locale/zh_CN.d.ts +69 -0
- package/lib/locale/zh_CN.js +74 -0
- package/lib/old/ProEditableTable/style/index.less +1 -2
- package/lib/style/components.less +0 -1
- package/lib/style/core/normalize.less +1 -1
- package/lib/style/theme/antd.less +3 -4
- package/lib/style/theme/index.less +80 -79
- package/lib/style/theme/tokens.less +1 -0
- package/package.json +2 -2
- package/typings.d.ts +2 -0
- package/es/old/ProBackBtn/style/index.less +0 -19
- package/lib/old/ProBackBtn/style/index.less +0 -19
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
|
@@ -11,6 +11,16 @@
|
|
|
11
11
|
@import '../components/old/EnumSelect/style/index.less';
|
|
12
12
|
|
|
13
13
|
.pro-form {
|
|
14
|
+
&.ant-form-vertical {
|
|
15
|
+
.ant-form-item .ant-form-item-label {
|
|
16
|
+
flex: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.ant-form {
|
|
21
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
.pro-collapse-level2 {
|
|
15
25
|
.ant-collapse-item {
|
|
16
26
|
margin-bottom: 0 !important;
|
|
@@ -23,17 +33,17 @@
|
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
span.ant-input-clear-icon {
|
|
26
|
-
display: unset;
|
|
36
|
+
display : unset;
|
|
27
37
|
visibility: hidden;
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
.ant-input-affix-wrapper:hover span.ant-input-clear-icon {
|
|
31
|
-
display: unset;
|
|
41
|
+
display : unset;
|
|
32
42
|
visibility: unset;
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
.ant-input-affix-wrapper:hover span.ant-input-clear-icon[class~='ant-input-clear-icon-hidden'] {
|
|
36
|
-
display: unset;
|
|
46
|
+
display : unset;
|
|
37
47
|
visibility: hidden;
|
|
38
48
|
}
|
|
39
49
|
|
|
@@ -67,8 +77,8 @@
|
|
|
67
77
|
|
|
68
78
|
// 展开折叠按钮
|
|
69
79
|
.expand-button {
|
|
70
|
-
line-height:
|
|
71
|
-
cursor: pointer;
|
|
80
|
+
line-height: @zaui-space-card;
|
|
81
|
+
cursor : pointer;
|
|
72
82
|
|
|
73
83
|
.rotate-to-top {
|
|
74
84
|
transform: rotate(90deg);
|
|
@@ -80,40 +90,29 @@
|
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
.ant-form-item {
|
|
83
|
-
margin-bottom:
|
|
93
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
|
|
84
94
|
|
|
85
95
|
.ant-form-item-tooltip {
|
|
86
96
|
svg {
|
|
87
|
-
width: 14px;
|
|
88
|
-
height: 14px;
|
|
97
|
+
width : 14px;
|
|
98
|
+
height : 14px;
|
|
89
99
|
vertical-align: bottom;
|
|
90
|
-
fill:
|
|
100
|
+
fill : @zaui-aide-text;
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
// 比较原始值场景下 不同时候的样式
|
|
95
105
|
&.pro-form-item-changed {
|
|
106
|
+
|
|
96
107
|
span.ant-input-affix-wrapper,
|
|
97
108
|
.ant-select-selector,
|
|
98
109
|
.ant-picker {
|
|
99
|
-
background:
|
|
110
|
+
background: @zaui-contract-bg;
|
|
100
111
|
|
|
101
112
|
input {
|
|
102
|
-
background:
|
|
113
|
+
background: @zaui-contract-bg;
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
|
-
|
|
106
|
-
#switch {
|
|
107
|
-
background: #bfbfbf;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// 自定义label宽度场景
|
|
112
|
-
&.label-width {
|
|
113
|
-
.ant-form-item-label {
|
|
114
|
-
width: auto !important;
|
|
115
|
-
max-width: fit-content !important;
|
|
116
|
-
}
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
.ant-row {
|
|
@@ -147,9 +146,9 @@
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
.range-right {
|
|
150
|
-
width: 100%;
|
|
151
|
-
border: 1px solid
|
|
152
|
-
border-top-left-radius: 0;
|
|
149
|
+
width : 100%;
|
|
150
|
+
border : 1px solid @zaui-form-control-line;
|
|
151
|
+
border-top-left-radius : 0;
|
|
153
152
|
border-bottom-left-radius: 0;
|
|
154
153
|
}
|
|
155
154
|
}
|
|
@@ -160,149 +159,36 @@
|
|
|
160
159
|
display: none;
|
|
161
160
|
}
|
|
162
161
|
|
|
163
|
-
// 查看模式
|
|
164
|
-
&.mode-view {
|
|
165
|
-
// 查看模式样式覆盖
|
|
166
|
-
.ant-input[disabled] {
|
|
167
|
-
.noDisabled();
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.ant-input-disabled {
|
|
171
|
-
.noDisabled();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.ant-picker.ant-picker-disabled {
|
|
175
|
-
.noDisabled();
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.ant-picker-input > input[disabled] {
|
|
179
|
-
.noDisabled();
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.ant-picker-suffix {
|
|
183
|
-
display: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.ant-input-textarea.ant-input-textarea-show-count::after {
|
|
187
|
-
display: none;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
191
|
-
.noDisabled();
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.ant-select-arrow {
|
|
195
|
-
display: none;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.ant-upload.ant-upload-disabled {
|
|
199
|
-
display: none;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.ant-switch-loading,
|
|
203
|
-
.ant-switch-disabled {
|
|
204
|
-
.ant-switch-inner {
|
|
205
|
-
.noDisabled();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.ant-switch-handle {
|
|
209
|
-
display: none;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
background-color: #fff;
|
|
213
|
-
cursor: default;
|
|
214
|
-
opacity: 1;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.ant-radio-wrapper.ant-radio-wrapper-checked.ant-radio-wrapper-disabled {
|
|
218
|
-
display: block;
|
|
219
|
-
|
|
220
|
-
.ant-radio.ant-radio-checked.ant-radio-disabled {
|
|
221
|
-
display: none;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
> span {
|
|
225
|
-
.noDisabled();
|
|
226
|
-
position: relative;
|
|
227
|
-
top: -3px;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.ant-radio-wrapper.ant-radio-wrapper-disabled {
|
|
232
|
-
display: none;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.ant-checkbox-wrapper.ant-checkbox-wrapper-checked.ant-checkbox-wrapper-disabled {
|
|
236
|
-
display: block;
|
|
237
|
-
|
|
238
|
-
.ant-checkbox.ant-checkbox-checked.ant-checkbox-disabled {
|
|
239
|
-
display: none;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
> span {
|
|
243
|
-
.noDisabled();
|
|
244
|
-
position: relative;
|
|
245
|
-
top: -3px;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled {
|
|
250
|
-
display: none;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.ant-form-item-has-error {
|
|
254
|
-
.ant-form-item-explain.ant-form-item-explain-error {
|
|
255
|
-
display: none;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
::placeholder {
|
|
260
|
-
font-size: 0px;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.ant-input-affix-wrapper-disabled {
|
|
264
|
-
background-color: transparent;
|
|
265
|
-
border: none;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.ant-select-selection-placeholder {
|
|
269
|
-
display: none;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.ant-input-suffix {
|
|
273
|
-
display: none;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
162
|
.ant-form-item-label {
|
|
278
|
-
>
|
|
163
|
+
>label {
|
|
279
164
|
white-space: pre-wrap;
|
|
280
165
|
}
|
|
281
166
|
}
|
|
282
167
|
|
|
283
168
|
.suffix-value {
|
|
284
|
-
margin-left:
|
|
169
|
+
margin-left: @zaui-space-size-sm;
|
|
285
170
|
}
|
|
286
171
|
|
|
287
172
|
.ant-form-item-has-error {
|
|
288
173
|
.group-separator {
|
|
289
|
-
color: var(--ant-error-color);
|
|
174
|
+
color : var(--ant-error-color);
|
|
290
175
|
border-color: var(--ant-error-color);
|
|
291
176
|
}
|
|
292
177
|
|
|
293
178
|
.site-input-split {
|
|
294
|
-
border-color:
|
|
179
|
+
border-color: @zaui-danger;
|
|
295
180
|
}
|
|
296
181
|
}
|
|
297
182
|
|
|
298
183
|
.site-input-group-wrapper {
|
|
184
|
+
|
|
299
185
|
// 范围值表单样式
|
|
300
186
|
& .site-input-split {
|
|
301
|
-
text-align: center;
|
|
302
|
-
background-color:
|
|
187
|
+
text-align : center;
|
|
188
|
+
background-color: @zaui-table-strip-bg;
|
|
303
189
|
|
|
304
190
|
&.site-input-split-disabled {
|
|
305
|
-
background-color:
|
|
191
|
+
background-color: @zaui-disabled-bg;
|
|
306
192
|
}
|
|
307
193
|
}
|
|
308
194
|
|
|
@@ -344,33 +230,33 @@
|
|
|
344
230
|
}
|
|
345
231
|
}
|
|
346
232
|
|
|
347
|
-
&.ant-input-group.ant-input-group-compact
|
|
233
|
+
&.ant-input-group.ant-input-group-compact>*:not(:last-child) {
|
|
348
234
|
margin-right: 0;
|
|
349
235
|
}
|
|
350
236
|
|
|
351
|
-
|
|
352
|
-
border-top-right-radius: 0 !important;
|
|
237
|
+
>*:first-child {
|
|
238
|
+
border-top-right-radius : 0 !important;
|
|
353
239
|
border-bottom-right-radius: 0 !important;
|
|
354
240
|
|
|
355
|
-
|
|
356
|
-
border-top-right-radius: 0 !important;
|
|
241
|
+
>.ant-select-selector {
|
|
242
|
+
border-top-right-radius : 0 !important;
|
|
357
243
|
border-bottom-right-radius: 0 !important;
|
|
358
244
|
}
|
|
359
245
|
}
|
|
360
246
|
|
|
361
|
-
|
|
362
|
-
border-top-left-radius: 0 !important;
|
|
247
|
+
>*:last-child {
|
|
248
|
+
border-top-left-radius : 0 !important;
|
|
363
249
|
border-bottom-left-radius: 0 !important;
|
|
364
250
|
|
|
365
|
-
|
|
366
|
-
border-top-left-radius: 0 !important;
|
|
251
|
+
>.ant-select-selector {
|
|
252
|
+
border-top-left-radius : 0 !important;
|
|
367
253
|
border-bottom-left-radius: 0 !important;
|
|
368
254
|
}
|
|
369
255
|
}
|
|
370
256
|
}
|
|
371
257
|
|
|
372
|
-
.ant-input-group.ant-input-group-compact
|
|
373
|
-
float: none;
|
|
258
|
+
.ant-input-group.ant-input-group-compact>* {
|
|
259
|
+
float : none;
|
|
374
260
|
vertical-align: top;
|
|
375
261
|
}
|
|
376
262
|
|
|
@@ -379,17 +265,17 @@
|
|
|
379
265
|
}
|
|
380
266
|
|
|
381
267
|
.noDisabled {
|
|
382
|
-
color:
|
|
383
|
-
font-size: 14px;
|
|
268
|
+
color : @zaui-disabled-text;
|
|
269
|
+
font-size : var(--zaui-font-size, 14px);
|
|
384
270
|
background-color: transparent;
|
|
385
|
-
border: none;
|
|
386
|
-
cursor: default;
|
|
387
|
-
opacity: 1;
|
|
271
|
+
border : none;
|
|
272
|
+
cursor : default;
|
|
273
|
+
opacity : 1;
|
|
388
274
|
}
|
|
389
275
|
|
|
390
276
|
div.pro-form-custom-footer {
|
|
391
|
-
width: unset !important;
|
|
392
|
-
height:
|
|
277
|
+
width : unset !important;
|
|
278
|
+
height : @zaui-space-card;
|
|
393
279
|
margin-bottom: calc(var(--zaui-height-size-md, 16px) * var(--zaui-size, 1));
|
|
394
280
|
|
|
395
281
|
&.pro-form-custom-footer-hidden {
|
|
@@ -398,14 +284,14 @@
|
|
|
398
284
|
}
|
|
399
285
|
|
|
400
286
|
.pro-form-view-container {
|
|
401
|
-
display: inline-block;
|
|
402
|
-
color: var(--zaui-text, #343434);
|
|
287
|
+
display : inline-block;
|
|
288
|
+
color : var(--zaui-text, #343434);
|
|
403
289
|
word-break: break-all;
|
|
404
290
|
}
|
|
405
291
|
|
|
406
292
|
.pro-form-view-container_nowrap {
|
|
407
|
-
overflow: hidden;
|
|
408
|
-
white-space: nowrap;
|
|
293
|
+
overflow : hidden;
|
|
294
|
+
white-space : nowrap;
|
|
409
295
|
text-overflow: ellipsis;
|
|
410
296
|
}
|
|
411
297
|
|
|
@@ -11,16 +11,16 @@ var _react = require("react");
|
|
|
11
11
|
var _lodash = require("lodash");
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
// 代理shouldUpdate事件, 执行函数值的[show, disabled], 当[show, disabled]与上一次值不相同时更新状态
|
|
14
|
-
var useShouldUpdate = function useShouldUpdate(
|
|
15
|
-
var show =
|
|
16
|
-
formItemProps =
|
|
17
|
-
form =
|
|
18
|
-
disabled =
|
|
19
|
-
rules =
|
|
20
|
-
required =
|
|
21
|
-
fieldProps =
|
|
22
|
-
component =
|
|
23
|
-
originComponent =
|
|
14
|
+
var useShouldUpdate = function useShouldUpdate(props) {
|
|
15
|
+
var show = props.show,
|
|
16
|
+
formItemProps = props.formItemProps,
|
|
17
|
+
form = props.form,
|
|
18
|
+
disabled = props.disabled,
|
|
19
|
+
rules = props.rules,
|
|
20
|
+
required = props.required,
|
|
21
|
+
fieldProps = props.fieldProps,
|
|
22
|
+
component = props.component,
|
|
23
|
+
originComponent = props.originComponent;
|
|
24
24
|
var _shouldUpdate = formItemProps.shouldUpdate,
|
|
25
25
|
name = formItemProps.name,
|
|
26
26
|
clearNotShow = formItemProps.clearNotShow,
|
|
@@ -39,12 +39,6 @@ var useShouldUpdate = function useShouldUpdate(_ref) {
|
|
|
39
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
40
40
|
reRender = _useState2[1];
|
|
41
41
|
var values = {};
|
|
42
|
-
if (namePath) {
|
|
43
|
-
// formList场景values取当前行数据
|
|
44
|
-
values = form.getFieldValue(namePath) || {};
|
|
45
|
-
} else {
|
|
46
|
-
values = form.getFieldsValue(true);
|
|
47
|
-
}
|
|
48
42
|
// 不是动态函数直接返回
|
|
49
43
|
if (!(0, _lodash.isFunction)(show) && !(0, _lodash.isFunction)(disabled) && !(0, _lodash.isFunction)(required) && !(0, _lodash.isFunction)(rules) && !(0, _lodash.isFunction)(fieldProps) && !(0, _lodash.isFunction)(originComponent)) {
|
|
50
44
|
return {
|
|
@@ -57,6 +51,12 @@ var useShouldUpdate = function useShouldUpdate(_ref) {
|
|
|
57
51
|
component: newComponent
|
|
58
52
|
};
|
|
59
53
|
}
|
|
54
|
+
if (namePath) {
|
|
55
|
+
// formList场景values取当前行数据
|
|
56
|
+
values = form.getFieldValue(namePath) || {};
|
|
57
|
+
} else {
|
|
58
|
+
values = form.getFieldsValue(true);
|
|
59
|
+
}
|
|
60
60
|
if ((0, _lodash.isFunction)(show)) {
|
|
61
61
|
showRef.current = Boolean(show(values, {
|
|
62
62
|
form: form,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
&>.ant-menu-item-only-child {
|
|
25
25
|
min-height : 48px;
|
|
26
26
|
padding-top : 12px;
|
|
27
|
-
padding-bottom:
|
|
27
|
+
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
|
|
28
28
|
margin : 0;
|
|
29
29
|
height : auto;
|
|
30
30
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
height : auto !important;
|
|
95
95
|
margin : 0;
|
|
96
96
|
padding-top : 12px;
|
|
97
|
-
padding-bottom:
|
|
97
|
+
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
|
|
98
98
|
min-height : 48px;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
&.ant-collapse {
|
|
11
11
|
.pro-collapse-panel {
|
|
12
|
-
margin-bottom: var(--zaui-space-size-md
|
|
12
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ant-collapse-header {
|
|
17
17
|
align-items: center !important;
|
|
18
|
-
padding :
|
|
18
|
+
padding : 12px var(--zaui-space-size-md, 16px) !important;
|
|
19
19
|
background : var(--zaui-area, #fafafa);
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
background : var(--zaui-base-bg, #ffffff);
|
|
50
50
|
|
|
51
51
|
.ant-collapse-header {
|
|
52
|
-
margin-bottom: var(--zaui-space-size-md
|
|
52
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
53
53
|
padding : 0 !important;
|
|
54
54
|
background : var(--zaui-base-bg, #ffffff);
|
|
55
55
|
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ant-descriptions {
|
|
157
|
-
margin-bottom: var(--zaui-space-size-md
|
|
157
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.back-button-container {
|
|
2
|
+
&.ant-btn {
|
|
3
|
+
color : var(--zaui-text);
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
background : var(--zaui-disabled-bg);
|
|
6
|
+
border : none;
|
|
7
|
+
|
|
8
|
+
&:hover {
|
|
9
|
+
color : var(--zaui-aide-text);
|
|
10
|
+
background: var(--zaui-disabled-bg);
|
|
11
|
+
border : none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:active,
|
|
15
|
+
&:focus {
|
|
16
|
+
color : var(--zaui-text);
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
background : var(--zaui-disabled-bg);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -10,4 +10,11 @@ Object.defineProperty(exports, "Copy", {
|
|
|
10
10
|
return _Copy.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
Object.defineProperty(exports, "ProBackBtn", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _ProBackBtn.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _Copy = _interopRequireDefault(require("./Copy"));
|
|
20
|
+
var _ProBackBtn = _interopRequireDefault(require("./ProBackBtn"));
|
|
@@ -20,7 +20,6 @@ var _reactSvg = require("react-svg");
|
|
|
20
20
|
var _arrow = _interopRequireDefault(require("../../../assets/arrow.svg"));
|
|
21
21
|
var _components = require("./components");
|
|
22
22
|
var _getEnumLabel = _interopRequireDefault(require("../../../ProEnum/utils/getEnumLabel"));
|
|
23
|
-
var _index = require("../../../index");
|
|
24
23
|
/* eslint-disable react/no-array-index-key */
|
|
25
24
|
|
|
26
25
|
var formatAmount = _utils.tools.formatAmount;
|
|
@@ -387,6 +386,9 @@ var ProHeader = function ProHeader(props) {
|
|
|
387
386
|
var onConfirm = function onConfirm() {
|
|
388
387
|
if (!isConfirmBack) {
|
|
389
388
|
onBack && onBack();
|
|
389
|
+
if (!onBack) {
|
|
390
|
+
window.history.back();
|
|
391
|
+
}
|
|
390
392
|
return false;
|
|
391
393
|
}
|
|
392
394
|
_antd.Modal.confirm((0, _objectSpread2.default)({
|
|
@@ -417,7 +419,7 @@ var ProHeader = function ProHeader(props) {
|
|
|
417
419
|
}),
|
|
418
420
|
children: (0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
419
421
|
size: backState ? 4 : 0,
|
|
420
|
-
children: [backState ? (0, _jsxRuntime.jsx)(
|
|
422
|
+
children: [backState ? (0, _jsxRuntime.jsx)(_components.ProBackBtn, {
|
|
421
423
|
onBack: onConfirm
|
|
422
424
|
}) : null, (0, _jsxRuntime.jsx)(_antd.Breadcrumb, {
|
|
423
425
|
separator: ">",
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
@import '../components/ProBackBtn/style/index';
|
|
2
|
+
|
|
1
3
|
.pro-header {
|
|
2
4
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
3
|
-
padding : var(--zaui-space-size-
|
|
5
|
+
padding : calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) + var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1)) 0 0 0;
|
|
4
6
|
|
|
5
7
|
&.pro-header-no-back {
|
|
6
8
|
.pro-header-top {
|
|
7
9
|
padding-left: 0;
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
.pro-header-left {
|
|
13
|
+
&.pro-header-left-space {
|
|
14
|
+
margin-left: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
&.pro-header-no-describe {
|
|
12
21
|
box-shadow : none;
|
|
13
|
-
margin-bottom: var(--zaui-space-size-md
|
|
22
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
14
23
|
|
|
15
24
|
.pro-header-title,
|
|
16
25
|
.pro-header-top {
|
|
@@ -21,7 +30,7 @@
|
|
|
21
30
|
|
|
22
31
|
&.pro-header-fixed.pro-header-no-describe {
|
|
23
32
|
.pro-header-top {
|
|
24
|
-
padding-bottom:
|
|
33
|
+
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
36
|
|
|
@@ -111,7 +120,7 @@
|
|
|
111
120
|
display : flex;
|
|
112
121
|
justify-content: space-between;
|
|
113
122
|
align-items : center;
|
|
114
|
-
margin-bottom : var(--zaui-space-size-sm
|
|
123
|
+
margin-bottom : calc(var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1));
|
|
115
124
|
padding : 0 var(--zaui-space-size-md, 16px);
|
|
116
125
|
|
|
117
126
|
.pro-header-left {
|
|
@@ -265,7 +274,7 @@
|
|
|
265
274
|
li {
|
|
266
275
|
margin-right : 52px;
|
|
267
276
|
margin-top : 4px;
|
|
268
|
-
margin-bottom:
|
|
277
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
269
278
|
|
|
270
279
|
&:last-child {
|
|
271
280
|
margin-right: 0;
|
|
@@ -303,9 +312,9 @@
|
|
|
303
312
|
.pro-header-describe {
|
|
304
313
|
display : flex;
|
|
305
314
|
flex-wrap : wrap;
|
|
306
|
-
font-size : 14px;
|
|
315
|
+
font-size : var(--zaui-font-size, 14px);
|
|
307
316
|
padding : 0 var(--zaui-space-size-md, 16px);
|
|
308
|
-
padding-bottom:
|
|
317
|
+
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
|
|
309
318
|
|
|
310
319
|
li {
|
|
311
320
|
margin-left: var(--zaui-space-card, 32px);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ProTableValueType } from '../../propsType';
|
|
3
2
|
interface Props {
|
|
4
|
-
valueType?:
|
|
5
|
-
|
|
3
|
+
valueType?: string;
|
|
4
|
+
node?: any;
|
|
6
5
|
value?: any;
|
|
7
|
-
|
|
6
|
+
currentValue?: any;
|
|
8
7
|
copyable?: boolean;
|
|
8
|
+
originalTip?: boolean;
|
|
9
9
|
ellipsis?: any;
|
|
10
10
|
width?: number | string;
|
|
11
|
-
|
|
11
|
+
originalValue?: any;
|
|
12
12
|
}
|
|
13
13
|
declare const RenderColumn: FC<Props>;
|
|
14
14
|
export default RenderColumn;
|