@zat-design/sisyphus-react 3.2.1 → 3.2.2-beta.1
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 +63 -35
- package/es/ProDrawerForm/style/index.less +59 -59
- package/es/ProEditTable/components/RenderField/index.js +66 -21
- package/es/ProEditTable/index.js +11 -4
- package/es/ProEditTable/propsType.d.ts +11 -1
- package/es/ProForm/components/base/Checkbox/index.d.ts +1 -0
- package/es/ProForm/components/base/Checkbox/index.js +5 -3
- package/es/ProForm/components/base/DatePicker/index.js +3 -2
- package/es/ProForm/components/base/Input/index.js +4 -2
- package/es/ProForm/components/base/Input/propsType.d.ts +1 -0
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -0
- package/es/ProForm/components/base/InputNumber/index.js +5 -3
- package/es/ProForm/components/base/ProCascader/index.js +6 -6
- package/es/ProForm/components/base/Radio/index.d.ts +1 -0
- package/es/ProForm/components/base/Radio/index.js +4 -2
- package/es/ProForm/components/base/RangePicker/index.d.ts +1 -0
- package/es/ProForm/components/base/RangePicker/index.js +5 -3
- package/es/ProForm/components/base/Select/index.d.ts +1 -0
- package/es/ProForm/components/base/Select/index.js +4 -2
- package/es/ProForm/components/base/Switch/index.d.ts +1 -0
- package/es/ProForm/components/base/Switch/index.js +4 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
- package/es/ProForm/components/base/SwitchCheckbox/index.js +4 -2
- package/es/ProForm/components/base/TextArea/index.d.ts +1 -0
- package/es/ProForm/components/base/TextArea/index.js +4 -3
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -0
- package/es/ProForm/components/base/TimePicker/index.js +4 -2
- package/es/ProForm/components/combination/Container/index.js +7 -5
- package/es/ProForm/components/combination/FormList/index.js +6 -5
- package/es/ProForm/components/combination/FormList/style/index.less +15 -22
- package/es/ProForm/components/combination/Group/index.js +6 -3
- package/es/ProForm/components/combination/ProAddressBar/index.js +29 -30
- package/es/ProForm/components/combination/ProCombination/index.js +11 -11
- package/es/ProForm/components/combination/ProModalSelect/index.js +4 -5
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +1 -1
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProNumberRange/index.js +7 -7
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.js +4 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -2
- package/es/ProForm/components/render/Render.js +54 -20
- package/es/ProForm/components/render/RenderFields.d.ts +1 -0
- package/es/ProForm/components/render/RenderFields.js +12 -11
- package/es/ProForm/index.js +5 -2
- package/es/ProForm/propsType.d.ts +1 -0
- package/es/ProForm/style/index.less +49 -42
- package/es/ProForm/utils/contrastOriginal.d.ts +10 -1
- package/es/ProForm/utils/contrastOriginal.js +15 -18
- package/es/ProForm/utils/useChanged.d.ts +15 -1
- package/es/ProForm/utils/useChanged.js +27 -8
- package/es/ProLayout/components/ProFooter/style/index.less +8 -7
- package/es/ProLayout/components/ProHeader/index.js +1 -0
- package/es/ProLayout/components/ProHeader/style/index.less +7 -0
- package/es/ProSelect/index.js +6 -3
- package/es/ProStep/components/Item/index.js +1 -4
- package/es/ProTable/components/RenderColumn/index.js +1 -1
- package/es/ProTable/style/index.less +6 -0
- package/es/ProTabs/style/index.less +16 -17
- package/es/ProThemeTools/component/PrdTools/index.js +21 -20
- package/es/ProThemeTools/index.js +2 -1
- package/es/ProTree/components/Tree.js +43 -42
- package/es/ProTree/style/index.less +0 -6
- package/es/ProTreeModal/index.js +14 -3
- package/es/ProTreeSelect/index.js +3 -2
- package/es/locale/en_US.d.ts +15 -1
- package/es/locale/en_US.js +17 -3
- package/es/locale/zh_CN.d.ts +15 -1
- package/es/locale/zh_CN.js +15 -1
- package/es/style/theme/antd.less +126 -117
- package/lib/ProDrawerForm/style/index.less +59 -59
- package/lib/ProEditTable/components/RenderField/index.js +61 -20
- package/lib/ProEditTable/index.js +12 -4
- package/lib/ProEditTable/propsType.d.ts +11 -1
- package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -0
- package/lib/ProForm/components/base/Checkbox/index.js +5 -3
- package/lib/ProForm/components/base/DatePicker/index.js +3 -2
- package/lib/ProForm/components/base/Input/index.js +4 -2
- package/lib/ProForm/components/base/Input/propsType.d.ts +1 -0
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -0
- package/lib/ProForm/components/base/InputNumber/index.js +5 -3
- package/lib/ProForm/components/base/ProCascader/index.js +6 -6
- package/lib/ProForm/components/base/Radio/index.d.ts +1 -0
- package/lib/ProForm/components/base/Radio/index.js +4 -2
- package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -0
- package/lib/ProForm/components/base/RangePicker/index.js +5 -3
- package/lib/ProForm/components/base/Select/index.d.ts +1 -0
- package/lib/ProForm/components/base/Select/index.js +4 -2
- package/lib/ProForm/components/base/Switch/index.d.ts +1 -0
- package/lib/ProForm/components/base/Switch/index.js +4 -2
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +4 -2
- package/lib/ProForm/components/base/TextArea/index.d.ts +1 -0
- package/lib/ProForm/components/base/TextArea/index.js +4 -3
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -0
- package/lib/ProForm/components/base/TimePicker/index.js +4 -2
- package/lib/ProForm/components/combination/Container/index.js +7 -5
- package/lib/ProForm/components/combination/FormList/index.js +6 -5
- package/lib/ProForm/components/combination/FormList/style/index.less +15 -22
- package/lib/ProForm/components/combination/Group/index.js +6 -3
- package/lib/ProForm/components/combination/ProAddressBar/index.js +29 -30
- package/lib/ProForm/components/combination/ProCombination/index.js +11 -11
- package/lib/ProForm/components/combination/ProModalSelect/index.js +4 -5
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +1 -1
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProNumberRange/index.js +7 -7
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +4 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -2
- package/lib/ProForm/components/render/Render.js +53 -21
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
- package/lib/ProForm/components/render/RenderFields.js +12 -11
- package/lib/ProForm/index.js +5 -2
- package/lib/ProForm/propsType.d.ts +1 -0
- package/lib/ProForm/style/index.less +49 -42
- package/lib/ProForm/utils/contrastOriginal.d.ts +10 -1
- package/lib/ProForm/utils/contrastOriginal.js +14 -17
- package/lib/ProForm/utils/useChanged.d.ts +15 -1
- package/lib/ProForm/utils/useChanged.js +27 -8
- package/lib/ProLayout/components/ProFooter/style/index.less +8 -7
- package/lib/ProLayout/components/ProHeader/index.js +1 -0
- package/lib/ProLayout/components/ProHeader/style/index.less +7 -0
- package/lib/ProSelect/index.js +6 -3
- package/lib/ProStep/components/Item/index.js +1 -4
- package/lib/ProTable/components/RenderColumn/index.js +1 -1
- package/lib/ProTable/style/index.less +6 -0
- package/lib/ProTabs/style/index.less +16 -17
- package/lib/ProThemeTools/component/PrdTools/index.js +21 -20
- package/lib/ProThemeTools/index.js +2 -1
- package/lib/ProTree/components/Tree.js +42 -41
- package/lib/ProTree/style/index.less +0 -6
- package/lib/ProTreeModal/index.js +14 -3
- package/lib/ProTreeSelect/index.js +3 -2
- package/lib/locale/en_US.d.ts +15 -1
- package/lib/locale/en_US.js +17 -3
- package/lib/locale/zh_CN.d.ts +15 -1
- package/lib/locale/zh_CN.js +15 -1
- package/lib/style/theme/antd.less +126 -117
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -789,14 +789,14 @@
|
|
|
789
789
|
}
|
|
790
790
|
.pro-footer {
|
|
791
791
|
position: fixed;
|
|
792
|
-
bottom: 0;
|
|
793
792
|
right: 0;
|
|
793
|
+
bottom: 0;
|
|
794
|
+
z-index: 101;
|
|
794
795
|
width: 100%;
|
|
795
|
-
padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
|
|
796
|
+
padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
|
|
796
797
|
background: var(--zaui-base-bg, #ffffff);
|
|
797
798
|
-webkit-box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
|
|
798
799
|
box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
|
|
799
|
-
z-index: 101;
|
|
800
800
|
}
|
|
801
801
|
.back-button-container.ant-btn {
|
|
802
802
|
color: var(--zaui-text);
|
|
@@ -819,6 +819,9 @@
|
|
|
819
819
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
820
820
|
padding: 24px 0 0 0;
|
|
821
821
|
}
|
|
822
|
+
.pro-header.pro-header-no-back.pro-header-has-describe .pro-header-top {
|
|
823
|
+
padding-left: var(--zaui-space-size-md, 16px);
|
|
824
|
+
}
|
|
822
825
|
.pro-header.pro-header-no-back .pro-header-top {
|
|
823
826
|
padding-left: 0;
|
|
824
827
|
}
|
|
@@ -905,6 +908,10 @@
|
|
|
905
908
|
}
|
|
906
909
|
.pro-header .ant-breadcrumb .ant-breadcrumb-link {
|
|
907
910
|
font-size: var(--zaui-font-size-xl, 18px);
|
|
911
|
+
display: -webkit-inline-box;
|
|
912
|
+
display: -webkit-inline-flex;
|
|
913
|
+
display: -ms-inline-flexbox;
|
|
914
|
+
display: inline-flex;
|
|
908
915
|
}
|
|
909
916
|
.pro-header .ant-breadcrumb .ant-breadcrumb-separator {
|
|
910
917
|
font-weight: 500;
|
|
@@ -1509,7 +1516,7 @@
|
|
|
1509
1516
|
width: 48px;
|
|
1510
1517
|
}
|
|
1511
1518
|
.pro-tabs .ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
|
|
1512
|
-
padding: 0;
|
|
1519
|
+
padding: 0 !important;
|
|
1513
1520
|
}
|
|
1514
1521
|
.pro-tabs .ant-tabs-top > .ant-tabs-nav::before,
|
|
1515
1522
|
.pro-tabs .ant-tabs-bottom > .ant-tabs-nav::before,
|
|
@@ -1529,7 +1536,7 @@
|
|
|
1529
1536
|
}
|
|
1530
1537
|
.pro-tabs .pro-tabs-card {
|
|
1531
1538
|
width: 200px;
|
|
1532
|
-
padding:
|
|
1539
|
+
padding: calc(9px * var(--zaui-size, 1)) 16px calc(9px * var(--zaui-size, 1)) 24px;
|
|
1533
1540
|
border: 1px solid var(--zaui-line, #dddddd);
|
|
1534
1541
|
border-left: none;
|
|
1535
1542
|
}
|
|
@@ -1538,14 +1545,14 @@
|
|
|
1538
1545
|
text-shadow: none;
|
|
1539
1546
|
}
|
|
1540
1547
|
.pro-tabs .pro-tabs-card .pro-tabs-card-left .pro-tabs-card-left-total {
|
|
1541
|
-
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
1542
|
-
font-weight: 600;
|
|
1543
1548
|
color: var(--zaui-text, #343434);
|
|
1549
|
+
font-weight: 600;
|
|
1550
|
+
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
1544
1551
|
}
|
|
1545
1552
|
.pro-tabs .pro-tabs-card .pro-tabs-card-left .pro-tabs-card-left-label {
|
|
1546
|
-
font-size: var(--zaui-font-size, 14px);
|
|
1547
|
-
font-weight: 400;
|
|
1548
1553
|
color: var(--aui-text, #343434);
|
|
1554
|
+
font-weight: 400;
|
|
1555
|
+
font-size: var(--zaui-font-size, 14px);
|
|
1549
1556
|
}
|
|
1550
1557
|
.pro-tabs .pro-tabs-card .pro-tabs-card-right {
|
|
1551
1558
|
display: -webkit-box;
|
|
@@ -1557,9 +1564,9 @@
|
|
|
1557
1564
|
width: 48px;
|
|
1558
1565
|
}
|
|
1559
1566
|
.pro-tabs-tab .pro-tabs-card .ant-tag {
|
|
1560
|
-
border-radius: 10px;
|
|
1561
|
-
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
1562
1567
|
margin-right: 0;
|
|
1568
|
+
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
1569
|
+
border-radius: 10px;
|
|
1563
1570
|
}
|
|
1564
1571
|
.pro-tabs-tab .pro-tabs-card .ant-space-item {
|
|
1565
1572
|
display: -webkit-box;
|
|
@@ -1618,6 +1625,10 @@
|
|
|
1618
1625
|
.pro-table .custom-column-btn .anticon {
|
|
1619
1626
|
height: 16px;
|
|
1620
1627
|
}
|
|
1628
|
+
.pro-table .ant-table-tbody .ant-table-cell-fix-left,
|
|
1629
|
+
.pro-table .ant-table-tbody .ant-table-cell-fix-right {
|
|
1630
|
+
background: unset !important;
|
|
1631
|
+
}
|
|
1621
1632
|
.pro-table .ant-table-body .ant-table-cell .varied-cell {
|
|
1622
1633
|
margin-left: -8px;
|
|
1623
1634
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
@@ -1926,10 +1937,6 @@ div.pro-textarea-view::after {
|
|
|
1926
1937
|
display: flex;
|
|
1927
1938
|
padding-bottom: 0;
|
|
1928
1939
|
}
|
|
1929
|
-
.pro-form-list.pro-form-list-last .pro-form-list-drag-handle,
|
|
1930
|
-
.pro-form-list.pro-form-list-last .ant-form-item {
|
|
1931
|
-
margin-bottom: 0 !important;
|
|
1932
|
-
}
|
|
1933
1940
|
.pro-form-list .single-delete {
|
|
1934
1941
|
width: 14px !important;
|
|
1935
1942
|
height: 14px !important;
|
|
@@ -1967,6 +1974,7 @@ div.pro-textarea-view::after {
|
|
|
1967
1974
|
}
|
|
1968
1975
|
.pro-form-list-line {
|
|
1969
1976
|
padding: var(--zaui-height-size-md, 16px);
|
|
1977
|
+
padding-bottom: 0;
|
|
1970
1978
|
}
|
|
1971
1979
|
.pro-form-list-line:hover {
|
|
1972
1980
|
background: rgba(0, 0, 0, 0.018);
|
|
@@ -2125,7 +2133,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2125
2133
|
.pro-modal-select .ant-input-group-wrapper:hover .close-icon > span,
|
|
2126
2134
|
.pro-tree-modal .ant-input-group-wrapper:hover .close-icon > span {
|
|
2127
2135
|
position: relative;
|
|
2128
|
-
font-size:
|
|
2136
|
+
font-size: 10px;
|
|
2129
2137
|
border: none;
|
|
2130
2138
|
border-radius: 50%;
|
|
2131
2139
|
}
|
|
@@ -2419,8 +2427,8 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2419
2427
|
-webkit-align-items: center;
|
|
2420
2428
|
-ms-flex-align: center;
|
|
2421
2429
|
align-items: center;
|
|
2422
|
-
margin-bottom: 0;
|
|
2423
2430
|
height: auto;
|
|
2431
|
+
margin-bottom: 0;
|
|
2424
2432
|
padding-top: 6px;
|
|
2425
2433
|
}
|
|
2426
2434
|
.pro-form.ant-form-vertical .pro-form-custom-footer .ant-space-align-center {
|
|
@@ -2505,13 +2513,23 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2505
2513
|
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper,
|
|
2506
2514
|
.pro-form .ant-form-item.pro-form-item-changed .ant-select-selector,
|
|
2507
2515
|
.pro-form .ant-form-item.pro-form-item-changed .ant-picker {
|
|
2508
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2516
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
2509
2517
|
}
|
|
2510
2518
|
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper input,
|
|
2511
2519
|
.pro-form .ant-form-item.pro-form-item-changed .ant-select-selector input,
|
|
2512
2520
|
.pro-form .ant-form-item.pro-form-item-changed .ant-picker input {
|
|
2513
2521
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
2514
2522
|
}
|
|
2523
|
+
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
2524
|
+
.pro-form .ant-form-item.pro-form-item-changed .ant-select-selector .ant-select-selection-placeholder,
|
|
2525
|
+
.pro-form .ant-form-item.pro-form-item-changed .ant-picker .ant-select-selection-placeholder {
|
|
2526
|
+
z-index: 9;
|
|
2527
|
+
}
|
|
2528
|
+
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > span {
|
|
2529
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
2530
|
+
padding: 4px 8px;
|
|
2531
|
+
border-radius: 4px;
|
|
2532
|
+
}
|
|
2515
2533
|
.pro-form .ant-form-item .ant-row {
|
|
2516
2534
|
width: 100%;
|
|
2517
2535
|
}
|
|
@@ -3778,7 +3796,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3778
3796
|
fill: var(--zaui-aide-text, #909090);
|
|
3779
3797
|
}
|
|
3780
3798
|
.pro-drawer .pro-drawer-close .close-icon:hover {
|
|
3781
|
-
fill: var(--zaui-brand-active, #
|
|
3799
|
+
fill: var(--zaui-brand-active, #005ad9);
|
|
3782
3800
|
}
|
|
3783
3801
|
.pro-drawer .pro-drawer-close .close-icon > div {
|
|
3784
3802
|
height: 20px;
|
|
@@ -3829,7 +3847,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3829
3847
|
left: 0;
|
|
3830
3848
|
z-index: 101;
|
|
3831
3849
|
width: 100%;
|
|
3832
|
-
padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
|
|
3850
|
+
padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
|
|
3833
3851
|
background-color: var(--zaui-global-bg, #fff);
|
|
3834
3852
|
-webkit-box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3835
3853
|
box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
@@ -3891,10 +3909,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3891
3909
|
z-index: 1;
|
|
3892
3910
|
}
|
|
3893
3911
|
.pro-modal-scrolling .ant-modal-header {
|
|
3894
|
-
-webkit-box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3895
|
-
box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3896
3912
|
position: relative;
|
|
3897
3913
|
z-index: 1;
|
|
3914
|
+
-webkit-box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3915
|
+
box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3898
3916
|
}
|
|
3899
3917
|
.pro-modal-footer-shadow .ant-modal-footer {
|
|
3900
3918
|
position: relative;
|
|
@@ -4894,11 +4912,11 @@ input[type='button'] {
|
|
|
4894
4912
|
-webkit-flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4895
4913
|
-ms-flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4896
4914
|
flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4915
|
+
padding-right: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
|
|
4897
4916
|
overflow: initial;
|
|
4898
4917
|
line-height: 1;
|
|
4899
|
-
text-align: var(--zaui-form-align, left);
|
|
4900
4918
|
white-space: pre-wrap;
|
|
4901
|
-
|
|
4919
|
+
text-align: var(--zaui-form-align, left);
|
|
4902
4920
|
}
|
|
4903
4921
|
.ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::after,
|
|
4904
4922
|
.ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::after,
|
|
@@ -4913,8 +4931,8 @@ input[type='button'] {
|
|
|
4913
4931
|
.ant-form .ant-form-item .ant-form-item-label > label::after,
|
|
4914
4932
|
.ant-drawer .ant-form-item .ant-form-item-label > label::after,
|
|
4915
4933
|
.ant-modal .ant-form-item .ant-form-item-label > label::after {
|
|
4916
|
-
margin: 0;
|
|
4917
4934
|
display: none;
|
|
4935
|
+
margin: 0;
|
|
4918
4936
|
}
|
|
4919
4937
|
.ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::before,
|
|
4920
4938
|
.ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::before,
|
|
@@ -5047,6 +5065,12 @@ input[type='button'] {
|
|
|
5047
5065
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td {
|
|
5048
5066
|
background: var(--zaui-table-strip-bg, #fafafa);
|
|
5049
5067
|
}
|
|
5068
|
+
.ant-table table .ant-table-thead > tr > th,
|
|
5069
|
+
.ant-table table .ant-table-tbody > tr > td,
|
|
5070
|
+
.ant-table table .ant-table tfoot > tr > th,
|
|
5071
|
+
.ant-table table .ant-table tfoot > tr > td {
|
|
5072
|
+
padding: calc(5px + var(--zaui-size) * 8px) 16px;
|
|
5073
|
+
}
|
|
5050
5074
|
.ant-table.ant-table-scroll-horizontal table .ant-table-thead > tr > th,
|
|
5051
5075
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody > tr > td,
|
|
5052
5076
|
.ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > th,
|
|
@@ -5078,31 +5102,31 @@ input[type='button'] {
|
|
|
5078
5102
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td,
|
|
5079
5103
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td.ant-table-cell-fix-right,
|
|
5080
5104
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td.ant-table-cell-fix-left {
|
|
5081
|
-
background-color: #fff;
|
|
5105
|
+
background-color: #fff !important;
|
|
5082
5106
|
}
|
|
5083
5107
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td {
|
|
5084
5108
|
background-color: #fff;
|
|
5085
5109
|
}
|
|
5086
5110
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(odd) {
|
|
5087
|
-
background-color: var(--zaui-table-strip-bg, #fafafa);
|
|
5111
|
+
background-color: var(--zaui-table-strip-bg, #fafafa) !important;
|
|
5088
5112
|
}
|
|
5089
5113
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(odd) td {
|
|
5090
|
-
background-color: var(--zaui-table-strip-bg, #fafafa);
|
|
5114
|
+
background-color: var(--zaui-table-strip-bg, #fafafa) !important;
|
|
5091
5115
|
}
|
|
5092
5116
|
.ant-table .ant-table-cell .ant-btn-link {
|
|
5093
|
-
padding: 0;
|
|
5094
5117
|
height: auto;
|
|
5118
|
+
padding: 0;
|
|
5095
5119
|
-webkit-user-select: text;
|
|
5096
5120
|
-moz-user-select: text;
|
|
5097
5121
|
-ms-user-select: text;
|
|
5098
5122
|
user-select: text;
|
|
5099
5123
|
}
|
|
5100
5124
|
.ant-table .ant-table-cell a {
|
|
5125
|
+
color: var(--zaui-brand, #006aff);
|
|
5101
5126
|
-webkit-user-select: text;
|
|
5102
5127
|
-moz-user-select: text;
|
|
5103
5128
|
-ms-user-select: text;
|
|
5104
5129
|
user-select: text;
|
|
5105
|
-
color: var(--zaui-brand, #006aFF);
|
|
5106
5130
|
}
|
|
5107
5131
|
.ant-table.ant-table-fixed-header .ant-table-tbody .ant-table-row:nth-child(even) td {
|
|
5108
5132
|
background: #ffffff !important;
|
|
@@ -5118,13 +5142,13 @@ input[type='button'] {
|
|
|
5118
5142
|
color: var(--zaui-text, #464646);
|
|
5119
5143
|
}
|
|
5120
5144
|
.ant-tabs .ant-tabs-nav-list.ant-tabs-card .ant-tabs-tab {
|
|
5121
|
-
padding: 8px var(--zaui-space-size-md, 16px);
|
|
5122
5145
|
margin-right: 10px;
|
|
5146
|
+
padding: 8px var(--zaui-space-size-md, 16px);
|
|
5123
5147
|
}
|
|
5124
5148
|
.ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
|
|
5125
5149
|
font-size: calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
|
|
5126
|
-
padding: 12px var(--zaui-space-size-md, 16px);
|
|
5127
5150
|
margin-left: 0;
|
|
5151
|
+
padding: 12px var(--zaui-space-size-md, 16px);
|
|
5128
5152
|
}
|
|
5129
5153
|
.ant-tabs .ant-tabs-nav {
|
|
5130
5154
|
margin-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1));
|
|
@@ -5132,6 +5156,10 @@ input[type='button'] {
|
|
|
5132
5156
|
.ant-tabs .ant-tabs-nav .ant-tabs-tab-btn {
|
|
5133
5157
|
font-size: var(--zaui-font-size-lg, 16px);
|
|
5134
5158
|
}
|
|
5159
|
+
.ant-tabs.ant-tabs-card .ant-tabs-tab {
|
|
5160
|
+
margin-right: 10px !important;
|
|
5161
|
+
padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
|
|
5162
|
+
}
|
|
5135
5163
|
.ant-tabs.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-btn {
|
|
5136
5164
|
font-size: var(--zaui-font-size, 14px);
|
|
5137
5165
|
}
|
|
@@ -5160,7 +5188,7 @@ input[type='button'] {
|
|
|
5160
5188
|
.ant-btn.ant-btn-link[disabled]:hover,
|
|
5161
5189
|
.ant-btn.ant-btn-link[disabled]:focus,
|
|
5162
5190
|
.ant-btn.ant-btn-link[disabled]:active {
|
|
5163
|
-
color: #
|
|
5191
|
+
color: #bcbcbc;
|
|
5164
5192
|
text-shadow: none;
|
|
5165
5193
|
background: none;
|
|
5166
5194
|
border-color: none;
|
|
@@ -5363,10 +5391,10 @@ input[type='button'] {
|
|
|
5363
5391
|
position: absolute;
|
|
5364
5392
|
right: 16px;
|
|
5365
5393
|
bottom: 1px;
|
|
5366
|
-
margin-bottom: 0;
|
|
5367
|
-
background: #fff;
|
|
5368
5394
|
width: calc(100% - 18px);
|
|
5395
|
+
margin-bottom: 0;
|
|
5369
5396
|
text-align: right;
|
|
5397
|
+
background: #fff;
|
|
5370
5398
|
}
|
|
5371
5399
|
.ant-space.ant-space-vertical {
|
|
5372
5400
|
display: -webkit-box;
|
|
@@ -1,82 +1,83 @@
|
|
|
1
1
|
.pro-drawer {
|
|
2
2
|
.pro-drawer-close {
|
|
3
|
-
position
|
|
4
|
-
top
|
|
5
|
-
left
|
|
6
|
-
display
|
|
7
|
-
align-items
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 6px;
|
|
5
|
+
left: -34px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
9
|
-
width
|
|
10
|
-
height
|
|
11
|
-
color
|
|
12
|
-
cursor
|
|
9
|
+
width: 32px;
|
|
10
|
+
height: 38px;
|
|
11
|
+
color: var(--zaui-global-bg, #fff);
|
|
12
|
+
cursor: pointer;
|
|
13
13
|
|
|
14
14
|
.close-icon {
|
|
15
|
-
position
|
|
16
|
-
left
|
|
17
|
-
z-index
|
|
15
|
+
position: relative;
|
|
16
|
+
left: 2px;
|
|
17
|
+
z-index: 1;
|
|
18
18
|
font-size: var(--zaui-font-size-lg, 16px);
|
|
19
19
|
transform: translateZ(100px);
|
|
20
|
-
fill
|
|
20
|
+
fill: var(--zaui-aide-text, #909090);
|
|
21
21
|
|
|
22
22
|
&:hover {
|
|
23
|
-
fill: var(--zaui-brand-active, #
|
|
23
|
+
fill: var(--zaui-brand-active, #005ad9);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
>div {
|
|
26
|
+
> div {
|
|
27
27
|
height: 20px;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.pro-drawer-close::after {
|
|
33
|
-
position
|
|
34
|
-
top
|
|
35
|
-
right
|
|
36
|
-
bottom
|
|
37
|
-
left
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
bottom: 0;
|
|
37
|
+
left: 0;
|
|
38
38
|
background-color: var(--zaui-global-bg, #fff);
|
|
39
|
-
border-radius
|
|
40
|
-
transform
|
|
41
|
-
content
|
|
39
|
+
border-radius: 4px 0px 0px 4px;
|
|
40
|
+
transform: perspective(0.15em) rotateY(-2deg);
|
|
41
|
+
content: '';
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.pro-drawer-title {
|
|
45
|
-
position
|
|
46
|
-
top
|
|
47
|
-
left
|
|
48
|
-
width
|
|
49
|
-
height
|
|
50
|
-
padding
|
|
51
|
-
color
|
|
52
|
-
font-weight
|
|
53
|
-
font-size
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 64px;
|
|
50
|
+
padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
|
|
51
|
+
color: var(--zaui-text, #343434);
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
font-size: var(--zaui-font-size-xxl, 20px);
|
|
54
54
|
background-color: var(--zaui-global-bg, #fff);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.pro-drawer-scrolling {
|
|
58
|
-
z-index
|
|
58
|
+
z-index: 1;
|
|
59
59
|
box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.pro-drawer-content {
|
|
63
|
-
flex
|
|
64
|
-
width
|
|
65
|
-
padding
|
|
63
|
+
flex: 1;
|
|
64
|
+
width: 100%;
|
|
65
|
+
padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
|
|
66
66
|
padding-top: 0;
|
|
67
|
-
overflow-x
|
|
68
|
-
overflow-y
|
|
67
|
+
overflow-x: hidden;
|
|
68
|
+
overflow-y: auto;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.pro-drawer-footer {
|
|
72
|
-
position
|
|
73
|
-
bottom
|
|
74
|
-
left
|
|
75
|
-
z-index
|
|
76
|
-
width
|
|
77
|
-
padding
|
|
72
|
+
position: absolute;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
z-index: 101;
|
|
76
|
+
width: 100%;
|
|
77
|
+
padding: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
|
|
78
|
+
var(--zaui-space-size-lg, 32px);
|
|
78
79
|
background-color: var(--zaui-global-bg, #fff);
|
|
79
|
-
box-shadow
|
|
80
|
+
box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
80
81
|
|
|
81
82
|
button {
|
|
82
83
|
margin-right: var(--zaui-space-size-sm, 8px);
|
|
@@ -88,8 +89,8 @@
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.ant-drawer-body {
|
|
91
|
-
height
|
|
92
|
-
padding
|
|
92
|
+
height: 100vh;
|
|
93
|
+
padding: 0;
|
|
93
94
|
overflow-y: hidden;
|
|
94
95
|
}
|
|
95
96
|
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.ant-modal-header {
|
|
119
|
-
padding
|
|
120
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
120
121
|
border-bottom: none;
|
|
121
122
|
|
|
122
123
|
.ant-modal-title {
|
|
@@ -125,30 +126,29 @@
|
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
.ant-modal-footer {
|
|
128
|
-
padding
|
|
129
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
129
130
|
border-top: none;
|
|
130
131
|
|
|
131
132
|
.pro-modal-footer {
|
|
132
|
-
display
|
|
133
|
+
display: flex;
|
|
133
134
|
justify-content: space-between;
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.ant-modal-content {
|
|
138
139
|
.ant-modal-body {
|
|
139
|
-
max-height
|
|
140
|
-
padding
|
|
140
|
+
max-height: 450px;
|
|
141
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
141
142
|
padding-top: 0;
|
|
142
|
-
overflow
|
|
143
|
+
overflow: auto;
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
|
-
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.pro-modal-no-footer {
|
|
149
149
|
.ant-modal-content {
|
|
150
150
|
.ant-modal-body {
|
|
151
|
-
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
|
|
151
|
+
padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -157,16 +157,16 @@
|
|
|
157
157
|
z-index: 1;
|
|
158
158
|
|
|
159
159
|
.ant-modal-header {
|
|
160
|
+
position: relative;
|
|
161
|
+
z-index: 1;
|
|
160
162
|
box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
161
|
-
position : relative;
|
|
162
|
-
z-index : 1;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.pro-modal-footer-shadow {
|
|
167
167
|
.ant-modal-footer {
|
|
168
|
-
position
|
|
169
|
-
z-index
|
|
168
|
+
position: relative;
|
|
169
|
+
z-index: 1;
|
|
170
170
|
box-shadow: 3px 2px 12px 0px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
+
import "antd/es/tooltip/style";
|
|
2
|
+
import _Tooltip from "antd/es/tooltip";
|
|
1
3
|
import "antd/es/form/style";
|
|
2
4
|
import _Form from "antd/es/form";
|
|
5
|
+
import "antd/es/space/style";
|
|
6
|
+
import _Space from "antd/es/space";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
9
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
10
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
5
11
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
12
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
13
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
|
-
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules"];
|
|
9
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className"];
|
|
15
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
16
|
/* eslint-disable prefer-destructuring */
|
|
11
17
|
/* eslint-disable prefer-const */
|
|
12
18
|
import React, { useCallback, useEffect } from 'react';
|
|
19
|
+
import classNames from 'classnames';
|
|
13
20
|
import { cloneDeep, isEqual, debounce, omit, isFunction, isString } from 'lodash';
|
|
14
21
|
import valueTypeMap from '../../../ProForm/utils/valueType';
|
|
15
22
|
import transformMap from '../../utils/transform';
|
|
@@ -18,11 +25,12 @@ import * as componentMap from '../../../ProForm/components';
|
|
|
18
25
|
import Container from '../../../ProForm/components/Container';
|
|
19
26
|
import transformNames from '../../../ProForm/utils/transformNames';
|
|
20
27
|
import { FieldProvider } from '../../../ProForm/utils/useFieldProps';
|
|
28
|
+
import { useChanged } from '../../../ProForm/utils/useChanged';
|
|
21
29
|
import useRules from '../../../ProForm/utils/useRules';
|
|
22
30
|
import { isSelect } from '../../../ProForm/utils';
|
|
23
31
|
import locale from '../../../locale';
|
|
24
32
|
var RenderField = function RenderField(_ref) {
|
|
25
|
-
var _type, _type$replace, _fieldProps2, _fieldProps3, _fieldProps4, _names, _formItemChildProps$p, _TargetComponent4;
|
|
33
|
+
var _type, _type$replace, _fieldProps2, _fieldProps3, _fieldProps4, _names, _formItemChildProps$p, _TargetComponent4, _classNames;
|
|
26
34
|
var value = _ref.text,
|
|
27
35
|
record = _ref.record,
|
|
28
36
|
index = _ref.index,
|
|
@@ -47,6 +55,8 @@ var RenderField = function RenderField(_ref) {
|
|
|
47
55
|
required = _column$required === void 0 ? false : _column$required,
|
|
48
56
|
_column$rules = column.rules,
|
|
49
57
|
rules = _column$rules === void 0 ? [] : _column$rules,
|
|
58
|
+
equalWith = column.equalWith,
|
|
59
|
+
className = column.className,
|
|
50
60
|
resetProps = _objectWithoutProperties(column, _excluded);
|
|
51
61
|
// editRender弃用使用component同ProForm
|
|
52
62
|
var _editRender = component || editRender;
|
|
@@ -61,7 +71,9 @@ var RenderField = function RenderField(_ref) {
|
|
|
61
71
|
setState = config.setState,
|
|
62
72
|
name = config.name,
|
|
63
73
|
virtualKey = config.virtualKey,
|
|
64
|
-
viewEmpty = config.viewEmpty
|
|
74
|
+
viewEmpty = config.viewEmpty,
|
|
75
|
+
originalValues = config.originalValues,
|
|
76
|
+
originalTip = config.originalTip;
|
|
65
77
|
var _fieldProps = fieldProps || formItemProps || {};
|
|
66
78
|
var _rules = rules || [];
|
|
67
79
|
var _required = required;
|
|
@@ -175,13 +187,23 @@ var RenderField = function RenderField(_ref) {
|
|
|
175
187
|
return [].concat(_toConsumableArray(baseName), [index, key]);
|
|
176
188
|
});
|
|
177
189
|
}
|
|
190
|
+
var originalName = cellName;
|
|
191
|
+
var originalNames = names;
|
|
192
|
+
if (virtualKey) {
|
|
193
|
+
var _cellName$slice, _names2, _names2$map;
|
|
194
|
+
originalName = [].concat(_toConsumableArray(name), _toConsumableArray(cellName === null || cellName === void 0 ? void 0 : (_cellName$slice = cellName.slice) === null || _cellName$slice === void 0 ? void 0 : _cellName$slice.call(cellName, 1)));
|
|
195
|
+
originalNames = (_names2 = names) === null || _names2 === void 0 ? void 0 : (_names2$map = _names2.map) === null || _names2$map === void 0 ? void 0 : _names2$map.call(_names2, function (item) {
|
|
196
|
+
var _item$slice;
|
|
197
|
+
return [].concat(_toConsumableArray(name), _toConsumableArray(item === null || item === void 0 ? void 0 : (_item$slice = item.slice) === null || _item$slice === void 0 ? void 0 : _item$slice.call(item, 1)));
|
|
198
|
+
});
|
|
199
|
+
}
|
|
178
200
|
/**
|
|
179
201
|
* 配置names时,基于formItem的normalize与getValueProps进行值类型转换
|
|
180
202
|
* @returns {}
|
|
181
203
|
*/
|
|
182
204
|
var namesTransform = function namesTransform() {
|
|
183
|
-
var
|
|
184
|
-
if (!((
|
|
205
|
+
var _names3;
|
|
206
|
+
if (!((_names3 = names) === null || _names3 === void 0 ? void 0 : _names3.length)) {
|
|
185
207
|
return {};
|
|
186
208
|
}
|
|
187
209
|
var namesStr = [baseName, index, dataIndex];
|
|
@@ -341,14 +363,6 @@ var RenderField = function RenderField(_ref) {
|
|
|
341
363
|
d: Date.now()
|
|
342
364
|
}
|
|
343
365
|
});
|
|
344
|
-
// if (virtualKey) {
|
|
345
|
-
// // 单行编辑时需要 强制更新视图
|
|
346
|
-
// setState({
|
|
347
|
-
// forceUpdate: {
|
|
348
|
-
// d: Date.now(),
|
|
349
|
-
// },
|
|
350
|
-
// });
|
|
351
|
-
// }
|
|
352
366
|
case 30:
|
|
353
367
|
case "end":
|
|
354
368
|
return _context.stop();
|
|
@@ -437,6 +451,20 @@ var RenderField = function RenderField(_ref) {
|
|
|
437
451
|
return _ref3.apply(this, arguments);
|
|
438
452
|
};
|
|
439
453
|
}();
|
|
454
|
+
// 判断当前字段是否变更
|
|
455
|
+
var _useChanged = useChanged({
|
|
456
|
+
name: cellName,
|
|
457
|
+
names: names,
|
|
458
|
+
namesStr: [].concat(_toConsumableArray(baseName), [index, dataIndex]),
|
|
459
|
+
originalName: originalName,
|
|
460
|
+
originalNames: originalNames,
|
|
461
|
+
originalValues: originalValues,
|
|
462
|
+
form: form,
|
|
463
|
+
equalWith: equalWith
|
|
464
|
+
}),
|
|
465
|
+
_useChanged2 = _slicedToArray(_useChanged, 2),
|
|
466
|
+
changed = _useChanged2[0],
|
|
467
|
+
originalValue = _useChanged2[1];
|
|
440
468
|
var componentProps = _objectSpread(_objectSpread(_objectSpread({
|
|
441
469
|
form: form,
|
|
442
470
|
name: cellName,
|
|
@@ -477,15 +505,32 @@ var RenderField = function RenderField(_ref) {
|
|
|
477
505
|
if (!isEditing) {
|
|
478
506
|
delete _formItemProps.rules;
|
|
479
507
|
}
|
|
508
|
+
var _className = classNames((_classNames = {}, _defineProperty(_classNames, className, className), _defineProperty(_classNames, 'pro-form-item-changed', changed), _classNames));
|
|
509
|
+
var originalTitle = _jsxs(_Space, {
|
|
510
|
+
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(TargetComponent) ? /*#__PURE__*/React.cloneElement(TargetComponent, _objectSpread(_objectSpread({}, omit(componentProps, ['onFieldChange'])), {}, {
|
|
511
|
+
isView: true,
|
|
512
|
+
value: originalValue,
|
|
513
|
+
checked: type === 'Switch' ? originalValue : undefined
|
|
514
|
+
})) : _jsx(TargetComponent, _objectSpread(_objectSpread({}, omit(componentProps, ['onFieldChange'])), {}, {
|
|
515
|
+
isView: true,
|
|
516
|
+
value: originalValue,
|
|
517
|
+
checked: type === 'Switch' ? originalValue : undefined
|
|
518
|
+
}))]
|
|
519
|
+
});
|
|
520
|
+
var FormItem = _jsx(_Form.Item, _objectSpread(_objectSpread({
|
|
521
|
+
validateFirst: true
|
|
522
|
+
}, omit(_formItemProps, ['render', 'cache', 'key', 'width', 'hiddenNames', 'name'])), {}, {
|
|
523
|
+
className: _className,
|
|
524
|
+
name: cellName,
|
|
525
|
+
children: /*#__PURE__*/React.isValidElement(TargetComponent) ? /*#__PURE__*/React.cloneElement(TargetComponent, _objectSpread({}, omit(componentProps, ['onFieldChange']))) : _jsx(TargetComponent, _objectSpread({}, omit(componentProps, ['onFieldChange'])))
|
|
526
|
+
}));
|
|
480
527
|
return _jsx(FieldProvider, {
|
|
481
528
|
value: componentProps === null || componentProps === void 0 ? void 0 : componentProps.otherProps,
|
|
482
|
-
children: _jsx(
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
children: /*#__PURE__*/React.isValidElement(TargetComponent) ? /*#__PURE__*/React.cloneElement(TargetComponent, _objectSpread({}, omit(componentProps, ['onFieldChange']))) : _jsx(TargetComponent, _objectSpread({}, omit(componentProps, ['onFieldChange'])))
|
|
488
|
-
}))
|
|
529
|
+
children: !originalTip || ['FormList', 'ProEditTable'].includes(type) ? FormItem : _jsx(_Tooltip, {
|
|
530
|
+
title: originalTitle,
|
|
531
|
+
open: changed ? undefined : false,
|
|
532
|
+
children: FormItem
|
|
533
|
+
})
|
|
489
534
|
});
|
|
490
535
|
};
|
|
491
536
|
export default RenderField;
|