@zat-design/sisyphus-react 3.6.10 → 3.7.0-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 +52 -54
- package/dist/less.esm.css +52 -54
- package/es/ProEditTable/components/RenderField/ListChanged.d.ts +16 -0
- package/es/ProEditTable/components/RenderField/ListChanged.js +124 -0
- package/es/ProEditTable/components/RenderField/index.js +27 -46
- package/es/ProEditTable/style/index.less +2 -1
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +19 -13
- package/es/ProEditTable/utils/tools.d.ts +6 -0
- package/es/ProEditTable/utils/tools.js +15 -2
- package/es/ProEnum/hooks/useEnumRequest.js +3 -0
- package/es/ProEnum/utils/index.js +1 -1
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +4 -2
- package/es/ProForm/components/combination/FormList/components/LineFields.js +4 -1
- package/es/ProForm/components/combination/FormList/utils.d.ts +1 -0
- package/es/ProForm/components/combination/FormList/utils.js +13 -0
- package/es/ProForm/components/combination/ProCascader/index.js +8 -14
- package/es/ProForm/components/render/Changed.d.ts +14 -0
- package/es/ProForm/components/render/Changed.js +64 -0
- package/es/ProForm/components/render/Render.js +17 -37
- package/es/ProForm/style/index.less +52 -52
- package/es/ProForm/utils/diffOriginal.d.ts +0 -1
- package/es/ProForm/utils/diffOriginal.js +4 -27
- package/es/ProForm/utils/useChanged.js +1 -2
- package/es/ProForm/utils/useListChanged.js +3 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +3 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +108 -41
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +14 -1
- package/es/ProTable/index.js +6 -2
- package/es/ProTable/propsType.d.ts +22 -0
- package/es/ProTable/style/index.less +27 -32
- package/es/ProThemeTools/component/{PrdTools → ProTools}/index.d.ts +2 -2
- package/es/ProThemeTools/component/{PrdTools → ProTools}/index.js +2 -2
- package/es/ProThemeTools/component/index.d.ts +1 -2
- package/es/ProThemeTools/component/index.js +1 -2
- package/es/ProThemeTools/index.js +2 -2
- package/es/ProThemeTools/style/index.less +1 -1
- package/es/ProTreeModal/components/List.js +30 -4
- package/lib/ProEditTable/components/RenderField/ListChanged.d.ts +16 -0
- package/lib/ProEditTable/components/RenderField/ListChanged.js +129 -0
- package/lib/ProEditTable/components/RenderField/index.js +26 -41
- package/lib/ProEditTable/style/index.less +2 -1
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +17 -11
- package/lib/ProEditTable/utils/tools.d.ts +6 -0
- package/lib/ProEditTable/utils/tools.js +15 -1
- package/lib/ProEnum/hooks/useEnumRequest.js +3 -0
- package/lib/ProEnum/utils/index.js +1 -1
- package/lib/ProForm/components/combination/FormList/components/BlockFields.js +5 -2
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +4 -1
- package/lib/ProForm/components/combination/FormList/utils.d.ts +1 -0
- package/lib/ProForm/components/combination/FormList/utils.js +15 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +6 -12
- package/lib/ProForm/components/render/Changed.d.ts +14 -0
- package/lib/ProForm/components/render/Changed.js +69 -0
- package/lib/ProForm/components/render/Render.js +17 -35
- package/lib/ProForm/style/index.less +52 -52
- package/lib/ProForm/utils/diffOriginal.d.ts +0 -1
- package/lib/ProForm/utils/diffOriginal.js +3 -27
- package/lib/ProForm/utils/useChanged.js +1 -2
- package/lib/ProForm/utils/useListChanged.js +2 -2
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +3 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +108 -41
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +13 -1
- package/lib/ProTable/index.js +6 -2
- package/lib/ProTable/propsType.d.ts +22 -0
- package/lib/ProTable/style/index.less +27 -32
- package/lib/ProThemeTools/component/{PrdTools → ProTools}/index.d.ts +2 -2
- package/lib/ProThemeTools/component/{PrdTools → ProTools}/index.js +2 -2
- package/lib/ProThemeTools/component/index.d.ts +1 -2
- package/lib/ProThemeTools/component/index.js +3 -3
- package/lib/ProThemeTools/index.js +1 -1
- package/lib/ProThemeTools/style/index.less +1 -1
- package/lib/ProTreeModal/components/List.js +30 -4
- package/package.json +1 -1
- /package/es/ProThemeTools/component/{PrdTools → ProTools}/style/index.less +0 -0
- /package/lib/ProThemeTools/component/{PrdTools → ProTools}/style/index.less +0 -0
package/dist/index.esm.css
CHANGED
|
@@ -1784,18 +1784,18 @@
|
|
|
1784
1784
|
margin-right: 0;
|
|
1785
1785
|
}
|
|
1786
1786
|
.pro-table .ant-table-cell-with-append {
|
|
1787
|
-
white-space: nowrap;
|
|
1788
1787
|
position: relative;
|
|
1789
1788
|
z-index: 100;
|
|
1789
|
+
white-space: nowrap;
|
|
1790
1790
|
}
|
|
1791
1791
|
.pro-table .ant-table-row-expand-icon {
|
|
1792
1792
|
position: absolute;
|
|
1793
1793
|
left: -16px;
|
|
1794
1794
|
}
|
|
1795
1795
|
.pro-table .ant-table-content > table .ant-table-summary {
|
|
1796
|
-
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1797
1796
|
color: var(--zaui-text, #343434);
|
|
1798
1797
|
font-weight: 600;
|
|
1798
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1799
1799
|
}
|
|
1800
1800
|
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-left,
|
|
1801
1801
|
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
@@ -1807,26 +1807,26 @@
|
|
|
1807
1807
|
.pro-table .ant-table-content > table td .pro-form-view-container_nowrap {
|
|
1808
1808
|
white-space: normal;
|
|
1809
1809
|
}
|
|
1810
|
-
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1810
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not( .ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1811
1811
|
position: static;
|
|
1812
1812
|
top: 0;
|
|
1813
1813
|
display: inline-block;
|
|
1814
|
-
text-indent: -8px;
|
|
1815
1814
|
color: #ff5050;
|
|
1816
1815
|
font-size: var(--zaui-font-size-md, 14px);
|
|
1817
1816
|
line-height: 1;
|
|
1818
|
-
|
|
1817
|
+
text-indent: -8px;
|
|
1818
|
+
content: '*';
|
|
1819
1819
|
}
|
|
1820
|
-
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1821
|
-
width: auto;
|
|
1820
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not( .ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1822
1821
|
position: static;
|
|
1823
1822
|
top: 0;
|
|
1824
1823
|
display: inline-block;
|
|
1824
|
+
width: auto;
|
|
1825
1825
|
margin-left: var(--zaui-space-size-xs, 4px);
|
|
1826
1826
|
color: #ff5050;
|
|
1827
1827
|
font-size: 14px;
|
|
1828
1828
|
line-height: 1;
|
|
1829
|
-
content:
|
|
1829
|
+
content: '*';
|
|
1830
1830
|
}
|
|
1831
1831
|
.pro-table .drag-wrapper {
|
|
1832
1832
|
display: -webkit-box;
|
|
@@ -1836,8 +1836,8 @@
|
|
|
1836
1836
|
width: 20px;
|
|
1837
1837
|
}
|
|
1838
1838
|
.pro-table .drag-wrapper .anticon {
|
|
1839
|
-
cursor: pointer;
|
|
1840
1839
|
margin-right: 12px;
|
|
1840
|
+
cursor: pointer;
|
|
1841
1841
|
}
|
|
1842
1842
|
.pro-table .drag-wrapper .anticon .drag-icon {
|
|
1843
1843
|
margin-right: 0;
|
|
@@ -2147,9 +2147,6 @@
|
|
|
2147
2147
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
|
2148
2148
|
background: rgba(0, 106, 255, 0.08);
|
|
2149
2149
|
}
|
|
2150
|
-
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
2151
|
-
text-align: right;
|
|
2152
|
-
}
|
|
2153
2150
|
.pro-tooltip {
|
|
2154
2151
|
cursor: pointer;
|
|
2155
2152
|
}
|
|
@@ -2883,47 +2880,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2883
2880
|
vertical-align: bottom;
|
|
2884
2881
|
fill: var(--zaui-aide-text, #909090);
|
|
2885
2882
|
}
|
|
2886
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper,
|
|
2887
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector,
|
|
2888
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker,
|
|
2889
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number {
|
|
2890
|
-
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
2891
|
-
}
|
|
2892
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper input,
|
|
2893
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector input,
|
|
2894
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker input,
|
|
2895
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number input {
|
|
2896
|
-
background: transparent;
|
|
2897
|
-
}
|
|
2898
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
2899
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
2900
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
|
2901
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
|
2902
|
-
z-index: 9;
|
|
2903
|
-
}
|
|
2904
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
|
2905
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
2906
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2907
|
-
border-radius: 4px;
|
|
2908
|
-
}
|
|
2909
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > span {
|
|
2910
|
-
border-radius: 4px;
|
|
2911
|
-
padding: 5px 8px;
|
|
2912
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2913
|
-
}
|
|
2914
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
2915
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
2916
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
2917
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2918
|
-
}
|
|
2919
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
2920
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2921
|
-
}
|
|
2922
|
-
.pro-form .ant-form-item.pro-form-item-changed .pro-form-view-container {
|
|
2923
|
-
padding: 4px 8px;
|
|
2924
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2925
|
-
border-radius: 4px;
|
|
2926
|
-
}
|
|
2927
2883
|
.pro-form .ant-form-item .ant-row {
|
|
2928
2884
|
width: 100%;
|
|
2929
2885
|
}
|
|
@@ -3076,6 +3032,47 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3076
3032
|
.pro-form .pro-form-list-mode-block .pro-collapse-content .ant-row {
|
|
3077
3033
|
width: auto;
|
|
3078
3034
|
}
|
|
3035
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper,
|
|
3036
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector,
|
|
3037
|
+
.pro-form .pro-form-item-changed .ant-picker,
|
|
3038
|
+
.pro-form .pro-form-item-changed .ant-input-number {
|
|
3039
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3040
|
+
}
|
|
3041
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper input,
|
|
3042
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector input,
|
|
3043
|
+
.pro-form .pro-form-item-changed .ant-picker input,
|
|
3044
|
+
.pro-form .pro-form-item-changed .ant-input-number input {
|
|
3045
|
+
background: transparent !important;
|
|
3046
|
+
}
|
|
3047
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
3048
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
3049
|
+
.pro-form .pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
|
3050
|
+
.pro-form .pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
|
3051
|
+
z-index: 9;
|
|
3052
|
+
}
|
|
3053
|
+
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
|
3054
|
+
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
3055
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3056
|
+
border-radius: 4px;
|
|
3057
|
+
}
|
|
3058
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > span {
|
|
3059
|
+
border-radius: 4px;
|
|
3060
|
+
padding: 5px 8px;
|
|
3061
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3062
|
+
}
|
|
3063
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
3064
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
3065
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
3066
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3067
|
+
}
|
|
3068
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3069
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3070
|
+
}
|
|
3071
|
+
.pro-form .pro-form-item-changed .pro-form-view-container {
|
|
3072
|
+
padding: 4px 8px;
|
|
3073
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3074
|
+
border-radius: 4px;
|
|
3075
|
+
}
|
|
3079
3076
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box {
|
|
3080
3077
|
padding: var(--zaui-space-size-sm, 8px);
|
|
3081
3078
|
background: #f8f9fa;
|
|
@@ -4526,7 +4523,8 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4526
4523
|
margin-left: var(--zaui-space-size-xs, 4px);
|
|
4527
4524
|
}
|
|
4528
4525
|
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
4529
|
-
text-align:
|
|
4526
|
+
text-align: left;
|
|
4527
|
+
padding-left: 52px;
|
|
4530
4528
|
}
|
|
4531
4529
|
.pro-edit-label {
|
|
4532
4530
|
display: inline-block;
|
package/dist/less.esm.css
CHANGED
|
@@ -1784,18 +1784,18 @@
|
|
|
1784
1784
|
margin-right: 0;
|
|
1785
1785
|
}
|
|
1786
1786
|
.pro-table .ant-table-cell-with-append {
|
|
1787
|
-
white-space: nowrap;
|
|
1788
1787
|
position: relative;
|
|
1789
1788
|
z-index: 100;
|
|
1789
|
+
white-space: nowrap;
|
|
1790
1790
|
}
|
|
1791
1791
|
.pro-table .ant-table-row-expand-icon {
|
|
1792
1792
|
position: absolute;
|
|
1793
1793
|
left: -16px;
|
|
1794
1794
|
}
|
|
1795
1795
|
.pro-table .ant-table-content > table .ant-table-summary {
|
|
1796
|
-
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1797
1796
|
color: var(--zaui-text, #343434);
|
|
1798
1797
|
font-weight: 600;
|
|
1798
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1799
1799
|
}
|
|
1800
1800
|
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-left,
|
|
1801
1801
|
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
@@ -1807,26 +1807,26 @@
|
|
|
1807
1807
|
.pro-table .ant-table-content > table td .pro-form-view-container_nowrap {
|
|
1808
1808
|
white-space: normal;
|
|
1809
1809
|
}
|
|
1810
|
-
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1810
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not( .ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1811
1811
|
position: static;
|
|
1812
1812
|
top: 0;
|
|
1813
1813
|
display: inline-block;
|
|
1814
|
-
text-indent: -8px;
|
|
1815
1814
|
color: #ff5050;
|
|
1816
1815
|
font-size: var(--zaui-font-size-md, 14px);
|
|
1817
1816
|
line-height: 1;
|
|
1818
|
-
|
|
1817
|
+
text-indent: -8px;
|
|
1818
|
+
content: '*';
|
|
1819
1819
|
}
|
|
1820
|
-
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1821
|
-
width: auto;
|
|
1820
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not( .ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1822
1821
|
position: static;
|
|
1823
1822
|
top: 0;
|
|
1824
1823
|
display: inline-block;
|
|
1824
|
+
width: auto;
|
|
1825
1825
|
margin-left: var(--zaui-space-size-xs, 4px);
|
|
1826
1826
|
color: #ff5050;
|
|
1827
1827
|
font-size: 14px;
|
|
1828
1828
|
line-height: 1;
|
|
1829
|
-
content:
|
|
1829
|
+
content: '*';
|
|
1830
1830
|
}
|
|
1831
1831
|
.pro-table .drag-wrapper {
|
|
1832
1832
|
display: -webkit-box;
|
|
@@ -1836,8 +1836,8 @@
|
|
|
1836
1836
|
width: 20px;
|
|
1837
1837
|
}
|
|
1838
1838
|
.pro-table .drag-wrapper .anticon {
|
|
1839
|
-
cursor: pointer;
|
|
1840
1839
|
margin-right: 12px;
|
|
1840
|
+
cursor: pointer;
|
|
1841
1841
|
}
|
|
1842
1842
|
.pro-table .drag-wrapper .anticon .drag-icon {
|
|
1843
1843
|
margin-right: 0;
|
|
@@ -2147,9 +2147,6 @@
|
|
|
2147
2147
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
|
2148
2148
|
background: rgba(0, 106, 255, 0.08);
|
|
2149
2149
|
}
|
|
2150
|
-
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
2151
|
-
text-align: right;
|
|
2152
|
-
}
|
|
2153
2150
|
.pro-tooltip {
|
|
2154
2151
|
cursor: pointer;
|
|
2155
2152
|
}
|
|
@@ -2883,47 +2880,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2883
2880
|
vertical-align: bottom;
|
|
2884
2881
|
fill: var(--zaui-aide-text, #909090);
|
|
2885
2882
|
}
|
|
2886
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper,
|
|
2887
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector,
|
|
2888
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker,
|
|
2889
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number {
|
|
2890
|
-
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
2891
|
-
}
|
|
2892
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper input,
|
|
2893
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector input,
|
|
2894
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker input,
|
|
2895
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number input {
|
|
2896
|
-
background: transparent;
|
|
2897
|
-
}
|
|
2898
|
-
.pro-form .ant-form-item.pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
2899
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
2900
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
|
2901
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
|
2902
|
-
z-index: 9;
|
|
2903
|
-
}
|
|
2904
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
|
2905
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
2906
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2907
|
-
border-radius: 4px;
|
|
2908
|
-
}
|
|
2909
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > span {
|
|
2910
|
-
border-radius: 4px;
|
|
2911
|
-
padding: 5px 8px;
|
|
2912
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2913
|
-
}
|
|
2914
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
2915
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
2916
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
2917
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2918
|
-
}
|
|
2919
|
-
.pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
2920
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2921
|
-
}
|
|
2922
|
-
.pro-form .ant-form-item.pro-form-item-changed .pro-form-view-container {
|
|
2923
|
-
padding: 4px 8px;
|
|
2924
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
2925
|
-
border-radius: 4px;
|
|
2926
|
-
}
|
|
2927
2883
|
.pro-form .ant-form-item .ant-row {
|
|
2928
2884
|
width: 100%;
|
|
2929
2885
|
}
|
|
@@ -3076,6 +3032,47 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3076
3032
|
.pro-form .pro-form-list-mode-block .pro-collapse-content .ant-row {
|
|
3077
3033
|
width: auto;
|
|
3078
3034
|
}
|
|
3035
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper,
|
|
3036
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector,
|
|
3037
|
+
.pro-form .pro-form-item-changed .ant-picker,
|
|
3038
|
+
.pro-form .pro-form-item-changed .ant-input-number {
|
|
3039
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3040
|
+
}
|
|
3041
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper input,
|
|
3042
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector input,
|
|
3043
|
+
.pro-form .pro-form-item-changed .ant-picker input,
|
|
3044
|
+
.pro-form .pro-form-item-changed .ant-input-number input {
|
|
3045
|
+
background: transparent !important;
|
|
3046
|
+
}
|
|
3047
|
+
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
3048
|
+
.pro-form .pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
3049
|
+
.pro-form .pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
|
3050
|
+
.pro-form .pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
|
3051
|
+
z-index: 9;
|
|
3052
|
+
}
|
|
3053
|
+
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
|
3054
|
+
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
3055
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3056
|
+
border-radius: 4px;
|
|
3057
|
+
}
|
|
3058
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > span {
|
|
3059
|
+
border-radius: 4px;
|
|
3060
|
+
padding: 5px 8px;
|
|
3061
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3062
|
+
}
|
|
3063
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
3064
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
3065
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
3066
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3067
|
+
}
|
|
3068
|
+
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3069
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3070
|
+
}
|
|
3071
|
+
.pro-form .pro-form-item-changed .pro-form-view-container {
|
|
3072
|
+
padding: 4px 8px;
|
|
3073
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3074
|
+
border-radius: 4px;
|
|
3075
|
+
}
|
|
3079
3076
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box {
|
|
3080
3077
|
padding: var(--zaui-space-size-sm, 8px);
|
|
3081
3078
|
background: #f8f9fa;
|
|
@@ -4526,7 +4523,8 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4526
4523
|
margin-left: var(--zaui-space-size-xs, 4px);
|
|
4527
4524
|
}
|
|
4528
4525
|
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
4529
|
-
text-align:
|
|
4526
|
+
text-align: left;
|
|
4527
|
+
padding-left: 52px;
|
|
4530
4528
|
}
|
|
4531
4529
|
.pro-edit-label {
|
|
4532
4530
|
display: inline-block;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { NamePath } from 'antd/lib/form/interface';
|
|
4
|
+
interface Props {
|
|
5
|
+
name?: NamePath;
|
|
6
|
+
names?: NamePath[];
|
|
7
|
+
originalName?: NamePath;
|
|
8
|
+
originalNames?: NamePath[];
|
|
9
|
+
namesStr?: NamePath;
|
|
10
|
+
originalValues?: any;
|
|
11
|
+
form: FormInstance;
|
|
12
|
+
equalWith?: (preValue: any, curValue: any) => boolean | undefined;
|
|
13
|
+
[name: string]: any;
|
|
14
|
+
}
|
|
15
|
+
declare const ListChanged: React.FC<Props>;
|
|
16
|
+
export default ListChanged;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import "antd/es/space/style";
|
|
2
|
+
import _Space from "antd/es/space";
|
|
3
|
+
import "antd/es/tooltip/style";
|
|
4
|
+
import _Tooltip from "antd/es/tooltip";
|
|
5
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
+
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type"];
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import React, { useMemo } from 'react';
|
|
10
|
+
import { get } from 'lodash';
|
|
11
|
+
import { diffOriginal } from '../../../ProForm/utils/diffOriginal';
|
|
12
|
+
var toNamePath = function toNamePath(name) {
|
|
13
|
+
if (Array.isArray(name)) {
|
|
14
|
+
return name;
|
|
15
|
+
}
|
|
16
|
+
return [name];
|
|
17
|
+
};
|
|
18
|
+
var toNamePaths = function toNamePaths(names) {
|
|
19
|
+
return names.map(function (name) {
|
|
20
|
+
return toNamePath(name);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
var getOriginalValue = function getOriginalValue(_ref) {
|
|
24
|
+
var namePath = _ref.namePath,
|
|
25
|
+
originalName = _ref.originalName,
|
|
26
|
+
originalNames = _ref.originalNames,
|
|
27
|
+
originalValues = _ref.originalValues,
|
|
28
|
+
rowKeyPath = _ref.rowKeyPath,
|
|
29
|
+
form = _ref.form;
|
|
30
|
+
if (!originalValues) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (rowKeyPath) {
|
|
34
|
+
var rowValueNamePath = namePath.slice(0, rowKeyPath.length - 1); // 表单中变动值所在行
|
|
35
|
+
var rowKeyName = rowKeyPath[rowKeyPath.length - 1]; // rowKey在行内的name
|
|
36
|
+
var rowValue = form.getFieldValue(rowValueNamePath);
|
|
37
|
+
if (!rowValue) return undefined;
|
|
38
|
+
var keyValue = rowValue[rowKeyName]; // 获取表单中rowKey值
|
|
39
|
+
if (!keyValue) return undefined;
|
|
40
|
+
var originalValueList = get(originalValues, originalName.slice(0, rowKeyPath.length - 2));
|
|
41
|
+
var originalValueRow = originalValueList.find(function (item) {
|
|
42
|
+
return item[rowKeyPath[rowKeyPath.length - 1]] === keyValue;
|
|
43
|
+
});
|
|
44
|
+
var originalValue;
|
|
45
|
+
if (originalNames === null || originalNames === void 0 ? void 0 : originalNames.length) {
|
|
46
|
+
var originalNamesValue = originalNames.map(function (originalName) {
|
|
47
|
+
return get(originalValueRow, originalName.slice(rowKeyPath.length - 1));
|
|
48
|
+
});
|
|
49
|
+
// 有可能出现数组中全是undefined的情况 视为没有值
|
|
50
|
+
var fillUndefined = originalNamesValue.every(function (valItem) {
|
|
51
|
+
return valItem === undefined;
|
|
52
|
+
});
|
|
53
|
+
originalValue = fillUndefined ? undefined : originalNamesValue;
|
|
54
|
+
} else {
|
|
55
|
+
originalValue = get(originalValueRow, originalName.slice(rowKeyPath.length - 1));
|
|
56
|
+
}
|
|
57
|
+
return originalValue;
|
|
58
|
+
}
|
|
59
|
+
// 这个方法是给editTable专用的 暂时不存在不传rowKey的情况
|
|
60
|
+
return (originalNames === null || originalNames === void 0 ? void 0 : originalNames.length) ? originalNames.map(function (originalName) {
|
|
61
|
+
return get(originalValues, originalName);
|
|
62
|
+
}) : get(originalValues, originalName);
|
|
63
|
+
};
|
|
64
|
+
var ListChanged = function ListChanged(props) {
|
|
65
|
+
var name = props.name,
|
|
66
|
+
names = props.names,
|
|
67
|
+
namesStr = props.namesStr,
|
|
68
|
+
_props$originalName = props.originalName,
|
|
69
|
+
originalName = _props$originalName === void 0 ? name : _props$originalName,
|
|
70
|
+
_props$originalNames = props.originalNames,
|
|
71
|
+
originalNames = _props$originalNames === void 0 ? names : _props$originalNames,
|
|
72
|
+
originalValues = props.originalValues,
|
|
73
|
+
form = props.form,
|
|
74
|
+
equalWith = props.equalWith,
|
|
75
|
+
rowKeyPath = props.rowKeyPath,
|
|
76
|
+
children = props.children,
|
|
77
|
+
type = props.type,
|
|
78
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
79
|
+
var namePath = toNamePath(namesStr || name);
|
|
80
|
+
var originalNamePath = toNamePath(originalName);
|
|
81
|
+
var originalNamePaths = originalNames && toNamePaths(originalNames);
|
|
82
|
+
var notWatch = !originalValues || ['FormList', 'ProEditTable'].includes(type);
|
|
83
|
+
var originalValue = !notWatch ? getOriginalValue({
|
|
84
|
+
namePath: namePath,
|
|
85
|
+
originalName: originalNamePath,
|
|
86
|
+
originalNames: originalNamePaths,
|
|
87
|
+
originalValues: originalValues,
|
|
88
|
+
rowKeyPath: rowKeyPath,
|
|
89
|
+
form: form
|
|
90
|
+
}) : undefined;
|
|
91
|
+
var noChange = !equalWith && (!originalValues || originalValue === undefined);
|
|
92
|
+
var changed = useMemo(function () {
|
|
93
|
+
if (notWatch || noChange) return false;
|
|
94
|
+
return diffOriginal({
|
|
95
|
+
value: props.value,
|
|
96
|
+
originalValue: originalValue,
|
|
97
|
+
form: form,
|
|
98
|
+
equalWith: equalWith
|
|
99
|
+
// name: isString(namesStr) ? namesStr : originalName || name,
|
|
100
|
+
});
|
|
101
|
+
}, [props.value, originalValue]);
|
|
102
|
+
if (notWatch || noChange) {
|
|
103
|
+
return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
|
|
104
|
+
}
|
|
105
|
+
return _jsx(_Tooltip, {
|
|
106
|
+
open: changed ? undefined : false,
|
|
107
|
+
getPopupContainer: function getPopupContainer(target) {
|
|
108
|
+
return target.parentElement;
|
|
109
|
+
},
|
|
110
|
+
title: _jsxs(_Space, {
|
|
111
|
+
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, {
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
isView: true,
|
|
114
|
+
value: originalValue,
|
|
115
|
+
checked: type === 'Switch' ? originalValue : undefined
|
|
116
|
+
})) : undefined]
|
|
117
|
+
}),
|
|
118
|
+
children: _jsx("div", {
|
|
119
|
+
className: changed ? 'pro-form-item-changed' : '',
|
|
120
|
+
children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest)) : undefined
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
export default ListChanged;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import "antd/es/tooltip/style";
|
|
2
|
-
import _Tooltip from "antd/es/tooltip";
|
|
3
|
-
import "antd/es/space/style";
|
|
4
|
-
import _Space from "antd/es/space";
|
|
5
1
|
import "antd/es/form/style";
|
|
6
2
|
import _Form from "antd/es/form";
|
|
7
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
4
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
10
5
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
11
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
12
7
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
13
8
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
14
9
|
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim", "confirm"];
|
|
15
|
-
import { Fragment as _Fragment, jsx as _jsx
|
|
10
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
16
11
|
/* eslint-disable prefer-destructuring */
|
|
17
12
|
/* eslint-disable prefer-const */
|
|
18
13
|
import React, { useCallback, useEffect } from 'react';
|
|
@@ -26,10 +21,10 @@ import { useProConfig } from '../../../ProConfigProvider';
|
|
|
26
21
|
import Container from '../../../ProForm/components/Container';
|
|
27
22
|
import transformNames from '../../../ProForm/utils/transformNames';
|
|
28
23
|
import { FieldProvider } from '../../../ProForm/utils/useFieldProps';
|
|
29
|
-
import { useListChanged } from '../../../ProForm/utils/useListChanged';
|
|
30
24
|
import useRules from '../../../ProForm/utils/useRules';
|
|
31
25
|
import { isSelect, isTrim } from '../../../ProForm/utils';
|
|
32
26
|
import ConfirmWrapper from '../../../ProForm/components/render/ConfirmWrapper';
|
|
27
|
+
import ListChanged from './ListChanged';
|
|
33
28
|
var RenderField = function RenderField(_ref) {
|
|
34
29
|
var _type, _type$replace, _fieldProps2, _names, _TargetComponent4, _componentProps, _componentProps2;
|
|
35
30
|
var value = _ref.text,
|
|
@@ -489,21 +484,6 @@ var RenderField = function RenderField(_ref) {
|
|
|
489
484
|
return _ref3.apply(this, arguments);
|
|
490
485
|
};
|
|
491
486
|
}();
|
|
492
|
-
// 判断当前字段是否变更
|
|
493
|
-
var _useListChanged = useListChanged({
|
|
494
|
-
name: cellName,
|
|
495
|
-
names: names,
|
|
496
|
-
namesStr: [].concat(_toConsumableArray(baseName), [index, dataIndex]),
|
|
497
|
-
rowKeyPath: [].concat(_toConsumableArray(baseName), [index, 'rowKey']),
|
|
498
|
-
originalName: originalName,
|
|
499
|
-
originalNames: originalNames,
|
|
500
|
-
originalValues: originalValues,
|
|
501
|
-
form: form,
|
|
502
|
-
equalWith: equalWith
|
|
503
|
-
}),
|
|
504
|
-
_useListChanged2 = _slicedToArray(_useListChanged, 2),
|
|
505
|
-
changed = _useListChanged2[0],
|
|
506
|
-
originalValue = _useListChanged2[1];
|
|
507
487
|
var componentProps = _objectSpread(_objectSpread(_objectSpread({
|
|
508
488
|
form: form,
|
|
509
489
|
name: cellName
|
|
@@ -549,16 +529,36 @@ var RenderField = function RenderField(_ref) {
|
|
|
549
529
|
if (isView) {
|
|
550
530
|
delete _formItemProps.rules;
|
|
551
531
|
}
|
|
552
|
-
var _className = classNames(_defineProperty(
|
|
532
|
+
var _className = classNames(_defineProperty({}, className, className));
|
|
553
533
|
var FormItem = null;
|
|
534
|
+
var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps));
|
|
535
|
+
if (originalValues) {
|
|
536
|
+
FieldComponent = _jsx(ListChanged, {
|
|
537
|
+
name: cellName,
|
|
538
|
+
names: names,
|
|
539
|
+
namesStr: [].concat(_toConsumableArray(baseName), [index, dataIndex]),
|
|
540
|
+
rowKeyPath: [].concat(_toConsumableArray(baseName), [index, 'rowKey']),
|
|
541
|
+
originalName: originalName,
|
|
542
|
+
originalNames: originalNames,
|
|
543
|
+
originalValues: originalValues,
|
|
544
|
+
form: form,
|
|
545
|
+
equalWith: equalWith,
|
|
546
|
+
type: type,
|
|
547
|
+
onChange: _onChange,
|
|
548
|
+
children: FieldComponent
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
if ((_componentProps = componentProps) === null || _componentProps === void 0 ? void 0 : _componentProps.confirm) {
|
|
552
|
+
FieldComponent = _jsx(ConfirmWrapper, _objectSpread(_objectSpread({}, componentProps), {}, {
|
|
553
|
+
children: FieldComponent
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
554
556
|
FormItem = TargetComponent ? _jsx(_Form.Item, _objectSpread(_objectSpread({
|
|
555
557
|
validateFirst: true
|
|
556
558
|
}, omit(_formItemProps, ['render', 'cache', 'key', 'width', 'hiddenNames', 'name', 'onCell'])), {}, {
|
|
557
559
|
className: _className,
|
|
558
560
|
name: formNamePath ? cellName.slice((formNamePath === null || formNamePath === void 0 ? void 0 : formNamePath.length) - 1) : cellName,
|
|
559
|
-
children:
|
|
560
|
-
children: /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps))
|
|
561
|
-
})) : /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps))
|
|
561
|
+
children: FieldComponent
|
|
562
562
|
})) : _jsx(Container, {
|
|
563
563
|
viewEmpty: viewEmpty
|
|
564
564
|
});
|
|
@@ -576,28 +576,9 @@ var RenderField = function RenderField(_ref) {
|
|
|
576
576
|
}
|
|
577
577
|
}));
|
|
578
578
|
}
|
|
579
|
-
var originalTitle = originalDiffTip && originalValues ? _jsxs(_Space, {
|
|
580
|
-
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, _objectSpread(_objectSpread({}, componentProps), {}, {
|
|
581
|
-
isView: true,
|
|
582
|
-
value: originalValue,
|
|
583
|
-
checked: type === 'Switch' ? originalValue : undefined
|
|
584
|
-
}))) : _jsx(TargetComponent, _objectSpread(_objectSpread({}, componentProps), {}, {
|
|
585
|
-
isView: true,
|
|
586
|
-
value: originalValue,
|
|
587
|
-
checked: type === 'Switch' ? originalValue : undefined
|
|
588
|
-
}))]
|
|
589
|
-
}) : null;
|
|
590
579
|
return _jsx(FieldProvider, {
|
|
591
580
|
value: (_componentProps2 = componentProps) === null || _componentProps2 === void 0 ? void 0 : _componentProps2.otherProps,
|
|
592
|
-
children:
|
|
593
|
-
title: originalTitle,
|
|
594
|
-
placement: "topLeft",
|
|
595
|
-
open: changed ? undefined : false,
|
|
596
|
-
getPopupContainer: function getPopupContainer(target) {
|
|
597
|
-
return target.parentElement;
|
|
598
|
-
},
|
|
599
|
-
children: FormItem
|
|
600
|
-
})
|
|
581
|
+
children: FormItem
|
|
601
582
|
});
|
|
602
583
|
};
|
|
603
584
|
export default RenderField;
|