@zat-design/sisyphus-react 3.4.1 → 3.4.2-beta.2
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 +52 -123
- package/es/ProConfigProvider/index.js +8 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/index.js +6 -4
- package/es/ProEnum/style/index.less +4 -3
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/base/InputNumber/index.js +3 -0
- package/es/ProForm/components/combination/Group/index.js +19 -2
- package/es/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/es/ProForm/components/combination/Group/style/index.less +7 -4
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +15 -23
- package/es/ProForm/components/render/Render.js +24 -16
- package/es/ProForm/components/render/RenderFields.d.ts +1 -0
- package/es/ProForm/components/render/RenderFields.js +4 -2
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +6 -4
- package/es/ProForm/propsType.d.ts +2 -0
- package/es/ProForm/utils/index.d.ts +2 -0
- package/es/ProForm/utils/index.js +14 -13
- package/es/ProIcon/config/index.d.ts +4 -0
- package/es/ProIcon/config/index.js +199 -0
- package/es/ProIcon/index.js +77 -31
- package/es/ProIcon/propsTypes.d.ts +23 -1
- package/es/ProIcon/symbolIcon.js +1 -1
- package/es/ProLayout/components/Layout/Menu/style/index.less +1 -1
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/es/ProLayout/components/ProCollapse/index.js +3 -0
- package/es/ProLayout/components/ProCollapse/style/index.less +19 -4
- package/es/ProLayout/components/ProHeader/style/index.less +2 -2
- package/es/ProLayout/style/index.less +4 -4
- package/es/ProTable/style/index.less +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/{lib → es/ProTree/components}/ProTreeSelect/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +10 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/style/components.less +0 -1
- 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 +8 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/index.js +6 -4
- package/lib/ProEnum/style/index.less +4 -3
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/base/InputNumber/index.js +3 -0
- package/lib/ProForm/components/combination/Group/index.js +18 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/lib/ProForm/components/combination/Group/style/index.less +7 -4
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -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 +15 -23
- package/lib/ProForm/components/render/Render.js +23 -15
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
- package/lib/ProForm/components/render/RenderFields.js +4 -2
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +5 -3
- package/lib/ProForm/propsType.d.ts +2 -0
- package/lib/ProForm/utils/index.d.ts +2 -0
- package/lib/ProForm/utils/index.js +14 -13
- package/lib/ProIcon/config/index.d.ts +4 -0
- package/lib/ProIcon/config/index.js +205 -0
- package/lib/ProIcon/index.js +77 -31
- package/lib/ProIcon/propsTypes.d.ts +23 -1
- package/lib/ProIcon/symbolIcon.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/style/index.less +1 -1
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/lib/ProLayout/components/ProCollapse/index.js +3 -0
- package/lib/ProLayout/components/ProCollapse/style/index.less +19 -4
- package/lib/ProLayout/components/ProHeader/style/index.less +2 -2
- package/lib/ProLayout/style/index.less +4 -4
- package/lib/ProTable/style/index.less +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/{es → lib/ProTree/components}/ProTreeSelect/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +10 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/style/components.less +0 -1
- 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/{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
package/dist/index.esm.css
CHANGED
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
position: fixed;
|
|
561
561
|
top: 48px;
|
|
562
562
|
left: 0;
|
|
563
|
-
z-index:
|
|
563
|
+
z-index: 99;
|
|
564
564
|
width: 48px;
|
|
565
565
|
height: 100vh;
|
|
566
566
|
min-height: 100%;
|
|
@@ -668,8 +668,18 @@
|
|
|
668
668
|
width: 12px;
|
|
669
669
|
margin-right: 0;
|
|
670
670
|
}
|
|
671
|
-
.pro-collapse {
|
|
672
|
-
|
|
671
|
+
.pro-collapse.pro-collapse-card {
|
|
672
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
673
|
+
}
|
|
674
|
+
.pro-collapse.pro-collapse-card.pro-collapse-no-title .pro-collapse-content {
|
|
675
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
676
|
+
}
|
|
677
|
+
.pro-collapse.pro-collapse-card .ant-collapse-header {
|
|
678
|
+
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
679
|
+
}
|
|
680
|
+
.pro-collapse.pro-collapse-card .pro-collapse-content {
|
|
681
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
682
|
+
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
673
683
|
}
|
|
674
684
|
.pro-collapse.pro-collapse-no-title .ant-collapse-header {
|
|
675
685
|
display: none !important;
|
|
@@ -698,7 +708,6 @@
|
|
|
698
708
|
}
|
|
699
709
|
.pro-collapse .ant-collapse-content-box {
|
|
700
710
|
padding: 0;
|
|
701
|
-
background: var(--zaui-base-bg, #ffffff);
|
|
702
711
|
}
|
|
703
712
|
.pro-collapse .ant-collapse-content-box .pro-collapse-content {
|
|
704
713
|
padding: var(--zaui-space-size-md, 16px);
|
|
@@ -726,7 +735,7 @@
|
|
|
726
735
|
width: 4px;
|
|
727
736
|
height: 14px;
|
|
728
737
|
background: var(--zaui-brand);
|
|
729
|
-
border-radius: var(--zaui-border-radius-card,
|
|
738
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
730
739
|
-webkit-transform: translateY(-50%);
|
|
731
740
|
transform: translateY(-50%);
|
|
732
741
|
content: '';
|
|
@@ -787,7 +796,7 @@
|
|
|
787
796
|
width: 4px;
|
|
788
797
|
height: 14px;
|
|
789
798
|
background: var(--zaui-brand);
|
|
790
|
-
border-radius: var(--zaui-border-radius-card,
|
|
799
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
791
800
|
-webkit-transform: translateY(-50%);
|
|
792
801
|
transform: translateY(-50%);
|
|
793
802
|
content: '';
|
|
@@ -894,7 +903,7 @@
|
|
|
894
903
|
line-height: 16px;
|
|
895
904
|
white-space: pre;
|
|
896
905
|
background: var(--ant-primary-1, #e6f4ff);
|
|
897
|
-
border-radius: var(--zaui-border-radius-card,
|
|
906
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
898
907
|
}
|
|
899
908
|
.pro-header .pro-header-title {
|
|
900
909
|
padding: 0 var(--zaui-space-size-md, 16px);
|
|
@@ -1011,7 +1020,7 @@
|
|
|
1011
1020
|
font-style: initial;
|
|
1012
1021
|
line-height: 24px;
|
|
1013
1022
|
background: var(--ant-primary-1, #e6f4ff);
|
|
1014
|
-
border-radius: var(--zaui-border-radius,
|
|
1023
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1015
1024
|
}
|
|
1016
1025
|
.pro-header .pro-header-top .pro-header-left ul li.hidden {
|
|
1017
1026
|
display: none;
|
|
@@ -1209,7 +1218,7 @@
|
|
|
1209
1218
|
}
|
|
1210
1219
|
.pro-layout.pro-layout-light .pro-layout-menu-fold-list li.active::before {
|
|
1211
1220
|
content: '';
|
|
1212
|
-
border-radius: var(--zaui-border-radius,
|
|
1221
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1213
1222
|
background-color: var(--zaui-brand, #006aff);
|
|
1214
1223
|
height: 38px;
|
|
1215
1224
|
position: absolute;
|
|
@@ -1223,7 +1232,7 @@
|
|
|
1223
1232
|
}
|
|
1224
1233
|
.pro-layout.pro-layout-light .pro-layout-menu-fold-list li:hover::before {
|
|
1225
1234
|
content: '';
|
|
1226
|
-
border-radius: var(--zaui-border-radius,
|
|
1235
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1227
1236
|
background-color: var(--zaui-brand, #006aff);
|
|
1228
1237
|
height: 38px;
|
|
1229
1238
|
position: absolute;
|
|
@@ -1236,7 +1245,7 @@
|
|
|
1236
1245
|
color: var(--zaui-text, #343434);
|
|
1237
1246
|
}
|
|
1238
1247
|
.pro-layout.pro-layout-light .pro-layout-menu-fold-list li.active {
|
|
1239
|
-
border-radius: var(--zaui-border-radius,
|
|
1248
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1240
1249
|
}
|
|
1241
1250
|
.pro-layout.pro-layout-light .pro-layout-menu-collapsed {
|
|
1242
1251
|
position: relative;
|
|
@@ -1279,7 +1288,7 @@
|
|
|
1279
1288
|
.pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item:hover:before,
|
|
1280
1289
|
.pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-submenu-title:hover:before {
|
|
1281
1290
|
content: '';
|
|
1282
|
-
border-radius: var(--zaui-border-radius,
|
|
1291
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1283
1292
|
background-color: var(--zaui-brand, #006aff);
|
|
1284
1293
|
opacity: 0.08;
|
|
1285
1294
|
height: 38px;
|
|
@@ -1651,7 +1660,7 @@
|
|
|
1651
1660
|
margin-left: -8px;
|
|
1652
1661
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
1653
1662
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
1654
|
-
border-radius: var(--zaui-border-radius,
|
|
1663
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1655
1664
|
}
|
|
1656
1665
|
.pro-table .ant-table-body .varied-cell.empty-cell {
|
|
1657
1666
|
width: 24.5px;
|
|
@@ -1868,7 +1877,7 @@
|
|
|
1868
1877
|
.pro-table .ant-pagination .ant-pagination-item-active a {
|
|
1869
1878
|
color: #ffffff;
|
|
1870
1879
|
background: var(--zaui-brand, #006aff) !important;
|
|
1871
|
-
border-radius: var(--zaui-border-radius,
|
|
1880
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1872
1881
|
}
|
|
1873
1882
|
.pro-table .pro-table-footer.no-page {
|
|
1874
1883
|
margin-top: var(--zaui-space-size-md, 16px);
|
|
@@ -2297,6 +2306,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2297
2306
|
margin-inline-start: -1px;
|
|
2298
2307
|
border-start-start-radius: 0;
|
|
2299
2308
|
border-end-start-radius: 0;
|
|
2309
|
+
padding: 0 12px;
|
|
2310
|
+
background-color: #fff;
|
|
2311
|
+
cursor: default;
|
|
2300
2312
|
}
|
|
2301
2313
|
.pro-group .ant-space-compact .pro-modal-select {
|
|
2302
2314
|
margin-left: -1px;
|
|
@@ -2319,13 +2331,13 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2319
2331
|
}
|
|
2320
2332
|
.pro-group .ant-space-compact .ant-input-affix-wrapper:first-child,
|
|
2321
2333
|
.pro-group .ant-space-compact .ant-select:first-child {
|
|
2322
|
-
border-start-start-radius: var(--zaui-border-radius,
|
|
2323
|
-
border-end-start-radius: var(--zaui-border-radius,
|
|
2334
|
+
border-start-start-radius: var(--zaui-border-radius, 8px);
|
|
2335
|
+
border-end-start-radius: var(--zaui-border-radius, 8px);
|
|
2324
2336
|
}
|
|
2325
2337
|
.pro-group .ant-space-compact .ant-input-affix-wrapper:last-child,
|
|
2326
2338
|
.pro-group .ant-space-compact .ant-select:last-child {
|
|
2327
|
-
border-start-end-radius: var(--zaui-border-radius,
|
|
2328
|
-
border-end-end-radius: var(--zaui-border-radius,
|
|
2339
|
+
border-start-end-radius: var(--zaui-border-radius, 8px);
|
|
2340
|
+
border-end-end-radius: var(--zaui-border-radius, 8px);
|
|
2329
2341
|
}
|
|
2330
2342
|
.pro-group .ant-space-compact .ant-select .ant-select-selector {
|
|
2331
2343
|
border-start-end-radius: 0;
|
|
@@ -2334,12 +2346,12 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2334
2346
|
border-end-start-radius: 0;
|
|
2335
2347
|
}
|
|
2336
2348
|
.pro-group .ant-space-compact .ant-select:first-child .ant-select-selector {
|
|
2337
|
-
border-start-start-radius: var(--zaui-border-radius,
|
|
2338
|
-
border-end-start-radius: var(--zaui-border-radius,
|
|
2349
|
+
border-start-start-radius: var(--zaui-border-radius, 8px);
|
|
2350
|
+
border-end-start-radius: var(--zaui-border-radius, 8px);
|
|
2339
2351
|
}
|
|
2340
2352
|
.pro-group .ant-space-compact .ant-select:last-child .ant-select-selector {
|
|
2341
|
-
border-start-end-radius: var(--zaui-border-radius,
|
|
2342
|
-
border-end-end-radius: var(--zaui-border-radius,
|
|
2353
|
+
border-start-end-radius: var(--zaui-border-radius, 8px);
|
|
2354
|
+
border-end-end-radius: var(--zaui-border-radius, 8px);
|
|
2343
2355
|
}
|
|
2344
2356
|
.pro-group .ant-space-compact .ant-input-affix-wrapper-status-error ~ .group-separator {
|
|
2345
2357
|
color: var(--ant-error-color);
|
|
@@ -2749,7 +2761,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2749
2761
|
}
|
|
2750
2762
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box {
|
|
2751
2763
|
background: #F8F9FA;
|
|
2752
|
-
border-radius: var(--zaui-border-radius,
|
|
2764
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
2753
2765
|
padding: var(--zaui-space-size-sm, 8px);
|
|
2754
2766
|
}
|
|
2755
2767
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box .ant-upload.ant-upload-drag {
|
|
@@ -2920,7 +2932,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2920
2932
|
text-align: center;
|
|
2921
2933
|
line-height: 32px;
|
|
2922
2934
|
background: #FFFFFF;
|
|
2923
|
-
border-radius: var(--zaui-border-radius,
|
|
2935
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
2924
2936
|
border: 1px solid #DCDCDC;
|
|
2925
2937
|
}
|
|
2926
2938
|
.pro-upload .pro-upload-image .file-item-image {
|
|
@@ -3084,93 +3096,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3084
3096
|
.proupload-modal-preview .ant-modal {
|
|
3085
3097
|
width: 600px;
|
|
3086
3098
|
}
|
|
3087
|
-
.pro-tree-select .ant-select-selector .check-mark-icon {
|
|
3088
|
-
display: none;
|
|
3089
|
-
}
|
|
3090
|
-
.pro-tree-select .ant-select.ant-select-single.ant-select-show-arrow:not(.ant-select-show-search).ant-select-open .ant-select-arrow {
|
|
3091
|
-
-webkit-transition: -webkit-transform 300ms ease-in-out;
|
|
3092
|
-
transition: -webkit-transform 300ms ease-in-out;
|
|
3093
|
-
transition: transform 300ms ease-in-out;
|
|
3094
|
-
transition: transform 300ms ease-in-out, -webkit-transform 300ms ease-in-out;
|
|
3095
|
-
-webkit-transform: rotate(180deg);
|
|
3096
|
-
transform: rotate(180deg);
|
|
3097
|
-
}
|
|
3098
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown .highlight-search-text {
|
|
3099
|
-
color: var(--zaui-brand, #006aff);
|
|
3100
|
-
}
|
|
3101
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown .ant-select-tree-list-holder-inner {
|
|
3102
|
-
position: relative!important;
|
|
3103
|
-
}
|
|
3104
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.ant-tree-select-dropdown {
|
|
3105
|
-
width: auto!important;
|
|
3106
|
-
padding: 0px;
|
|
3107
|
-
}
|
|
3108
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.singal-tree .ant-select-tree .ant-select-tree-treenode,
|
|
3109
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-treenode {
|
|
3110
|
-
padding-top: var(--zaui-space-size-xs);
|
|
3111
|
-
padding-bottom: var(--zaui-space-size-xs);
|
|
3112
|
-
}
|
|
3113
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.singal-tree .highlight,
|
|
3114
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .highlight {
|
|
3115
|
-
color: red;
|
|
3116
|
-
}
|
|
3117
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-treenode {
|
|
3118
|
-
position: relative;
|
|
3119
|
-
padding-right: 50px;
|
|
3120
|
-
padding-left: 7px;
|
|
3121
|
-
z-index: 0;
|
|
3122
|
-
}
|
|
3123
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-treenode:after {
|
|
3124
|
-
content: '';
|
|
3125
|
-
display: none;
|
|
3126
|
-
position: absolute;
|
|
3127
|
-
z-index: 0;
|
|
3128
|
-
left: 0;
|
|
3129
|
-
width: 100%;
|
|
3130
|
-
height: 100%;
|
|
3131
|
-
background-color: var(--zaui-brand, #006aff);
|
|
3132
|
-
opacity: 0.1;
|
|
3133
|
-
}
|
|
3134
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-treenode.ant-select-tree-treenode-selected:after {
|
|
3135
|
-
display: block;
|
|
3136
|
-
}
|
|
3137
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-node-content-wrapper {
|
|
3138
|
-
background-color: transparent;
|
|
3139
|
-
}
|
|
3140
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected .check-mark-icon {
|
|
3141
|
-
display: block;
|
|
3142
|
-
}
|
|
3143
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .ant-select-tree-treenode:hover {
|
|
3144
|
-
background-color: #f5f5f5;
|
|
3145
|
-
}
|
|
3146
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.signal-tree .ant-select-tree .check-option-text .check-mark-icon {
|
|
3147
|
-
position: absolute;
|
|
3148
|
-
right: -34px;
|
|
3149
|
-
top: 2px;
|
|
3150
|
-
display: none;
|
|
3151
|
-
color: var(--zaui-list-item-selected-bg);
|
|
3152
|
-
}
|
|
3153
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-treenode {
|
|
3154
|
-
padding-left: 7px;
|
|
3155
|
-
}
|
|
3156
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-treenode:hover {
|
|
3157
|
-
background-color: #f5f5f5;
|
|
3158
|
-
}
|
|
3159
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-node-content-wrapper {
|
|
3160
|
-
padding-right: var(--zaui-space-size-md);
|
|
3161
|
-
}
|
|
3162
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-node-content-wrapper:hover {
|
|
3163
|
-
background-color: transparent;
|
|
3164
|
-
}
|
|
3165
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.checkable-tree .ant-select-tree .ant-select-tree-checkbox {
|
|
3166
|
-
margin-top: var(--zaui-space-size-xs);
|
|
3167
|
-
-webkit-align-self: stretch;
|
|
3168
|
-
-ms-flex-item-align: stretch;
|
|
3169
|
-
align-self: stretch;
|
|
3170
|
-
}
|
|
3171
|
-
.pro-tree-select-drop-down-container.ant-select-dropdown.ten-count-tree-node .ant-select-tree-switcher-noop {
|
|
3172
|
-
width: var(--zaui-space-size-xs);
|
|
3173
|
-
}
|
|
3174
3099
|
.pro-tree-modal-container .ant-modal-content .ant-modal-body {
|
|
3175
3100
|
max-height: 498px;
|
|
3176
3101
|
}
|
|
@@ -3228,7 +3153,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3228
3153
|
font-size: var(--zaui-font-size, 14px);
|
|
3229
3154
|
line-height: 20px;
|
|
3230
3155
|
border: 1px solid #e6e6e6;
|
|
3231
|
-
border-radius: var(--zaui-border-radius,
|
|
3156
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
3232
3157
|
/* 修改滚动条样式 */
|
|
3233
3158
|
}
|
|
3234
3159
|
.pro-tree-modal-box:first-child {
|
|
@@ -3447,6 +3372,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3447
3372
|
.pro-transfer-right .checked-item {
|
|
3448
3373
|
margin: var(--zaui-space-size-sm, 8px) 0;
|
|
3449
3374
|
}
|
|
3375
|
+
.pro-transfer-right .checked-item.dragable .ant-tag > span:first-child {
|
|
3376
|
+
padding: 8px 0;
|
|
3377
|
+
cursor: move;
|
|
3378
|
+
}
|
|
3450
3379
|
.pro-transfer-right .checked-item:first-child {
|
|
3451
3380
|
margin-top: 0;
|
|
3452
3381
|
}
|
|
@@ -3470,7 +3399,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3470
3399
|
font-size: var(--zaui-font-size, 14px);
|
|
3471
3400
|
background: #f2f2f2;
|
|
3472
3401
|
border: none;
|
|
3473
|
-
border-radius: var(--zaui-border-radius,
|
|
3402
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
3474
3403
|
}
|
|
3475
3404
|
.pro-transfer-right .checked-item .ant-tag .pro-tooltip {
|
|
3476
3405
|
-webkit-box-flex: 1;
|
|
@@ -4056,7 +3985,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4056
3985
|
}
|
|
4057
3986
|
.pro-edit-table .is-cell .ant-form-item .ant-form-item-row .ant-form-item-control .ant-form-item-control-input:hover {
|
|
4058
3987
|
border: 1px solid #DEE0E3;
|
|
4059
|
-
border-radius: var(--zaui-border-radius,
|
|
3988
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
4060
3989
|
text-indent: 5px;
|
|
4061
3990
|
}
|
|
4062
3991
|
.pro-edit-table .drag-wrapper {
|
|
@@ -4267,7 +4196,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4267
4196
|
}
|
|
4268
4197
|
.pro-edit-label .anticon-edit:active {
|
|
4269
4198
|
background: #E3E8F0;
|
|
4270
|
-
border-radius: var(--zaui-border-radius-card,
|
|
4199
|
+
border-radius: var(--zaui-border-radius-card, 4px);
|
|
4271
4200
|
}
|
|
4272
4201
|
.pro-edit-label.pro-edit-label-small {
|
|
4273
4202
|
height: 24px;
|
|
@@ -4386,7 +4315,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4386
4315
|
width: 4px;
|
|
4387
4316
|
height: 14px;
|
|
4388
4317
|
background: var(--zaui-brand, #006aff);
|
|
4389
|
-
border-radius: var(zaui-border-radius-card,
|
|
4318
|
+
border-radius: var(zaui-border-radius-card, 4px);
|
|
4390
4319
|
}
|
|
4391
4320
|
.pro-theme-prd-tools-drawer .pro-theme-color {
|
|
4392
4321
|
display: -webkit-box;
|
|
@@ -4938,8 +4867,8 @@ input[type='button'] {
|
|
|
4938
4867
|
--zaui-table-nested-bg: #fafcfe;
|
|
4939
4868
|
--zaui-contract-bg: #fffaa1;
|
|
4940
4869
|
--zaui-form-label-width: 130px;
|
|
4941
|
-
--zaui-border-radius:
|
|
4942
|
-
--zaui-border-radius-card:
|
|
4870
|
+
--zaui-border-radius: 8px;
|
|
4871
|
+
--zaui-border-radius-card: 4px;
|
|
4943
4872
|
--zaui-font-size-title: 16px;
|
|
4944
4873
|
--zaui-font-size-card-title: var(--zaui-font-size-title);
|
|
4945
4874
|
--zaui-font-size: 14px;
|
|
@@ -5306,7 +5235,7 @@ input[type='button'] {
|
|
|
5306
5235
|
line-height: 32px;
|
|
5307
5236
|
background-color: #f7f9fa;
|
|
5308
5237
|
border: 0;
|
|
5309
|
-
border-radius: var(--zaui-border-radius,
|
|
5238
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
5310
5239
|
}
|
|
5311
5240
|
.ant-pagination .ant-pagination-item a {
|
|
5312
5241
|
color: var(--zaui-text, #464646);
|
|
@@ -5320,7 +5249,7 @@ input[type='button'] {
|
|
|
5320
5249
|
.ant-pagination .ant-pagination-item-active a {
|
|
5321
5250
|
color: #fff;
|
|
5322
5251
|
background: var(--zaui-brand, #006aff);
|
|
5323
|
-
border-radius: var(--zaui-border-radius,
|
|
5252
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
5324
5253
|
}
|
|
5325
5254
|
.ant-pagination .ant-pagination-item-active:focus-visible a,
|
|
5326
5255
|
.ant-pagination .ant-pagination-item-active:hover a {
|
|
@@ -5335,7 +5264,7 @@ input[type='button'] {
|
|
|
5335
5264
|
line-height: 30px;
|
|
5336
5265
|
background-color: #f7f9fa;
|
|
5337
5266
|
border: 0;
|
|
5338
|
-
border-radius: var(--zaui-border-radius,
|
|
5267
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
5339
5268
|
}
|
|
5340
5269
|
.ant-pagination .ant-pagination-prev svg,
|
|
5341
5270
|
.ant-pagination .ant-pagination-next svg {
|
|
@@ -5353,7 +5282,7 @@ input[type='button'] {
|
|
|
5353
5282
|
line-height: 32px;
|
|
5354
5283
|
background-color: #fafafa;
|
|
5355
5284
|
border: 0;
|
|
5356
|
-
border-radius: var(--zaui-border-radius,
|
|
5285
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
5357
5286
|
}
|
|
5358
5287
|
.ant-pagination .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
|
|
5359
5288
|
color: var(--zaui-text, #464646);
|
|
@@ -5366,7 +5295,7 @@ input[type='button'] {
|
|
|
5366
5295
|
position: relative;
|
|
5367
5296
|
background-color: #fafafa;
|
|
5368
5297
|
border: 0;
|
|
5369
|
-
border-radius: var(--zaui-border-radius,
|
|
5298
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
5370
5299
|
}
|
|
5371
5300
|
.ant-pagination .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
|
|
5372
5301
|
.ant-pagination .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {
|
|
@@ -13,7 +13,14 @@ var initialState = {
|
|
|
13
13
|
ProEnum: {
|
|
14
14
|
dics: {}
|
|
15
15
|
},
|
|
16
|
-
forms: {}
|
|
16
|
+
forms: {},
|
|
17
|
+
ProIcon: {
|
|
18
|
+
mode: 'icon',
|
|
19
|
+
mapList: [{
|
|
20
|
+
type: 'view',
|
|
21
|
+
text: '查看'
|
|
22
|
+
}]
|
|
23
|
+
}
|
|
17
24
|
};
|
|
18
25
|
export var ProConfigContext = /*#__PURE__*/React.createContext({
|
|
19
26
|
state: initialState,
|
|
@@ -202,7 +202,9 @@ export var transformColumns = function transformColumns() {
|
|
|
202
202
|
ellipsis = item.ellipsis,
|
|
203
203
|
key = item.key,
|
|
204
204
|
tooltip = item.tooltip,
|
|
205
|
-
suffix = item.suffix
|
|
205
|
+
suffix = item.suffix,
|
|
206
|
+
before = item.before,
|
|
207
|
+
after = item.after;
|
|
206
208
|
// column设置label时,权重最高
|
|
207
209
|
var columnTitle = label || title;
|
|
208
210
|
if (typeof columnTitle === 'string') {
|
|
@@ -214,7 +216,7 @@ export var transformColumns = function transformColumns() {
|
|
|
214
216
|
resetProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
215
217
|
item.title = _jsxs("span", {
|
|
216
218
|
className: "pro-edit-table-title pro-edit-table-tooltip",
|
|
217
|
-
children: [columnTitle, _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
219
|
+
children: [before, columnTitle, _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
218
220
|
title: tooltipTitle !== null && tooltipTitle !== void 0 ? tooltipTitle : tooltip
|
|
219
221
|
}, resetProps), {}, {
|
|
220
222
|
children: icon ? ( /*#__PURE__*/React.cloneElement(icon, {
|
|
@@ -223,12 +225,12 @@ export var transformColumns = function transformColumns() {
|
|
|
223
225
|
className: "icon-tip",
|
|
224
226
|
src: tipSvg
|
|
225
227
|
})
|
|
226
|
-
})), suffix]
|
|
228
|
+
})), suffix || after]
|
|
227
229
|
});
|
|
228
230
|
} else {
|
|
229
231
|
item.title = _jsxs("span", {
|
|
230
232
|
className: "pro-edit-table-title",
|
|
231
|
-
children: [columnTitle, suffix]
|
|
233
|
+
children: [before, columnTitle, suffix || after]
|
|
232
234
|
});
|
|
233
235
|
}
|
|
234
236
|
}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
padding: var(--zaui-space-size-sm) var(--zaui-space-border);
|
|
43
43
|
line-height: 18px;
|
|
44
44
|
background-color: #f1f3f6ff;
|
|
45
|
+
border: 1px solid transparent;
|
|
45
46
|
cursor: pointer;
|
|
46
47
|
|
|
47
48
|
&::after {
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
border-top-right-radius: var(--zaui-space-size-xs);
|
|
65
66
|
border-bottom-right-radius: var(--zaui-space-size-xs);
|
|
66
67
|
&::after {
|
|
67
|
-
|
|
68
|
+
background: transparent;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|
|
@@ -73,12 +74,12 @@
|
|
|
73
74
|
color: var(--zaui-brand);
|
|
74
75
|
border: 1px solid var(--zaui-brand);
|
|
75
76
|
&::after {
|
|
76
|
-
|
|
77
|
+
background: transparent;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.pro-enum-group-item-disabled-after::after {
|
|
81
|
-
|
|
82
|
+
background: transparent;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
.pro-enum-group-item-disabled {
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["className", "format"];
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { isFunction, isString } from 'lodash';
|
|
8
|
+
import { isFunction, isString, isObject } from 'lodash';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { useProConfig } from '../../../../ProConfigProvider';
|
|
@@ -30,7 +30,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
30
30
|
var viewChildren = null;
|
|
31
31
|
if (!value) {
|
|
32
32
|
viewChildren = null;
|
|
33
|
-
} else if (typeof format === 'string' &&
|
|
33
|
+
} else if (typeof format === 'string' && isObject(value)) {
|
|
34
34
|
viewChildren = value.format(format);
|
|
35
35
|
} else if (isFunction(format)) {
|
|
36
36
|
viewChildren = format(value);
|
|
@@ -73,6 +73,9 @@ var InputNumber = function InputNumber(props) {
|
|
|
73
73
|
},
|
|
74
74
|
parser: function parser(value) {
|
|
75
75
|
var num = Number(value.replace(/[\s,]+/g, ''));
|
|
76
|
+
if (value === '') {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
76
79
|
return Number.isNaN(num) ? value : num.toFixed((props === null || props === void 0 ? void 0 : props.precision) || 2);
|
|
77
80
|
}
|
|
78
81
|
};
|
|
@@ -4,9 +4,11 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
import "antd/es/button/style";
|
|
5
5
|
import _Button from "antd/es/button";
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { useMemo } from 'react';
|
|
9
|
-
import { omit } from 'lodash';
|
|
10
|
+
import { omit, isFunction } from 'lodash';
|
|
11
|
+
import { useDeepCompareEffect, useCounter } from 'ahooks';
|
|
10
12
|
import classnames from 'classnames';
|
|
11
13
|
import RenderFields from '../../render/RenderFields';
|
|
12
14
|
import { insertSeparator } from './utils';
|
|
@@ -19,7 +21,13 @@ var Group = function Group(props) {
|
|
|
19
21
|
space = _props$space === void 0 ? {
|
|
20
22
|
size: 12
|
|
21
23
|
} : _props$space,
|
|
22
|
-
id = props.id
|
|
24
|
+
id = props.id,
|
|
25
|
+
value = props.value,
|
|
26
|
+
onFieldChange = props.onFieldChange;
|
|
27
|
+
var _useCounter = useCounter(0),
|
|
28
|
+
_useCounter2 = _slicedToArray(_useCounter, 2),
|
|
29
|
+
num = _useCounter2[0],
|
|
30
|
+
inc = _useCounter2[1].inc;
|
|
23
31
|
var _ref = ProForm.useFieldProps() || {},
|
|
24
32
|
names = _ref.names,
|
|
25
33
|
name = _ref.name,
|
|
@@ -56,6 +64,15 @@ var Group = function Group(props) {
|
|
|
56
64
|
return ['Radio', 'Checkbox', 'Switch'].includes(item.type);
|
|
57
65
|
})
|
|
58
66
|
}, "".concat(className), className));
|
|
67
|
+
useDeepCompareEffect(function () {
|
|
68
|
+
// 模拟change,初始化不执行onFieldChange
|
|
69
|
+
if (isFunction(onFieldChange) && num >= 1) {
|
|
70
|
+
onFieldChange(value, form.getFieldsValue(), {
|
|
71
|
+
form: form
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
inc();
|
|
75
|
+
}, [value]);
|
|
59
76
|
return _jsx("div", {
|
|
60
77
|
className: _className,
|
|
61
78
|
children: space.compact || (space === null || space === void 0 ? void 0 : space.separator) ? _jsx(_Space.Compact, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RowProps, SpaceProps } from 'antd';
|
|
3
|
+
import { FormInstance } from 'antd/es/form/Form';
|
|
3
4
|
import { ProColumnProps, ProFormOtherProps } from '../../../propsType';
|
|
4
5
|
export interface SpaceType extends SpaceProps {
|
|
5
6
|
/**
|
|
@@ -22,4 +23,7 @@ export interface GroupProps {
|
|
|
22
23
|
value?: any;
|
|
23
24
|
id?: string;
|
|
24
25
|
disabled?: boolean | (() => void);
|
|
26
|
+
onFieldChange?: (value: any[] | null, record: any, { form, }: {
|
|
27
|
+
form: FormInstance;
|
|
28
|
+
}) => any;
|
|
25
29
|
}
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.start-radius() {
|
|
12
|
-
border-start-start-radius: var(--zaui-border-radius,
|
|
13
|
-
border-end-start-radius: var(--zaui-border-radius,
|
|
12
|
+
border-start-start-radius: var(--zaui-border-radius, 8px);
|
|
13
|
+
border-end-start-radius: var(--zaui-border-radius, 8px);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.end-radius() {
|
|
17
|
-
border-start-end-radius: var(--zaui-border-radius,
|
|
18
|
-
border-end-end-radius: var(--zaui-border-radius,
|
|
17
|
+
border-start-end-radius: var(--zaui-border-radius, 8px);
|
|
18
|
+
border-end-end-radius: var(--zaui-border-radius, 8px);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.pro-group {
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
margin-inline-start: -1px;
|
|
75
75
|
border-start-start-radius: 0;
|
|
76
76
|
border-end-start-radius: 0;
|
|
77
|
+
padding: 0 12px;
|
|
78
|
+
background-color: #fff;
|
|
79
|
+
cursor: default;
|
|
77
80
|
}
|
|
78
81
|
.pro-modal-select {
|
|
79
82
|
margin-left: -1px;
|
|
@@ -11,7 +11,7 @@ var _excluded = ["format", "disabled", "foreverTime", "foreverText", "valueType"
|
|
|
11
11
|
_excluded2 = ["mode"];
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import { omit } from 'lodash';
|
|
14
|
+
import { omit, isObject } from 'lodash';
|
|
15
15
|
import moment from 'moment';
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
import { useProConfig } from '../../../../ProConfigProvider';
|
|
@@ -53,7 +53,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
|
53
53
|
onChange = _useControlled2[1];
|
|
54
54
|
var initialConfig = useProConfig('ProTimeLimit');
|
|
55
55
|
var isForever = useMemo(function () {
|
|
56
|
-
if (
|
|
56
|
+
if (isObject(value)) {
|
|
57
57
|
return foreverMoment.format(format) === value.format(format);
|
|
58
58
|
}
|
|
59
59
|
return false;
|
|
@@ -73,6 +73,12 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
|
73
73
|
children: foreverText
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
if (isObject(value)) {
|
|
77
|
+
return _jsx(Container, {
|
|
78
|
+
viewEmpty: viewEmpty,
|
|
79
|
+
children: value.format(format)
|
|
80
|
+
});
|
|
81
|
+
}
|
|
76
82
|
return _jsx(Container, {
|
|
77
83
|
viewEmpty: viewEmpty,
|
|
78
84
|
children: props.value
|
|
@@ -24,7 +24,6 @@ export { default as Container } from './combination/Container';
|
|
|
24
24
|
export { default as ProEnum } from '../../ProEnum';
|
|
25
25
|
export { default as ProSelect } from '../../ProSelect';
|
|
26
26
|
export { default as ProUpload } from '../../ProUpload';
|
|
27
|
-
export { default as ProTreeSelect } from '../../ProTreeSelect';
|
|
28
27
|
export { default as ProTreeModal } from '../../ProTreeModal';
|
|
29
28
|
export { default as ProTree } from '../../ProTree';
|
|
30
29
|
export { default as FormFooter } from './FormFooter';
|
|
@@ -26,7 +26,7 @@ export { default as Container } from './combination/Container';
|
|
|
26
26
|
export { default as ProEnum } from '../../ProEnum';
|
|
27
27
|
export { default as ProSelect } from '../../ProSelect';
|
|
28
28
|
export { default as ProUpload } from '../../ProUpload';
|
|
29
|
-
export { default as ProTreeSelect } from '../../ProTreeSelect';
|
|
29
|
+
// export { default as ProTreeSelect } from '../../ProTreeSelect';
|
|
30
30
|
export { default as ProTreeModal } from '../../ProTreeModal';
|
|
31
31
|
export { default as ProTree } from '../../ProTree';
|
|
32
32
|
// footer组件
|