@zat-design/sisyphus-react 3.9.1 → 3.9.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 +56 -28
- package/dist/less.esm.css +56 -28
- package/es/ProDrawerForm/style/index.less +3 -0
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +2 -1
- package/es/ProEditTable/propsType.d.ts +2 -0
- package/es/ProEditTable/style/index.less +11 -4
- package/es/ProEnum/index.js +5 -3
- package/es/ProForm/components/combination/FormList/index.js +1 -1
- package/es/ProForm/components/combination/Group/index.js +15 -8
- package/es/ProForm/components/combination/Group/propsType.d.ts +2 -0
- package/es/ProForm/components/combination/Group/style/index.less +15 -0
- package/es/ProForm/components/combination/Group/utils.js +43 -9
- package/es/ProForm/components/combination/ProCascader/index.js +7 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +14 -13
- package/es/ProForm/components/render/ChangedWrapper.js +2 -1
- package/es/ProForm/style/index.less +2 -2
- package/es/ProLayout/style/index.less +5 -0
- package/es/ProTable/style/index.less +12 -7
- package/lib/ProDrawerForm/style/index.less +3 -0
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +2 -1
- package/lib/ProEditTable/propsType.d.ts +2 -0
- package/lib/ProEditTable/style/index.less +11 -4
- package/lib/ProEnum/index.js +5 -3
- package/lib/ProForm/components/combination/FormList/index.js +1 -1
- package/lib/ProForm/components/combination/Group/index.js +15 -8
- package/lib/ProForm/components/combination/Group/propsType.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/style/index.less +15 -0
- package/lib/ProForm/components/combination/Group/utils.js +44 -9
- package/lib/ProForm/components/combination/ProCascader/index.js +7 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +14 -13
- package/lib/ProForm/components/render/ChangedWrapper.js +2 -1
- package/lib/ProForm/style/index.less +2 -2
- package/lib/ProLayout/style/index.less +5 -0
- package/lib/ProTable/style/index.less +12 -7
- package/package.json +2 -2
- package/.vscode/extensions.json +0 -5
package/dist/index.esm.css
CHANGED
@@ -1246,6 +1246,9 @@
|
|
1246
1246
|
border-radius: var(--zaui-border-radius, 8px) !important;
|
1247
1247
|
background: #E4F2FE;
|
1248
1248
|
}
|
1249
|
+
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-panel .pro-collapse-level2-collapse .ant-collapse-header {
|
1250
|
+
border-radius: 0 !important;
|
1251
|
+
}
|
1249
1252
|
.pro-layout.pro-layout-light .pro-header {
|
1250
1253
|
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
1251
1254
|
}
|
@@ -1899,42 +1902,54 @@
|
|
1899
1902
|
.pro-table .ant-table-tbody .ant-table-cell-fix-right {
|
1900
1903
|
background: unset !important;
|
1901
1904
|
}
|
1902
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell
|
1903
|
-
|
1905
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell,
|
1906
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell,
|
1907
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover,
|
1908
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover {
|
1904
1909
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1905
1910
|
}
|
1906
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell
|
1907
|
-
|
1911
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell,
|
1912
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell,
|
1913
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell,
|
1914
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell {
|
1908
1915
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1909
1916
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1910
1917
|
}
|
1911
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right
|
1912
|
-
|
1918
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right,
|
1919
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right,
|
1920
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-right,
|
1921
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-right {
|
1913
1922
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1914
1923
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1915
1924
|
}
|
1916
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left
|
1917
|
-
|
1925
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left,
|
1926
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left,
|
1927
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-left,
|
1928
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-left {
|
1918
1929
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1919
1930
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1920
1931
|
}
|
1921
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell
|
1932
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .varied-cell,
|
1933
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .varied-cell {
|
1922
1934
|
margin-left: -8px;
|
1923
1935
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
1924
1936
|
background: var(--zaui-contract-bg, #fffaa1) !important;
|
1925
1937
|
border-radius: var(--zaui-border-radius, 8px);
|
1926
1938
|
}
|
1927
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container
|
1939
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container,
|
1940
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
|
1928
1941
|
overflow: hidden;
|
1929
1942
|
white-space: nowrap;
|
1930
1943
|
text-overflow: ellipsis;
|
1931
1944
|
}
|
1932
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container
|
1945
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container,
|
1946
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
|
1933
1947
|
overflow: hidden;
|
1934
1948
|
white-space: nowrap;
|
1935
1949
|
text-overflow: ellipsis;
|
1936
1950
|
}
|
1937
|
-
.pro-table tbody.ant-table-tbody .varied-cell.empty-cell
|
1951
|
+
.pro-table .ant-table table tbody.ant-table-tbody .varied-cell.empty-cell,
|
1952
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .varied-cell.empty-cell {
|
1938
1953
|
width: 24.5px;
|
1939
1954
|
}
|
1940
1955
|
.pro-table .copyable-table-cell .ant-typography {
|
@@ -2167,6 +2182,9 @@
|
|
2167
2182
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
2168
2183
|
background: rgba(0, 106, 255, 0.08);
|
2169
2184
|
}
|
2185
|
+
.ant-table .original-value-tooltip {
|
2186
|
+
position: fixed;
|
2187
|
+
}
|
2170
2188
|
.pro-tooltip {
|
2171
2189
|
cursor: pointer;
|
2172
2190
|
}
|
@@ -2639,6 +2657,17 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
2639
2657
|
border-start-end-radius: 4px;
|
2640
2658
|
border-end-end-radius: 4px;
|
2641
2659
|
}
|
2660
|
+
.pro-group .ant-space-compact .pro-select .ant-select .ant-select-selector {
|
2661
|
+
border-radius: 0 !important;
|
2662
|
+
}
|
2663
|
+
.pro-group .ant-space-compact .pro-select:first-child .ant-select .ant-select-selector {
|
2664
|
+
border-start-start-radius: 4px !important;
|
2665
|
+
border-end-start-radius: 4px !important;
|
2666
|
+
}
|
2667
|
+
.pro-group .ant-space-compact .pro-select:last-child .ant-select .ant-select-selector {
|
2668
|
+
border-start-end-radius: 4px !important;
|
2669
|
+
border-end-end-radius: 4px!important;
|
2670
|
+
}
|
2642
2671
|
.pro-group .ant-space-compact .ant-select .ant-select-selector {
|
2643
2672
|
border-start-end-radius: 0;
|
2644
2673
|
border-end-end-radius: 0;
|
@@ -3073,12 +3102,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
3073
3102
|
.pro-form .pro-form-item-changed .ant-input-number input {
|
3074
3103
|
background: transparent !important;
|
3075
3104
|
}
|
3076
|
-
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
3077
|
-
.pro-form .pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
3078
|
-
.pro-form .pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
3079
|
-
.pro-form .pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
3080
|
-
z-index: 9;
|
3081
|
-
}
|
3082
3105
|
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
3083
3106
|
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
3084
3107
|
background: var(--zaui-contract-bg, #fffaa1);
|
@@ -3134,12 +3157,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
3134
3157
|
.pro-form .pro-form-item-add .ant-input-number input {
|
3135
3158
|
background: transparent !important;
|
3136
3159
|
}
|
3137
|
-
.pro-form .pro-form-item-add span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
3138
|
-
.pro-form .pro-form-item-add .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
3139
|
-
.pro-form .pro-form-item-add .ant-picker .ant-select-selection-placeholder,
|
3140
|
-
.pro-form .pro-form-item-add .ant-input-number .ant-select-selection-placeholder {
|
3141
|
-
z-index: 9;
|
3142
|
-
}
|
3143
3160
|
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-switch-handle),
|
3144
3161
|
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
3145
3162
|
background: var(--zaui-contract-bg-add, #d2fff4);
|
@@ -4251,6 +4268,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
4251
4268
|
.ant-select-tree-node-content-wrapper:has(.pro-tree-wrap-ellipse) {
|
4252
4269
|
overflow: hidden;
|
4253
4270
|
}
|
4271
|
+
.pro-drawer .original-value-tooltip {
|
4272
|
+
position: fixed;
|
4273
|
+
}
|
4254
4274
|
.pro-drawer .pro-drawer-close {
|
4255
4275
|
position: absolute;
|
4256
4276
|
top: 6px;
|
@@ -4617,12 +4637,20 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
4617
4637
|
.pro-edit-table .ant-table-pagination .ant-pagination-options .ant-select.ant-select-in-form-item {
|
4618
4638
|
width: auto;
|
4619
4639
|
}
|
4620
|
-
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row td
|
4621
|
-
|
4640
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td,
|
4641
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-left,
|
4642
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-right,
|
4643
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td,
|
4644
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-left,
|
4645
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-right {
|
4646
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
4647
|
+
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
4622
4648
|
}
|
4623
4649
|
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover td,
|
4624
|
-
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover
|
4625
|
-
|
4650
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row:hover td,
|
4651
|
+
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover .ant-table-cell-row-hover,
|
4652
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row:hover .ant-table-cell-row-hover {
|
4653
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
4626
4654
|
}
|
4627
4655
|
.pro-edit-table-footer {
|
4628
4656
|
margin-top: 12px;
|
package/dist/less.esm.css
CHANGED
@@ -1246,6 +1246,9 @@
|
|
1246
1246
|
border-radius: var(--zaui-border-radius, 8px) !important;
|
1247
1247
|
background: #E4F2FE;
|
1248
1248
|
}
|
1249
|
+
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-panel .pro-collapse-level2-collapse .ant-collapse-header {
|
1250
|
+
border-radius: 0 !important;
|
1251
|
+
}
|
1249
1252
|
.pro-layout.pro-layout-light .pro-header {
|
1250
1253
|
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
1251
1254
|
}
|
@@ -1899,42 +1902,54 @@
|
|
1899
1902
|
.pro-table .ant-table-tbody .ant-table-cell-fix-right {
|
1900
1903
|
background: unset !important;
|
1901
1904
|
}
|
1902
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell
|
1903
|
-
|
1905
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell,
|
1906
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell,
|
1907
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover,
|
1908
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover {
|
1904
1909
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1905
1910
|
}
|
1906
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell
|
1907
|
-
|
1911
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell,
|
1912
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell,
|
1913
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell,
|
1914
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell {
|
1908
1915
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1909
1916
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1910
1917
|
}
|
1911
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right
|
1912
|
-
|
1918
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right,
|
1919
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-right,
|
1920
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-right,
|
1921
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-right {
|
1913
1922
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1914
1923
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1915
1924
|
}
|
1916
|
-
.pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left
|
1917
|
-
|
1925
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left,
|
1926
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell.ant-table-cell-fix-left,
|
1927
|
+
.pro-table .ant-table table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-left,
|
1928
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody tr.ant-table-row.new-cell:hover td.ant-table-cell.ant-table-cell-fix-left {
|
1918
1929
|
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
1919
1930
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
1920
1931
|
}
|
1921
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell
|
1932
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .varied-cell,
|
1933
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .varied-cell {
|
1922
1934
|
margin-left: -8px;
|
1923
1935
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
1924
1936
|
background: var(--zaui-contract-bg, #fffaa1) !important;
|
1925
1937
|
border-radius: var(--zaui-border-radius, 8px);
|
1926
1938
|
}
|
1927
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container
|
1939
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container,
|
1940
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
|
1928
1941
|
overflow: hidden;
|
1929
1942
|
white-space: nowrap;
|
1930
1943
|
text-overflow: ellipsis;
|
1931
1944
|
}
|
1932
|
-
.pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container
|
1945
|
+
.pro-table .ant-table table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container,
|
1946
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
|
1933
1947
|
overflow: hidden;
|
1934
1948
|
white-space: nowrap;
|
1935
1949
|
text-overflow: ellipsis;
|
1936
1950
|
}
|
1937
|
-
.pro-table tbody.ant-table-tbody .varied-cell.empty-cell
|
1951
|
+
.pro-table .ant-table table tbody.ant-table-tbody .varied-cell.empty-cell,
|
1952
|
+
.pro-table .ant-table.ant-table-scroll-horizontal table tbody.ant-table-tbody .varied-cell.empty-cell {
|
1938
1953
|
width: 24.5px;
|
1939
1954
|
}
|
1940
1955
|
.pro-table .copyable-table-cell .ant-typography {
|
@@ -2167,6 +2182,9 @@
|
|
2167
2182
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
2168
2183
|
background: rgba(0, 106, 255, 0.08);
|
2169
2184
|
}
|
2185
|
+
.ant-table .original-value-tooltip {
|
2186
|
+
position: fixed;
|
2187
|
+
}
|
2170
2188
|
.pro-tooltip {
|
2171
2189
|
cursor: pointer;
|
2172
2190
|
}
|
@@ -2639,6 +2657,17 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
2639
2657
|
border-start-end-radius: 4px;
|
2640
2658
|
border-end-end-radius: 4px;
|
2641
2659
|
}
|
2660
|
+
.pro-group .ant-space-compact .pro-select .ant-select .ant-select-selector {
|
2661
|
+
border-radius: 0 !important;
|
2662
|
+
}
|
2663
|
+
.pro-group .ant-space-compact .pro-select:first-child .ant-select .ant-select-selector {
|
2664
|
+
border-start-start-radius: 4px !important;
|
2665
|
+
border-end-start-radius: 4px !important;
|
2666
|
+
}
|
2667
|
+
.pro-group .ant-space-compact .pro-select:last-child .ant-select .ant-select-selector {
|
2668
|
+
border-start-end-radius: 4px !important;
|
2669
|
+
border-end-end-radius: 4px!important;
|
2670
|
+
}
|
2642
2671
|
.pro-group .ant-space-compact .ant-select .ant-select-selector {
|
2643
2672
|
border-start-end-radius: 0;
|
2644
2673
|
border-end-end-radius: 0;
|
@@ -3073,12 +3102,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
3073
3102
|
.pro-form .pro-form-item-changed .ant-input-number input {
|
3074
3103
|
background: transparent !important;
|
3075
3104
|
}
|
3076
|
-
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
3077
|
-
.pro-form .pro-form-item-changed .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
3078
|
-
.pro-form .pro-form-item-changed .ant-picker .ant-select-selection-placeholder,
|
3079
|
-
.pro-form .pro-form-item-changed .ant-input-number .ant-select-selection-placeholder {
|
3080
|
-
z-index: 9;
|
3081
|
-
}
|
3082
3105
|
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-switch-handle),
|
3083
3106
|
.pro-form .pro-form-item-changed .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
3084
3107
|
background: var(--zaui-contract-bg, #fffaa1);
|
@@ -3134,12 +3157,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
3134
3157
|
.pro-form .pro-form-item-add .ant-input-number input {
|
3135
3158
|
background: transparent !important;
|
3136
3159
|
}
|
3137
|
-
.pro-form .pro-form-item-add span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
3138
|
-
.pro-form .pro-form-item-add .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
3139
|
-
.pro-form .pro-form-item-add .ant-picker .ant-select-selection-placeholder,
|
3140
|
-
.pro-form .pro-form-item-add .ant-input-number .ant-select-selection-placeholder {
|
3141
|
-
z-index: 9;
|
3142
|
-
}
|
3143
3160
|
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-switch-handle),
|
3144
3161
|
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
3145
3162
|
background: var(--zaui-contract-bg-add, #d2fff4);
|
@@ -4251,6 +4268,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
4251
4268
|
.ant-select-tree-node-content-wrapper:has(.pro-tree-wrap-ellipse) {
|
4252
4269
|
overflow: hidden;
|
4253
4270
|
}
|
4271
|
+
.pro-drawer .original-value-tooltip {
|
4272
|
+
position: fixed;
|
4273
|
+
}
|
4254
4274
|
.pro-drawer .pro-drawer-close {
|
4255
4275
|
position: absolute;
|
4256
4276
|
top: 6px;
|
@@ -4617,12 +4637,20 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
4617
4637
|
.pro-edit-table .ant-table-pagination .ant-pagination-options .ant-select.ant-select-in-form-item {
|
4618
4638
|
width: auto;
|
4619
4639
|
}
|
4620
|
-
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row td
|
4621
|
-
|
4640
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td,
|
4641
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-left,
|
4642
|
+
.pro-edit-table .ant-table table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-right,
|
4643
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td,
|
4644
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-left,
|
4645
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row td.ant-table-cell-fix-right {
|
4646
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
4647
|
+
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
4622
4648
|
}
|
4623
4649
|
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover td,
|
4624
|
-
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover
|
4625
|
-
|
4650
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row:hover td,
|
4651
|
+
.pro-edit-table .ant-table .ant-table-tbody .is-new-row.ant-table-row:hover .ant-table-cell-row-hover,
|
4652
|
+
.pro-edit-table .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .is-new-row.ant-table-row:hover .ant-table-cell-row-hover {
|
4653
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
4626
4654
|
}
|
4627
4655
|
.pro-edit-table-footer {
|
4628
4656
|
margin-top: 12px;
|
@@ -118,7 +118,8 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
118
118
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
119
119
|
var diffType = useMemo(function () {
|
120
120
|
if (!isWatch || noChange) return 'same';
|
121
|
-
var _value = normalize ? normalize(props[valuePropName])
|
121
|
+
var _value = normalize ? normalize(props[valuePropName], undefined, undefined, true) // true 代表是值比对时的调用
|
122
|
+
: props[valuePropName];
|
122
123
|
return diffOriginal({
|
123
124
|
value: _value,
|
124
125
|
originalValue: originalValue,
|
@@ -8,6 +8,7 @@ import type { ColumnType, TableProps } from 'antd/es/table';
|
|
8
8
|
import type { FormInstance, FormItemProps } from 'antd/es/form';
|
9
9
|
import type { FunctionArgs, ProRule } from '../ProForm/propsType';
|
10
10
|
import { ProFormValueType, ColumnPropsMap } from '../ProForm/components/render/propsType';
|
11
|
+
import { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
11
12
|
export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDelete' | 'custom';
|
12
13
|
export type ShowFunction<T> = (record?: T, options?: {
|
13
14
|
index?: number;
|
@@ -105,6 +106,7 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
|
|
105
106
|
hiddenNames?: NamePath[] | NamePath[][];
|
106
107
|
rules?: ProRule[] | RulesFn<T>;
|
107
108
|
confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
|
109
|
+
onDiff?: DiffOriginalParams['equalWith'];
|
108
110
|
[key: string]: any;
|
109
111
|
}
|
110
112
|
export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnPropsMap<K, 'ProEditTable'>;
|
@@ -290,12 +290,19 @@
|
|
290
290
|
}
|
291
291
|
}
|
292
292
|
|
293
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td
|
294
|
-
|
293
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td,
|
294
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-left,
|
295
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-right,
|
296
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td,
|
297
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-left,
|
298
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-right{
|
299
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
300
|
+
border-bottom: 1px solid var(--zaui-form-control-line,#dcdcdc) ;
|
295
301
|
}
|
296
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover
|
302
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover,
|
303
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover{
|
297
304
|
td, .@{ant-prefix}-table-cell-row-hover {
|
298
|
-
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
305
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
299
306
|
}
|
300
307
|
}
|
301
308
|
}
|
package/es/ProEnum/index.js
CHANGED
@@ -27,8 +27,9 @@ import getEnumLabel from './utils/getEnumLabel';
|
|
27
27
|
import useEnum from './hooks/useEnum';
|
28
28
|
import locale from '../locale';
|
29
29
|
import './style/index.less';
|
30
|
+
import { useFieldProps } from '../ProForm/utils/useFieldProps';
|
30
31
|
var ProEnum = function ProEnum(props) {
|
31
|
-
var _enumProps$showCodeNa;
|
32
|
+
var _otherProps$isView, _enumProps$showCodeNa;
|
32
33
|
var code = props.code,
|
33
34
|
_props$type = props.type,
|
34
35
|
type = _props$type === void 0 ? 'ProSelect' : _props$type,
|
@@ -43,8 +44,9 @@ var ProEnum = function ProEnum(props) {
|
|
43
44
|
enumProps = _objectWithoutProperties(props, _excluded);
|
44
45
|
var _ref = otherProps || {},
|
45
46
|
viewEmpty = _ref.viewEmpty;
|
46
|
-
var _isView = isView !== undefined && isView !== null ? isView : otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView;
|
47
47
|
var _defalutValue = props === null || props === void 0 ? void 0 : props.defaultValue;
|
48
|
+
var _useFieldProps = useFieldProps(),
|
49
|
+
configIsView = _useFieldProps.isView;
|
48
50
|
var _ref2 = useProConfig('ProEnum') || {},
|
49
51
|
fieldNames = _ref2.fieldNames,
|
50
52
|
_ref2$clear = _ref2.clear,
|
@@ -53,6 +55,7 @@ var ProEnum = function ProEnum(props) {
|
|
53
55
|
cacheKey = _ref2$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref2$cacheKey,
|
54
56
|
showCodeName = _ref2.showCodeName,
|
55
57
|
resProps = _objectWithoutProperties(_ref2, _excluded2);
|
58
|
+
var _isView = isView !== undefined && isView !== null ? isView : (_otherProps$isView = otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView) !== null && _otherProps$isView !== void 0 ? _otherProps$isView : configIsView;
|
56
59
|
enumProps.showCodeName = (_enumProps$showCodeNa = enumProps.showCodeName) !== null && _enumProps$showCodeNa !== void 0 ? _enumProps$showCodeNa : showCodeName;
|
57
60
|
var label = 'label';
|
58
61
|
var fieldValue = 'value';
|
@@ -228,7 +231,6 @@ var ProEnum = function ProEnum(props) {
|
|
228
231
|
if (!code && !dataSource && !useRequest) {
|
229
232
|
var _locale$ProEnum4;
|
230
233
|
_message.error(locale === null || locale === void 0 ? void 0 : (_locale$ProEnum4 = locale.ProEnum) === null || _locale$ProEnum4 === void 0 ? void 0 : _locale$ProEnum4.errorNoEnumType);
|
231
|
-
// return;
|
232
234
|
}
|
233
235
|
var transToLabel = function transToLabel(value) {
|
234
236
|
var list = dataList && dataList.length ? dataList : enumLists;
|
@@ -43,7 +43,7 @@ var FormList = function FormList(props, ref) {
|
|
43
43
|
var _namePath = toArray(name);
|
44
44
|
var orgValues = get(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues, name);
|
45
45
|
var _diffConfig = _objectSpread(_objectSpread({}, diffConfig), {}, {
|
46
|
-
originalValues: isDiffAll ? orgValues || [] : orgValues
|
46
|
+
originalValues: (diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues) && isDiffAll ? orgValues || [] : orgValues
|
47
47
|
});
|
48
48
|
var processColumns = useCallback(function (fieldName, namePath) {
|
49
49
|
return columns.map(function (item) {
|
@@ -70,23 +70,30 @@ var Group = function Group(props) {
|
|
70
70
|
id: id,
|
71
71
|
children: space.compact || (space === null || space === void 0 ? void 0 : space.separator) ? _jsx(_Space.Compact, {
|
72
72
|
children: columns.map(function (column, index) {
|
73
|
-
|
73
|
+
column.otherProps = otherProps;
|
74
|
+
// 自定义间隔移除对于参数
|
75
|
+
if (column === null || column === void 0 ? void 0 : column.separator) {
|
76
|
+
delete column.separator;
|
77
|
+
delete column.otherProps;
|
78
|
+
}
|
79
|
+
return _jsx(ComRender, _objectSpread({
|
74
80
|
contextProps: contextProps,
|
75
81
|
isView: isParentView || isView
|
76
|
-
}, column),
|
77
|
-
otherProps: otherProps
|
78
|
-
}), column.name);
|
82
|
+
}, column), column.name || index);
|
79
83
|
})
|
80
84
|
}) : _jsx(_Space, _objectSpread(_objectSpread({
|
81
85
|
align: "start"
|
82
86
|
}, omit(space, ['separator', 'compact'])), {}, {
|
83
87
|
children: columns.map(function (column, index) {
|
84
|
-
|
88
|
+
column.otherProps = otherProps;
|
89
|
+
if (column === null || column === void 0 ? void 0 : column.separator) {
|
90
|
+
delete column.separator;
|
91
|
+
delete column.otherProps;
|
92
|
+
}
|
93
|
+
return _jsx(ComRender, _objectSpread({
|
85
94
|
contextProps: contextProps,
|
86
95
|
isView: isParentView || isView
|
87
|
-
}, column),
|
88
|
-
otherProps: otherProps
|
89
|
-
}), column.name);
|
96
|
+
}, column), column.name || index);
|
90
97
|
})
|
91
98
|
}))
|
92
99
|
});
|
@@ -104,6 +104,21 @@
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
|
107
|
+
.pro-select {
|
108
|
+
.@{ant-prefix}-select .@{ant-prefix}-select-selector{
|
109
|
+
border-radius: 0 !important;
|
110
|
+
}
|
111
|
+
&:first-child .@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
112
|
+
border-start-start-radius: 4px !important;
|
113
|
+
border-end-start-radius: 4px !important;
|
114
|
+
}
|
115
|
+
|
116
|
+
&:last-child .@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
117
|
+
border-start-end-radius: 4px !important;
|
118
|
+
border-end-end-radius: 4px!important;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
107
122
|
.@{ant-prefix}-select {
|
108
123
|
.@{ant-prefix}-select-selector {
|
109
124
|
.border-radius(0, 0, 0, 0);
|
@@ -4,8 +4,10 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
4
|
import "antd/es/button/style";
|
5
5
|
import _Button from "antd/es/button";
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
/* eslint-disable no-lonely-if */
|
7
8
|
import { useRef } from 'react';
|
8
9
|
import { cloneDeep, isEqual, isFunction } from 'lodash';
|
10
|
+
import { validate } from '@zat-design/utils';
|
9
11
|
import valueTypeMap from '../../../utils/valueType';
|
10
12
|
import { useDeepCompareMemo } from '../../../utils/useDeepCompareMemo';
|
11
13
|
import { difference } from '../../../../ProEditTable/utils/tools';
|
@@ -18,20 +20,52 @@ export var insertSeparator = function insertSeparator(columns, space) {
|
|
18
20
|
if (!(space === null || space === void 0 ? void 0 : space.separator)) {
|
19
21
|
return columns;
|
20
22
|
}
|
23
|
+
var separatorIndexs = function () {
|
24
|
+
var reuslt = [];
|
25
|
+
if (validate.isEmpty(space === null || space === void 0 ? void 0 : space.separatorIndex)) {
|
26
|
+
return reuslt;
|
27
|
+
}
|
28
|
+
// 如果 index 是数字,将其转换为数组
|
29
|
+
if (typeof (space === null || space === void 0 ? void 0 : space.separatorIndex) === 'number') {
|
30
|
+
reuslt.push(space.separatorIndex);
|
31
|
+
}
|
32
|
+
if (Array.isArray(space.separatorIndex)) {
|
33
|
+
reuslt = reuslt.concat(space.separatorIndex);
|
34
|
+
}
|
35
|
+
return reuslt;
|
36
|
+
}();
|
21
37
|
return columns.reduce(function (result, current, index, array) {
|
22
38
|
// 将当前元素添加到结果数组中
|
23
39
|
result.push(current);
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
40
|
+
if (separatorIndexs === null || separatorIndexs === void 0 ? void 0 : separatorIndexs.length) {
|
41
|
+
separatorIndexs.forEach(function (separatorIndex) {
|
42
|
+
if (index === separatorIndex) {
|
43
|
+
result.push({
|
44
|
+
separator: true,
|
45
|
+
component: _jsx(_Button, {
|
46
|
+
className: "group-separator",
|
47
|
+
children: space.separator
|
48
|
+
}),
|
49
|
+
fieldProps: {
|
50
|
+
disabled: true
|
51
|
+
}
|
52
|
+
});
|
33
53
|
}
|
34
54
|
});
|
55
|
+
} else {
|
56
|
+
// 如果当前元素不是最后一个元素,则添加间隔符
|
57
|
+
if (index < array.length - 1) {
|
58
|
+
result.push({
|
59
|
+
separator: true,
|
60
|
+
component: _jsx(_Button, {
|
61
|
+
className: "group-separator",
|
62
|
+
children: space.separator
|
63
|
+
}),
|
64
|
+
fieldProps: {
|
65
|
+
disabled: true
|
66
|
+
}
|
67
|
+
});
|
68
|
+
}
|
35
69
|
}
|
36
70
|
return result;
|
37
71
|
}, []);
|
@@ -35,11 +35,17 @@ var _filterDataSource = function filterDataSource(dataSource, level, fieldNames)
|
|
35
35
|
});
|
36
36
|
};
|
37
37
|
var getViewLabel = function getViewLabel(_ref) {
|
38
|
+
var _value2;
|
38
39
|
var dataSource = _ref.dataSource,
|
39
40
|
value = _ref.value;
|
41
|
+
var _value = value;
|
40
42
|
var viewLabel = [];
|
43
|
+
// fix: value是string类型,需要转为数组
|
44
|
+
if (_value && !Array.isArray(_value)) {
|
45
|
+
_value = [value];
|
46
|
+
}
|
41
47
|
// 根据dataSource得到label数组,查看模式展示需要
|
42
|
-
|
48
|
+
(_value2 = _value) === null || _value2 === void 0 ? void 0 : _value2.forEach(function (value, index) {
|
43
49
|
var _dataSource;
|
44
50
|
var temp = (_dataSource = dataSource) === null || _dataSource === void 0 ? void 0 : _dataSource.find(function (item) {
|
45
51
|
return (item === null || item === void 0 ? void 0 : item.value) === value;
|
@@ -666,7 +666,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
666
666
|
run(nextParams);
|
667
667
|
}, 300);
|
668
668
|
}
|
669
|
-
}, [JSON.stringify(value),
|
669
|
+
}, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams)]);
|
670
670
|
useDebounceEffect(function () {
|
671
671
|
if (!value) {
|
672
672
|
if (defaultOne) {
|
@@ -830,23 +830,24 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
830
830
|
children: "".concat(viewText)
|
831
831
|
});
|
832
832
|
}
|
833
|
-
return _jsxs(
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
833
|
+
return _jsxs(_Fragment, {
|
834
|
+
children: [_jsx("div", {
|
835
|
+
id: uuid,
|
836
|
+
className: "pro-modal-select ".concat(className !== null && className !== void 0 ? className : ''),
|
837
|
+
style: style,
|
838
|
+
children: isTooltip && viewText ? _jsx(_Tooltip, {
|
839
|
+
placement: "topLeft",
|
840
|
+
open: open,
|
841
|
+
title: viewText,
|
842
|
+
children: initRender
|
843
|
+
}) : initRender
|
844
|
+
}), _jsxs(ProDrawerForm, _objectSpread(_objectSpread({
|
843
845
|
showType: "Modal",
|
844
846
|
title: title,
|
845
847
|
onOk: handleFinish,
|
846
848
|
// @ts-ignore
|
847
849
|
onCancel: handleClose,
|
848
|
-
visible: visible
|
849
|
-
zIndex: 1071
|
850
|
+
visible: visible
|
850
851
|
}, restModalProps), {}, {
|
851
852
|
children: [_jsx(ProForm, {
|
852
853
|
submitOnEnter: true,
|
@@ -44,7 +44,8 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
44
44
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
45
45
|
var diffType = useMemo(function () {
|
46
46
|
if (!isWatch || noChange) return 'same';
|
47
|
-
var _value = normalize ? normalize(props[valuePropName])
|
47
|
+
var _value = normalize ? normalize(props[valuePropName], undefined, undefined, true) // true 代表是值比对时的调用
|
48
|
+
: props[valuePropName];
|
48
49
|
return diffOriginal({
|
49
50
|
originalValue: originalValue,
|
50
51
|
value: _value,
|
@@ -351,7 +351,7 @@
|
|
351
351
|
background: transparent !important;
|
352
352
|
}
|
353
353
|
.@{ant-prefix}-select-selection-placeholder {
|
354
|
-
z-index: 9;
|
354
|
+
// z-index: 9;
|
355
355
|
}
|
356
356
|
}
|
357
357
|
|
@@ -429,7 +429,7 @@
|
|
429
429
|
background: transparent !important;
|
430
430
|
}
|
431
431
|
.@{ant-prefix}-select-selection-placeholder {
|
432
|
-
z-index: 9;
|
432
|
+
// z-index: 9;
|
433
433
|
}
|
434
434
|
}
|
435
435
|
|
@@ -257,21 +257,20 @@
|
|
257
257
|
}
|
258
258
|
}
|
259
259
|
|
260
|
-
|
261
|
-
|
262
|
-
|
260
|
+
|
261
|
+
.@{ant-prefix}-table table tbody.@{ant-prefix}-table-tbody,
|
262
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table tbody.@{ant-prefix}-table-tbody {
|
263
|
+
tr.@{ant-prefix}-table-row.new-cell,
|
264
|
+
tr.@{ant-prefix}-table-row.new-cell:hover {
|
263
265
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
264
|
-
td.@{ant-prefix}-table-cell
|
265
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
266
|
+
td.@{ant-prefix}-table-cell{
|
266
267
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
267
268
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
268
269
|
&.@{ant-prefix}-table-cell-fix-right {
|
269
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
270
270
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
271
271
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
272
272
|
}
|
273
273
|
&.@{ant-prefix}-table-cell-fix-left {
|
274
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
275
274
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
276
275
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
277
276
|
}
|
@@ -583,3 +582,9 @@
|
|
583
582
|
}
|
584
583
|
}
|
585
584
|
}
|
585
|
+
|
586
|
+
.@{ant-prefix}-table{
|
587
|
+
.original-value-tooltip{
|
588
|
+
position: fixed;
|
589
|
+
}
|
590
|
+
}
|
@@ -123,7 +123,8 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
123
123
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : (0, _utils.isEmpty)(originalValue));
|
124
124
|
var diffType = (0, _react.useMemo)(function () {
|
125
125
|
if (!isWatch || noChange) return 'same';
|
126
|
-
var _value = normalize ? normalize(props[valuePropName])
|
126
|
+
var _value = normalize ? normalize(props[valuePropName], undefined, undefined, true) // true 代表是值比对时的调用
|
127
|
+
: props[valuePropName];
|
127
128
|
return (0, _diffOriginal.diffOriginal)({
|
128
129
|
value: _value,
|
129
130
|
originalValue: originalValue,
|
@@ -8,6 +8,7 @@ import type { ColumnType, TableProps } from 'antd/es/table';
|
|
8
8
|
import type { FormInstance, FormItemProps } from 'antd/es/form';
|
9
9
|
import type { FunctionArgs, ProRule } from '../ProForm/propsType';
|
10
10
|
import { ProFormValueType, ColumnPropsMap } from '../ProForm/components/render/propsType';
|
11
|
+
import { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
|
11
12
|
export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDelete' | 'custom';
|
12
13
|
export type ShowFunction<T> = (record?: T, options?: {
|
13
14
|
index?: number;
|
@@ -105,6 +106,7 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
|
|
105
106
|
hiddenNames?: NamePath[] | NamePath[][];
|
106
107
|
rules?: ProRule[] | RulesFn<T>;
|
107
108
|
confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
|
109
|
+
onDiff?: DiffOriginalParams['equalWith'];
|
108
110
|
[key: string]: any;
|
109
111
|
}
|
110
112
|
export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnPropsMap<K, 'ProEditTable'>;
|
@@ -290,12 +290,19 @@
|
|
290
290
|
}
|
291
291
|
}
|
292
292
|
|
293
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td
|
294
|
-
|
293
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td,
|
294
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-left,
|
295
|
+
.@{ant-prefix}-table table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-right,
|
296
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td,
|
297
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-left,
|
298
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row td.@{ant-prefix}-table-cell-fix-right{
|
299
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
300
|
+
border-bottom: 1px solid var(--zaui-form-control-line,#dcdcdc) ;
|
295
301
|
}
|
296
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover
|
302
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover,
|
303
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table .@{ant-prefix}-table-tbody .is-new-row.@{ant-prefix}-table-row:hover{
|
297
304
|
td, .@{ant-prefix}-table-cell-row-hover {
|
298
|
-
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
305
|
+
background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
|
299
306
|
}
|
300
307
|
}
|
301
308
|
}
|
package/lib/ProEnum/index.js
CHANGED
@@ -26,10 +26,11 @@ var _getEnumLabel = _interopRequireDefault(require("./utils/getEnumLabel"));
|
|
26
26
|
var _useEnum = _interopRequireDefault(require("./hooks/useEnum"));
|
27
27
|
var _locale = _interopRequireDefault(require("../locale"));
|
28
28
|
require("./style/index.less");
|
29
|
+
var _useFieldProps2 = require("../ProForm/utils/useFieldProps");
|
29
30
|
var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps", "isView"],
|
30
31
|
_excluded2 = ["fieldNames", "clear", "cacheKey", "showCodeName"];
|
31
32
|
var ProEnum = function ProEnum(props) {
|
32
|
-
var _enumProps$showCodeNa;
|
33
|
+
var _otherProps$isView, _enumProps$showCodeNa;
|
33
34
|
var code = props.code,
|
34
35
|
_props$type = props.type,
|
35
36
|
type = _props$type === void 0 ? 'ProSelect' : _props$type,
|
@@ -44,8 +45,9 @@ var ProEnum = function ProEnum(props) {
|
|
44
45
|
enumProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
45
46
|
var _ref = otherProps || {},
|
46
47
|
viewEmpty = _ref.viewEmpty;
|
47
|
-
var _isView = isView !== undefined && isView !== null ? isView : otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView;
|
48
48
|
var _defalutValue = props === null || props === void 0 ? void 0 : props.defaultValue;
|
49
|
+
var _useFieldProps = (0, _useFieldProps2.useFieldProps)(),
|
50
|
+
configIsView = _useFieldProps.isView;
|
49
51
|
var _ref2 = (0, _ProConfigProvider.useProConfig)('ProEnum') || {},
|
50
52
|
fieldNames = _ref2.fieldNames,
|
51
53
|
_ref2$clear = _ref2.clear,
|
@@ -54,6 +56,7 @@ var ProEnum = function ProEnum(props) {
|
|
54
56
|
cacheKey = _ref2$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref2$cacheKey,
|
55
57
|
showCodeName = _ref2.showCodeName,
|
56
58
|
resProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
59
|
+
var _isView = isView !== undefined && isView !== null ? isView : (_otherProps$isView = otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView) !== null && _otherProps$isView !== void 0 ? _otherProps$isView : configIsView;
|
57
60
|
enumProps.showCodeName = (_enumProps$showCodeNa = enumProps.showCodeName) !== null && _enumProps$showCodeNa !== void 0 ? _enumProps$showCodeNa : showCodeName;
|
58
61
|
var label = 'label';
|
59
62
|
var fieldValue = 'value';
|
@@ -229,7 +232,6 @@ var ProEnum = function ProEnum(props) {
|
|
229
232
|
if (!code && !dataSource && !useRequest) {
|
230
233
|
var _locale$ProEnum4;
|
231
234
|
_antd.message.error(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProEnum4 = _locale.default.ProEnum) === null || _locale$ProEnum4 === void 0 ? void 0 : _locale$ProEnum4.errorNoEnumType);
|
232
|
-
// return;
|
233
235
|
}
|
234
236
|
var transToLabel = function transToLabel(value) {
|
235
237
|
var list = dataList && dataList.length ? dataList : enumLists;
|
@@ -49,7 +49,7 @@ var FormList = function FormList(props, ref) {
|
|
49
49
|
var _namePath = (0, _utils.toArray)(name);
|
50
50
|
var orgValues = (0, _lodash.get)(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues, name);
|
51
51
|
var _diffConfig = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, diffConfig), {}, {
|
52
|
-
originalValues: isDiffAll ? orgValues || [] : orgValues
|
52
|
+
originalValues: (diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues) && isDiffAll ? orgValues || [] : orgValues
|
53
53
|
});
|
54
54
|
var processColumns = (0, _react.useCallback)(function (fieldName, namePath) {
|
55
55
|
return columns.map(function (item) {
|
@@ -76,23 +76,30 @@ var Group = function Group(props) {
|
|
76
76
|
id: id,
|
77
77
|
children: space.compact || (space === null || space === void 0 ? void 0 : space.separator) ? (0, _jsxRuntime.jsx)(_antd.Space.Compact, {
|
78
78
|
children: columns.map(function (column, index) {
|
79
|
-
|
79
|
+
column.otherProps = otherProps;
|
80
|
+
// 自定义间隔移除对于参数
|
81
|
+
if (column === null || column === void 0 ? void 0 : column.separator) {
|
82
|
+
delete column.separator;
|
83
|
+
delete column.otherProps;
|
84
|
+
}
|
85
|
+
return (0, _jsxRuntime.jsx)(_ComRender.default, (0, _objectSpread2.default)({
|
80
86
|
contextProps: contextProps,
|
81
87
|
isView: isParentView || isView
|
82
|
-
}, column),
|
83
|
-
otherProps: otherProps
|
84
|
-
}), column.name);
|
88
|
+
}, column), column.name || index);
|
85
89
|
})
|
86
90
|
}) : (0, _jsxRuntime.jsx)(_antd.Space, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
87
91
|
align: "start"
|
88
92
|
}, (0, _lodash.omit)(space, ['separator', 'compact'])), {}, {
|
89
93
|
children: columns.map(function (column, index) {
|
90
|
-
|
94
|
+
column.otherProps = otherProps;
|
95
|
+
if (column === null || column === void 0 ? void 0 : column.separator) {
|
96
|
+
delete column.separator;
|
97
|
+
delete column.otherProps;
|
98
|
+
}
|
99
|
+
return (0, _jsxRuntime.jsx)(_ComRender.default, (0, _objectSpread2.default)({
|
91
100
|
contextProps: contextProps,
|
92
101
|
isView: isParentView || isView
|
93
|
-
}, column),
|
94
|
-
otherProps: otherProps
|
95
|
-
}), column.name);
|
102
|
+
}, column), column.name || index);
|
96
103
|
})
|
97
104
|
}))
|
98
105
|
});
|
@@ -104,6 +104,21 @@
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
|
107
|
+
.pro-select {
|
108
|
+
.@{ant-prefix}-select .@{ant-prefix}-select-selector{
|
109
|
+
border-radius: 0 !important;
|
110
|
+
}
|
111
|
+
&:first-child .@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
112
|
+
border-start-start-radius: 4px !important;
|
113
|
+
border-end-start-radius: 4px !important;
|
114
|
+
}
|
115
|
+
|
116
|
+
&:last-child .@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
117
|
+
border-start-end-radius: 4px !important;
|
118
|
+
border-end-end-radius: 4px!important;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
107
122
|
.@{ant-prefix}-select {
|
108
123
|
.@{ant-prefix}-select-selector {
|
109
124
|
.border-radius(0, 0, 0, 0);
|
@@ -12,10 +12,13 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
13
13
|
var _react = require("react");
|
14
14
|
var _lodash = require("lodash");
|
15
|
+
var _utils = require("@zat-design/utils");
|
15
16
|
var _antd = require("antd");
|
16
17
|
var _valueType = _interopRequireDefault(require("../../../utils/valueType"));
|
17
18
|
var _useDeepCompareMemo = require("../../../utils/useDeepCompareMemo");
|
18
19
|
var _tools = require("../../../../ProEditTable/utils/tools");
|
20
|
+
/* eslint-disable no-lonely-if */
|
21
|
+
|
19
22
|
/**
|
20
23
|
* 插入间隔符
|
21
24
|
* @param columns 表单配置数组
|
@@ -25,20 +28,52 @@ var insertSeparator = exports.insertSeparator = function insertSeparator(columns
|
|
25
28
|
if (!(space === null || space === void 0 ? void 0 : space.separator)) {
|
26
29
|
return columns;
|
27
30
|
}
|
31
|
+
var separatorIndexs = function () {
|
32
|
+
var reuslt = [];
|
33
|
+
if (_utils.validate.isEmpty(space === null || space === void 0 ? void 0 : space.separatorIndex)) {
|
34
|
+
return reuslt;
|
35
|
+
}
|
36
|
+
// 如果 index 是数字,将其转换为数组
|
37
|
+
if (typeof (space === null || space === void 0 ? void 0 : space.separatorIndex) === 'number') {
|
38
|
+
reuslt.push(space.separatorIndex);
|
39
|
+
}
|
40
|
+
if (Array.isArray(space.separatorIndex)) {
|
41
|
+
reuslt = reuslt.concat(space.separatorIndex);
|
42
|
+
}
|
43
|
+
return reuslt;
|
44
|
+
}();
|
28
45
|
return columns.reduce(function (result, current, index, array) {
|
29
46
|
// 将当前元素添加到结果数组中
|
30
47
|
result.push(current);
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
48
|
+
if (separatorIndexs === null || separatorIndexs === void 0 ? void 0 : separatorIndexs.length) {
|
49
|
+
separatorIndexs.forEach(function (separatorIndex) {
|
50
|
+
if (index === separatorIndex) {
|
51
|
+
result.push({
|
52
|
+
separator: true,
|
53
|
+
component: (0, _jsxRuntime.jsx)(_antd.Button, {
|
54
|
+
className: "group-separator",
|
55
|
+
children: space.separator
|
56
|
+
}),
|
57
|
+
fieldProps: {
|
58
|
+
disabled: true
|
59
|
+
}
|
60
|
+
});
|
40
61
|
}
|
41
62
|
});
|
63
|
+
} else {
|
64
|
+
// 如果当前元素不是最后一个元素,则添加间隔符
|
65
|
+
if (index < array.length - 1) {
|
66
|
+
result.push({
|
67
|
+
separator: true,
|
68
|
+
component: (0, _jsxRuntime.jsx)(_antd.Button, {
|
69
|
+
className: "group-separator",
|
70
|
+
children: space.separator
|
71
|
+
}),
|
72
|
+
fieldProps: {
|
73
|
+
disabled: true
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}
|
42
77
|
}
|
43
78
|
return result;
|
44
79
|
}, []);
|
@@ -35,11 +35,17 @@ var _filterDataSource = function filterDataSource(dataSource, level, fieldNames)
|
|
35
35
|
});
|
36
36
|
};
|
37
37
|
var getViewLabel = function getViewLabel(_ref) {
|
38
|
+
var _value2;
|
38
39
|
var dataSource = _ref.dataSource,
|
39
40
|
value = _ref.value;
|
41
|
+
var _value = value;
|
40
42
|
var viewLabel = [];
|
43
|
+
// fix: value是string类型,需要转为数组
|
44
|
+
if (_value && !Array.isArray(_value)) {
|
45
|
+
_value = [value];
|
46
|
+
}
|
41
47
|
// 根据dataSource得到label数组,查看模式展示需要
|
42
|
-
|
48
|
+
(_value2 = _value) === null || _value2 === void 0 ? void 0 : _value2.forEach(function (value, index) {
|
43
49
|
var _dataSource;
|
44
50
|
var temp = (_dataSource = dataSource) === null || _dataSource === void 0 ? void 0 : _dataSource.find(function (item) {
|
45
51
|
return (item === null || item === void 0 ? void 0 : item.value) === value;
|
@@ -661,7 +661,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
661
661
|
run(nextParams);
|
662
662
|
}, 300);
|
663
663
|
}
|
664
|
-
}, [JSON.stringify(value),
|
664
|
+
}, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams)]);
|
665
665
|
(0, _ahooks.useDebounceEffect)(function () {
|
666
666
|
if (!value) {
|
667
667
|
if (defaultOne) {
|
@@ -825,23 +825,24 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
825
825
|
children: "".concat(viewText)
|
826
826
|
});
|
827
827
|
}
|
828
|
-
return (0, _jsxRuntime.jsxs)(
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
828
|
+
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
829
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
830
|
+
id: uuid,
|
831
|
+
className: "pro-modal-select ".concat(className !== null && className !== void 0 ? className : ''),
|
832
|
+
style: style,
|
833
|
+
children: isTooltip && viewText ? (0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
834
|
+
placement: "topLeft",
|
835
|
+
open: open,
|
836
|
+
title: viewText,
|
837
|
+
children: initRender
|
838
|
+
}) : initRender
|
839
|
+
}), (0, _jsxRuntime.jsxs)(_index.ProDrawerForm, (0, _objectSpread3.default)((0, _objectSpread3.default)({
|
838
840
|
showType: "Modal",
|
839
841
|
title: title,
|
840
842
|
onOk: handleFinish,
|
841
843
|
// @ts-ignore
|
842
844
|
onCancel: handleClose,
|
843
|
-
visible: visible
|
844
|
-
zIndex: 1071
|
845
|
+
visible: visible
|
845
846
|
}, restModalProps), {}, {
|
846
847
|
children: [(0, _jsxRuntime.jsx)(_index.ProForm, {
|
847
848
|
submitOnEnter: true,
|
@@ -49,7 +49,8 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
49
49
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : (0, _utils.isEmpty)(originalValue));
|
50
50
|
var diffType = (0, _react.useMemo)(function () {
|
51
51
|
if (!isWatch || noChange) return 'same';
|
52
|
-
var _value = normalize ? normalize(props[valuePropName])
|
52
|
+
var _value = normalize ? normalize(props[valuePropName], undefined, undefined, true) // true 代表是值比对时的调用
|
53
|
+
: props[valuePropName];
|
53
54
|
return (0, _diffOriginal.diffOriginal)({
|
54
55
|
originalValue: originalValue,
|
55
56
|
value: _value,
|
@@ -351,7 +351,7 @@
|
|
351
351
|
background: transparent !important;
|
352
352
|
}
|
353
353
|
.@{ant-prefix}-select-selection-placeholder {
|
354
|
-
z-index: 9;
|
354
|
+
// z-index: 9;
|
355
355
|
}
|
356
356
|
}
|
357
357
|
|
@@ -429,7 +429,7 @@
|
|
429
429
|
background: transparent !important;
|
430
430
|
}
|
431
431
|
.@{ant-prefix}-select-selection-placeholder {
|
432
|
-
z-index: 9;
|
432
|
+
// z-index: 9;
|
433
433
|
}
|
434
434
|
}
|
435
435
|
|
@@ -257,21 +257,20 @@
|
|
257
257
|
}
|
258
258
|
}
|
259
259
|
|
260
|
-
|
261
|
-
|
262
|
-
|
260
|
+
|
261
|
+
.@{ant-prefix}-table table tbody.@{ant-prefix}-table-tbody,
|
262
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table tbody.@{ant-prefix}-table-tbody {
|
263
|
+
tr.@{ant-prefix}-table-row.new-cell,
|
264
|
+
tr.@{ant-prefix}-table-row.new-cell:hover {
|
263
265
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
264
|
-
td.@{ant-prefix}-table-cell
|
265
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
266
|
+
td.@{ant-prefix}-table-cell{
|
266
267
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
267
268
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
268
269
|
&.@{ant-prefix}-table-cell-fix-right {
|
269
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
270
270
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
271
271
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
272
272
|
}
|
273
273
|
&.@{ant-prefix}-table-cell-fix-left {
|
274
|
-
background: var(--zaui-contract-bg-add; #d2fff4) !important;
|
275
274
|
background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
|
276
275
|
border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
|
277
276
|
}
|
@@ -583,3 +582,9 @@
|
|
583
582
|
}
|
584
583
|
}
|
585
584
|
}
|
585
|
+
|
586
|
+
.@{ant-prefix}-table{
|
587
|
+
.original-value-tooltip{
|
588
|
+
position: fixed;
|
589
|
+
}
|
590
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
3
|
-
"version": "3.9.
|
3
|
+
"version": "3.9.2",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -59,7 +59,7 @@
|
|
59
59
|
"@dnd-kit/sortable": "^7.0.2",
|
60
60
|
"@dnd-kit/utilities": "^3.2.1",
|
61
61
|
"@pansy/react-watermark": "^3.1.13",
|
62
|
-
"@zat-design/utils": "1.1.
|
62
|
+
"@zat-design/utils": "1.1.37",
|
63
63
|
"ahooks": "3.7.4",
|
64
64
|
"antd": "4.24.8",
|
65
65
|
"big.js": "^6.2.1",
|