@zat-design/sisyphus-react 3.7.3 → 3.8.0
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 +100 -4
- package/dist/less.esm.css +97 -4
- package/es/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
- package/es/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +22 -10
- package/es/ProEditTable/components/RenderField/index.js +3 -3
- package/es/ProEnum/components/Group.js +10 -2
- package/es/ProEnum/index.js +5 -4
- package/es/ProEnum/style/index.less +14 -4
- package/es/ProEnum/utils/index.d.ts +1 -1
- package/es/ProEnum/utils/index.js +4 -0
- package/es/ProForm/components/combination/Container/index.js +5 -3
- package/es/ProForm/components/combination/Container/propsType.d.ts +2 -1
- package/es/ProForm/components/combination/FormList/utils.js +5 -4
- package/es/ProForm/components/combination/ProModalSelect/index.js +50 -45
- package/es/ProForm/components/combination/ProNumberRange/index.js +14 -5
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +17 -0
- package/es/ProForm/components/render/ChangedWrapper.js +108 -0
- package/es/ProForm/components/render/Render.js +7 -8
- package/es/ProForm/components/render/RenderFields.d.ts +2 -3
- package/es/ProForm/components/render/RenderFields.js +3 -4
- package/es/ProForm/components/render/propsType.d.ts +4 -3
- package/es/ProForm/index.js +3 -6
- package/es/ProForm/propsType.d.ts +13 -2
- package/es/ProForm/style/index.less +103 -5
- package/es/ProForm/utils/diffOriginal.d.ts +4 -4
- package/es/ProForm/utils/diffOriginal.js +18 -7
- package/es/ProForm/utils/transformValue.js +17 -11
- package/es/ProSelect/index.js +12 -11
- package/es/ProSelect/propsType.d.ts +4 -0
- package/es/ProSelect/utils/index.js +5 -4
- package/es/ProStep/components/Listener/index.d.ts +1 -1
- package/es/ProStep/components/Listener/index.js +5 -2
- package/es/ProStep/index.d.ts +1 -1
- package/es/ProStep/index.js +24 -17
- package/es/ProTable/components/FormatColumn/index.d.ts +7 -1
- package/es/ProTable/components/FormatColumn/index.js +14 -8
- package/es/ProTable/index.js +30 -13
- package/es/ProTable/propsType.d.ts +14 -1
- package/es/ProTable/style/index.less +1 -1
- package/es/ProTree/components/AdaptiveTooltip.d.ts +4 -0
- package/es/ProTree/components/AdaptiveTooltip.js +55 -0
- package/es/ProTree/components/List.js +15 -3
- package/es/ProTree/components/ProTreeSelect/index.js +25 -5
- package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
- package/es/ProTree/components/ProTreeSelect/style/index.less +2 -2
- package/es/ProTree/components/SearchTitle.d.ts +2 -0
- package/es/ProTree/components/SearchTitle.js +17 -8
- package/es/ProTree/style/index.less +14 -0
- package/es/ProTreeModal/components/Tree.js +15 -17
- package/es/ProTreeModal/index.js +62 -7
- package/es/ProTreeModal/utils.d.ts +1 -0
- package/es/ProTreeModal/utils.js +21 -1
- package/es/style/theme/antd.less +5 -0
- package/es/style/theme/index.less +2 -1
- package/es/style/theme/tokens.less +1 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +13 -0
- package/lib/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
- package/lib/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +25 -11
- package/lib/ProEditTable/components/RenderField/index.js +3 -3
- package/lib/ProEnum/components/Group.js +10 -2
- package/lib/ProEnum/index.js +5 -4
- package/lib/ProEnum/style/index.less +14 -4
- package/lib/ProEnum/utils/index.d.ts +1 -1
- package/lib/ProEnum/utils/index.js +4 -0
- package/lib/ProForm/components/combination/Container/index.js +5 -3
- package/lib/ProForm/components/combination/Container/propsType.d.ts +2 -1
- package/lib/ProForm/components/combination/FormList/utils.js +4 -3
- package/lib/ProForm/components/combination/ProModalSelect/index.js +49 -44
- package/lib/ProForm/components/combination/ProNumberRange/index.js +14 -5
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +17 -0
- package/lib/ProForm/components/render/ChangedWrapper.js +113 -0
- package/lib/ProForm/components/render/Render.js +7 -8
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -3
- package/lib/ProForm/components/render/RenderFields.js +3 -4
- package/lib/ProForm/components/render/propsType.d.ts +4 -3
- package/lib/ProForm/index.js +3 -6
- package/lib/ProForm/propsType.d.ts +13 -2
- package/lib/ProForm/style/index.less +103 -5
- package/lib/ProForm/utils/diffOriginal.d.ts +4 -4
- package/lib/ProForm/utils/diffOriginal.js +18 -7
- package/lib/ProForm/utils/transformValue.js +17 -11
- package/lib/ProSelect/index.js +12 -11
- package/lib/ProSelect/propsType.d.ts +4 -0
- package/lib/ProSelect/utils/index.js +5 -4
- package/lib/ProStep/components/Listener/index.d.ts +1 -1
- package/lib/ProStep/components/Listener/index.js +5 -2
- package/lib/ProStep/index.d.ts +1 -1
- package/lib/ProStep/index.js +24 -17
- package/lib/ProTable/components/FormatColumn/index.d.ts +7 -1
- package/lib/ProTable/components/FormatColumn/index.js +14 -8
- package/lib/ProTable/index.js +30 -13
- package/lib/ProTable/propsType.d.ts +14 -1
- package/lib/ProTable/style/index.less +1 -1
- package/lib/ProTree/components/AdaptiveTooltip.d.ts +4 -0
- package/lib/ProTree/components/AdaptiveTooltip.js +61 -0
- package/lib/ProTree/components/List.js +15 -3
- package/lib/ProTree/components/ProTreeSelect/index.js +25 -5
- package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
- package/lib/ProTree/components/ProTreeSelect/style/index.less +2 -2
- package/lib/ProTree/components/SearchTitle.d.ts +2 -0
- package/lib/ProTree/components/SearchTitle.js +19 -7
- package/lib/ProTree/style/index.less +14 -0
- package/lib/ProTreeModal/components/Tree.js +15 -17
- package/lib/ProTreeModal/index.js +61 -6
- package/lib/ProTreeModal/utils.d.ts +1 -0
- package/lib/ProTreeModal/utils.js +20 -0
- package/lib/style/theme/antd.less +5 -0
- package/lib/style/theme/index.less +2 -1
- package/lib/style/theme/tokens.less +1 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +19 -0
- package/package.json +2 -1
- package/es/ProForm/components/render/Changed.d.ts +0 -14
- package/es/ProForm/components/render/Changed.js +0 -64
- package/lib/ProForm/components/render/Changed.d.ts +0 -14
- package/lib/ProForm/components/render/Changed.js +0 -69
- /package/es/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
- /package/es/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
- /package/es/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
- /package/es/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
- /package/lib/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
- /package/lib/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
- /package/lib/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
- /package/lib/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
package/dist/index.esm.css
CHANGED
|
@@ -1909,7 +1909,7 @@
|
|
|
1909
1909
|
.pro-table .ant-table-body .ant-table-cell .varied-cell {
|
|
1910
1910
|
margin-left: -8px;
|
|
1911
1911
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
1912
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
1912
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
1913
1913
|
border-radius: var(--zaui-border-radius, 8px);
|
|
1914
1914
|
}
|
|
1915
1915
|
.pro-table .ant-table-body .varied-cell.empty-cell {
|
|
@@ -2365,8 +2365,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
.pro-number-range .range-left,
|
|
2367
2367
|
.pro-number-range .range-right {
|
|
2368
|
-
width: calc(50% -
|
|
2368
|
+
width: calc(50% - 16px);
|
|
2369
2369
|
text-align: center;
|
|
2370
|
+
-webkit-transition: none;
|
|
2371
|
+
transition: none;
|
|
2372
|
+
}
|
|
2373
|
+
.pro-number-range .range-left .range-left,
|
|
2374
|
+
.pro-number-range .range-right .range-left {
|
|
2375
|
+
width: calc(100% + 2px) !important;
|
|
2370
2376
|
}
|
|
2371
2377
|
.pro-number-range .range-left .ant-input-number {
|
|
2372
2378
|
border-right: none;
|
|
@@ -2890,12 +2896,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2890
2896
|
margin-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
|
|
2891
2897
|
}
|
|
2892
2898
|
.pro-form .ant-form-item.pro-form-item-width-auto .ant-form-item-control-input {
|
|
2899
|
+
width: 100%;
|
|
2893
2900
|
-webkit-box-flex: inherit;
|
|
2894
2901
|
-webkit-flex-grow: inherit;
|
|
2895
2902
|
-ms-flex-positive: inherit;
|
|
2896
2903
|
flex-grow: inherit;
|
|
2897
2904
|
}
|
|
2898
2905
|
.pro-form .ant-form-item.pro-form-item-width-auto .ant-form-item-control-input-content {
|
|
2906
|
+
width: 100%;
|
|
2899
2907
|
-webkit-box-flex: initial;
|
|
2900
2908
|
-webkit-flex: initial;
|
|
2901
2909
|
-ms-flex: initial;
|
|
@@ -2976,7 +2984,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2976
2984
|
}
|
|
2977
2985
|
.pro-form .site-input-group-wrapper .site-input-left,
|
|
2978
2986
|
.pro-form .site-input-group-wrapper .site-input-right {
|
|
2979
|
-
width: calc(50% -
|
|
2987
|
+
width: calc(50% - 16px);
|
|
2980
2988
|
}
|
|
2981
2989
|
.pro-form .site-input-group-wrapper .site-input-left .ant-input-number {
|
|
2982
2990
|
border-right: none;
|
|
@@ -3059,6 +3067,13 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3059
3067
|
.pro-form .pro-form-list-mode-block .pro-collapse-content .ant-row {
|
|
3060
3068
|
width: auto;
|
|
3061
3069
|
}
|
|
3070
|
+
.pro-form .pro-form-item-changed {
|
|
3071
|
+
border-radius: 4px;
|
|
3072
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3073
|
+
}
|
|
3074
|
+
.pro-form .pro-form-item-changed .ant-select.ant-select-disabled .ant-select-selector {
|
|
3075
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3076
|
+
}
|
|
3062
3077
|
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper,
|
|
3063
3078
|
.pro-form .pro-form-item-changed .ant-select .ant-select-selector,
|
|
3064
3079
|
.pro-form .pro-form-item-changed .ant-picker,
|
|
@@ -3095,11 +3110,77 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3095
3110
|
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3096
3111
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
3097
3112
|
}
|
|
3113
|
+
.pro-form .pro-form-item-changed .ant-checkbox-group {
|
|
3114
|
+
padding: 5px 0;
|
|
3115
|
+
}
|
|
3116
|
+
.pro-form .pro-form-item-changed:has(.ant-switch) {
|
|
3117
|
+
padding: 5px 0;
|
|
3118
|
+
}
|
|
3119
|
+
.pro-form .pro-form-item-changed .ant-input-textarea > textarea {
|
|
3120
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3121
|
+
}
|
|
3098
3122
|
.pro-form .pro-form-item-changed .pro-form-view-container {
|
|
3099
3123
|
padding: 4px 8px;
|
|
3100
3124
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
3101
3125
|
border-radius: 4px;
|
|
3102
3126
|
}
|
|
3127
|
+
.pro-form .pro-form-item-add {
|
|
3128
|
+
border-radius: 4px;
|
|
3129
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3130
|
+
}
|
|
3131
|
+
.pro-form .pro-form-item-add .ant-select.ant-select-disabled .ant-select-selector {
|
|
3132
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3133
|
+
}
|
|
3134
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper,
|
|
3135
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector,
|
|
3136
|
+
.pro-form .pro-form-item-add .ant-picker,
|
|
3137
|
+
.pro-form .pro-form-item-add .ant-input-number {
|
|
3138
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3139
|
+
}
|
|
3140
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper input,
|
|
3141
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector input,
|
|
3142
|
+
.pro-form .pro-form-item-add .ant-picker input,
|
|
3143
|
+
.pro-form .pro-form-item-add .ant-input-number input {
|
|
3144
|
+
background: transparent !important;
|
|
3145
|
+
}
|
|
3146
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
3147
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
3148
|
+
.pro-form .pro-form-item-add .ant-picker .ant-select-selection-placeholder,
|
|
3149
|
+
.pro-form .pro-form-item-add .ant-input-number .ant-select-selection-placeholder {
|
|
3150
|
+
z-index: 9;
|
|
3151
|
+
}
|
|
3152
|
+
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-switch-handle),
|
|
3153
|
+
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
3154
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3155
|
+
border-radius: 4px;
|
|
3156
|
+
}
|
|
3157
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > span {
|
|
3158
|
+
border-radius: 4px;
|
|
3159
|
+
padding: 5px 8px;
|
|
3160
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3161
|
+
}
|
|
3162
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
3163
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
3164
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
3165
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3166
|
+
}
|
|
3167
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3168
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3169
|
+
}
|
|
3170
|
+
.pro-form .pro-form-item-add .ant-checkbox-group {
|
|
3171
|
+
padding: 5px 0;
|
|
3172
|
+
}
|
|
3173
|
+
.pro-form .pro-form-item-add:has(.ant-switch) {
|
|
3174
|
+
padding: 5px 0;
|
|
3175
|
+
}
|
|
3176
|
+
.pro-form .pro-form-item-add .ant-input-textarea > textarea {
|
|
3177
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3178
|
+
}
|
|
3179
|
+
.pro-form .pro-form-item-add .pro-form-view-container {
|
|
3180
|
+
padding: 4px 8px;
|
|
3181
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3182
|
+
border-radius: 4px;
|
|
3183
|
+
}
|
|
3103
3184
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box {
|
|
3104
3185
|
padding: var(--zaui-space-size-sm, 8px);
|
|
3105
3186
|
background: #f8f9fa;
|
|
@@ -3781,6 +3862,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3781
3862
|
.pro-transfer-right .checked-item.disabled .anticon {
|
|
3782
3863
|
pointer-events: none;
|
|
3783
3864
|
}
|
|
3865
|
+
.pro-tree-wrap-ellipse {
|
|
3866
|
+
display: block;
|
|
3867
|
+
width: 100%;
|
|
3868
|
+
overflow: hidden;
|
|
3869
|
+
white-space: nowrap;
|
|
3870
|
+
text-overflow: ellipsis;
|
|
3871
|
+
word-break: keep-all;
|
|
3872
|
+
}
|
|
3784
3873
|
.pro-tree {
|
|
3785
3874
|
height: 100%;
|
|
3786
3875
|
}
|
|
@@ -4147,6 +4236,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4147
4236
|
.pro-tree-select-drop-down-container.ant-select-dropdown .ant-select-tree-node-content-wrapper .check-mark-icon {
|
|
4148
4237
|
display: none;
|
|
4149
4238
|
}
|
|
4239
|
+
.ant-select-tree-node-content-wrapper:has(.pro-tree-wrap-ellipse) {
|
|
4240
|
+
overflow: hidden;
|
|
4241
|
+
}
|
|
4150
4242
|
.pro-drawer .pro-drawer-close {
|
|
4151
4243
|
position: absolute;
|
|
4152
4244
|
top: 6px;
|
|
@@ -5240,7 +5332,7 @@ input[type='button'] {
|
|
|
5240
5332
|
--zaui-brand: #006aff;
|
|
5241
5333
|
--zaui-brand-hover: #3387ff;
|
|
5242
5334
|
--zaui-brand-active: #005ad9;
|
|
5243
|
-
--zaui-brand-disabled:
|
|
5335
|
+
--zaui-brand-disabled: color-mix(in srgb, var(--zaui-brand) 70%, white);
|
|
5244
5336
|
--zaui-text: #343434;
|
|
5245
5337
|
--zaui-text-weak: #616161;
|
|
5246
5338
|
--zaui-aide-text: #909090;
|
|
@@ -5287,6 +5379,7 @@ input[type='button'] {
|
|
|
5287
5379
|
--zaui-table-selected-hover-bg: var(--zaui-table-hover-bg);
|
|
5288
5380
|
--zaui-table-nested-bg: #fafcfe;
|
|
5289
5381
|
--zaui-contract-bg: #fffaa1;
|
|
5382
|
+
--zaui-contract-bg-add: #d2fff4;
|
|
5290
5383
|
--zaui-form-label-width: 130px;
|
|
5291
5384
|
--zaui-border-radius: 8px;
|
|
5292
5385
|
--zaui-border-radius-card: 4px;
|
|
@@ -5882,3 +5975,6 @@ input[type='button'] {
|
|
|
5882
5975
|
.ant-tooltip > .ant-tooltip-content > .ant-tooltip-arrow > .ant-tooltip-arrow-content {
|
|
5883
5976
|
--antd-arrow-background-color: linear-gradient(to right bottom, rgba(255, 255, 255, 0.95), #ffffff);
|
|
5884
5977
|
}
|
|
5978
|
+
.ant-picker.ant-picker-disabled {
|
|
5979
|
+
background: var(--zaui-disabled-bg);
|
|
5980
|
+
}
|
package/dist/less.esm.css
CHANGED
|
@@ -1909,7 +1909,7 @@
|
|
|
1909
1909
|
.pro-table .ant-table-body .ant-table-cell .varied-cell {
|
|
1910
1910
|
margin-left: -8px;
|
|
1911
1911
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
1912
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
1912
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
1913
1913
|
border-radius: var(--zaui-border-radius, 8px);
|
|
1914
1914
|
}
|
|
1915
1915
|
.pro-table .ant-table-body .varied-cell.empty-cell {
|
|
@@ -2365,8 +2365,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
.pro-number-range .range-left,
|
|
2367
2367
|
.pro-number-range .range-right {
|
|
2368
|
-
width: calc(50% -
|
|
2368
|
+
width: calc(50% - 16px);
|
|
2369
2369
|
text-align: center;
|
|
2370
|
+
-webkit-transition: none;
|
|
2371
|
+
transition: none;
|
|
2372
|
+
}
|
|
2373
|
+
.pro-number-range .range-left .range-left,
|
|
2374
|
+
.pro-number-range .range-right .range-left {
|
|
2375
|
+
width: calc(100% + 2px) !important;
|
|
2370
2376
|
}
|
|
2371
2377
|
.pro-number-range .range-left .ant-input-number {
|
|
2372
2378
|
border-right: none;
|
|
@@ -2890,12 +2896,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2890
2896
|
margin-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
|
|
2891
2897
|
}
|
|
2892
2898
|
.pro-form .ant-form-item.pro-form-item-width-auto .ant-form-item-control-input {
|
|
2899
|
+
width: 100%;
|
|
2893
2900
|
-webkit-box-flex: inherit;
|
|
2894
2901
|
-webkit-flex-grow: inherit;
|
|
2895
2902
|
-ms-flex-positive: inherit;
|
|
2896
2903
|
flex-grow: inherit;
|
|
2897
2904
|
}
|
|
2898
2905
|
.pro-form .ant-form-item.pro-form-item-width-auto .ant-form-item-control-input-content {
|
|
2906
|
+
width: 100%;
|
|
2899
2907
|
-webkit-box-flex: initial;
|
|
2900
2908
|
-webkit-flex: initial;
|
|
2901
2909
|
-ms-flex: initial;
|
|
@@ -2976,7 +2984,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2976
2984
|
}
|
|
2977
2985
|
.pro-form .site-input-group-wrapper .site-input-left,
|
|
2978
2986
|
.pro-form .site-input-group-wrapper .site-input-right {
|
|
2979
|
-
width: calc(50% -
|
|
2987
|
+
width: calc(50% - 16px);
|
|
2980
2988
|
}
|
|
2981
2989
|
.pro-form .site-input-group-wrapper .site-input-left .ant-input-number {
|
|
2982
2990
|
border-right: none;
|
|
@@ -3059,6 +3067,13 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3059
3067
|
.pro-form .pro-form-list-mode-block .pro-collapse-content .ant-row {
|
|
3060
3068
|
width: auto;
|
|
3061
3069
|
}
|
|
3070
|
+
.pro-form .pro-form-item-changed {
|
|
3071
|
+
border-radius: 4px;
|
|
3072
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3073
|
+
}
|
|
3074
|
+
.pro-form .pro-form-item-changed .ant-select.ant-select-disabled .ant-select-selector {
|
|
3075
|
+
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
3076
|
+
}
|
|
3062
3077
|
.pro-form .pro-form-item-changed span.ant-input-affix-wrapper,
|
|
3063
3078
|
.pro-form .pro-form-item-changed .ant-select .ant-select-selector,
|
|
3064
3079
|
.pro-form .pro-form-item-changed .ant-picker,
|
|
@@ -3095,11 +3110,77 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3095
3110
|
.pro-form .pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3096
3111
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
3097
3112
|
}
|
|
3113
|
+
.pro-form .pro-form-item-changed .ant-checkbox-group {
|
|
3114
|
+
padding: 5px 0;
|
|
3115
|
+
}
|
|
3116
|
+
.pro-form .pro-form-item-changed:has(.ant-switch) {
|
|
3117
|
+
padding: 5px 0;
|
|
3118
|
+
}
|
|
3119
|
+
.pro-form .pro-form-item-changed .ant-input-textarea > textarea {
|
|
3120
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
3121
|
+
}
|
|
3098
3122
|
.pro-form .pro-form-item-changed .pro-form-view-container {
|
|
3099
3123
|
padding: 4px 8px;
|
|
3100
3124
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
3101
3125
|
border-radius: 4px;
|
|
3102
3126
|
}
|
|
3127
|
+
.pro-form .pro-form-item-add {
|
|
3128
|
+
border-radius: 4px;
|
|
3129
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3130
|
+
}
|
|
3131
|
+
.pro-form .pro-form-item-add .ant-select.ant-select-disabled .ant-select-selector {
|
|
3132
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3133
|
+
}
|
|
3134
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper,
|
|
3135
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector,
|
|
3136
|
+
.pro-form .pro-form-item-add .ant-picker,
|
|
3137
|
+
.pro-form .pro-form-item-add .ant-input-number {
|
|
3138
|
+
background: var(--zaui-contract-bg-add, #d2fff4) !important;
|
|
3139
|
+
}
|
|
3140
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper input,
|
|
3141
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector input,
|
|
3142
|
+
.pro-form .pro-form-item-add .ant-picker input,
|
|
3143
|
+
.pro-form .pro-form-item-add .ant-input-number input {
|
|
3144
|
+
background: transparent !important;
|
|
3145
|
+
}
|
|
3146
|
+
.pro-form .pro-form-item-add span.ant-input-affix-wrapper .ant-select-selection-placeholder,
|
|
3147
|
+
.pro-form .pro-form-item-add .ant-select .ant-select-selector .ant-select-selection-placeholder,
|
|
3148
|
+
.pro-form .pro-form-item-add .ant-picker .ant-select-selection-placeholder,
|
|
3149
|
+
.pro-form .pro-form-item-add .ant-input-number .ant-select-selection-placeholder {
|
|
3150
|
+
z-index: 9;
|
|
3151
|
+
}
|
|
3152
|
+
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-switch-handle),
|
|
3153
|
+
.pro-form .pro-form-item-add .ant-form-item-control:has(.ant-checkbox-wrapper-in-form-item) {
|
|
3154
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3155
|
+
border-radius: 4px;
|
|
3156
|
+
}
|
|
3157
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > span {
|
|
3158
|
+
border-radius: 4px;
|
|
3159
|
+
padding: 5px 8px;
|
|
3160
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3161
|
+
}
|
|
3162
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-select-selector,
|
|
3163
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
|
|
3164
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
|
|
3165
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3166
|
+
}
|
|
3167
|
+
.pro-form .pro-form-item-add .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
|
|
3168
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3169
|
+
}
|
|
3170
|
+
.pro-form .pro-form-item-add .ant-checkbox-group {
|
|
3171
|
+
padding: 5px 0;
|
|
3172
|
+
}
|
|
3173
|
+
.pro-form .pro-form-item-add:has(.ant-switch) {
|
|
3174
|
+
padding: 5px 0;
|
|
3175
|
+
}
|
|
3176
|
+
.pro-form .pro-form-item-add .ant-input-textarea > textarea {
|
|
3177
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3178
|
+
}
|
|
3179
|
+
.pro-form .pro-form-item-add .pro-form-view-container {
|
|
3180
|
+
padding: 4px 8px;
|
|
3181
|
+
background: var(--zaui-contract-bg-add, #d2fff4);
|
|
3182
|
+
border-radius: 4px;
|
|
3183
|
+
}
|
|
3103
3184
|
.pro-upload .pro-upload-dragger .pro-upload-handle-box {
|
|
3104
3185
|
padding: var(--zaui-space-size-sm, 8px);
|
|
3105
3186
|
background: #f8f9fa;
|
|
@@ -3781,6 +3862,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3781
3862
|
.pro-transfer-right .checked-item.disabled .anticon {
|
|
3782
3863
|
pointer-events: none;
|
|
3783
3864
|
}
|
|
3865
|
+
.pro-tree-wrap-ellipse {
|
|
3866
|
+
display: block;
|
|
3867
|
+
width: 100%;
|
|
3868
|
+
overflow: hidden;
|
|
3869
|
+
white-space: nowrap;
|
|
3870
|
+
text-overflow: ellipsis;
|
|
3871
|
+
word-break: keep-all;
|
|
3872
|
+
}
|
|
3784
3873
|
.pro-tree {
|
|
3785
3874
|
height: 100%;
|
|
3786
3875
|
}
|
|
@@ -4147,6 +4236,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4147
4236
|
.pro-tree-select-drop-down-container.ant-select-dropdown .ant-select-tree-node-content-wrapper .check-mark-icon {
|
|
4148
4237
|
display: none;
|
|
4149
4238
|
}
|
|
4239
|
+
.ant-select-tree-node-content-wrapper:has(.pro-tree-wrap-ellipse) {
|
|
4240
|
+
overflow: hidden;
|
|
4241
|
+
}
|
|
4150
4242
|
.pro-drawer .pro-drawer-close {
|
|
4151
4243
|
position: absolute;
|
|
4152
4244
|
top: 6px;
|
|
@@ -5240,7 +5332,7 @@ input[type='button'] {
|
|
|
5240
5332
|
--zaui-brand: #006aff;
|
|
5241
5333
|
--zaui-brand-hover: #3387ff;
|
|
5242
5334
|
--zaui-brand-active: #005ad9;
|
|
5243
|
-
--zaui-brand-disabled:
|
|
5335
|
+
--zaui-brand-disabled: color-mix(in srgb, var(--zaui-brand) 70%, white);
|
|
5244
5336
|
--zaui-text: #343434;
|
|
5245
5337
|
--zaui-text-weak: #616161;
|
|
5246
5338
|
--zaui-aide-text: #909090;
|
|
@@ -5287,6 +5379,7 @@ input[type='button'] {
|
|
|
5287
5379
|
--zaui-table-selected-hover-bg: var(--zaui-table-hover-bg);
|
|
5288
5380
|
--zaui-table-nested-bg: #fafcfe;
|
|
5289
5381
|
--zaui-contract-bg: #fffaa1;
|
|
5382
|
+
--zaui-contract-bg-add: #d2fff4;
|
|
5290
5383
|
--zaui-form-label-width: 130px;
|
|
5291
5384
|
--zaui-border-radius: 8px;
|
|
5292
5385
|
--zaui-border-radius-card: 4px;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormInstance } from 'antd';
|
|
3
3
|
import { NamePath } from 'antd/lib/form/interface';
|
|
4
|
+
import { DiffOriginalParams } from '../../../ProForm/utils/diffOriginal';
|
|
4
5
|
interface Props {
|
|
5
6
|
name?: NamePath;
|
|
6
7
|
names?: NamePath[];
|
|
@@ -9,8 +10,8 @@ interface Props {
|
|
|
9
10
|
namesStr?: NamePath;
|
|
10
11
|
originalValues?: any;
|
|
11
12
|
form: FormInstance;
|
|
12
|
-
equalWith?:
|
|
13
|
+
equalWith?: DiffOriginalParams['equalWith'];
|
|
13
14
|
[name: string]: any;
|
|
14
15
|
}
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
16
|
+
declare const ListChangedWrapper: React.FC<Props>;
|
|
17
|
+
export default ListChangedWrapper;
|
|
@@ -7,8 +7,11 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
7
7
|
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type"];
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
import React, { useMemo } from 'react';
|
|
10
|
+
import classNames from 'classnames';
|
|
10
11
|
import { get } from 'lodash';
|
|
11
12
|
import { diffOriginal } from '../../../ProForm/utils/diffOriginal';
|
|
13
|
+
import { useProConfig } from '../../../ProConfigProvider';
|
|
14
|
+
import { isEmpty } from '../../../utils';
|
|
12
15
|
var toNamePath = function toNamePath(name) {
|
|
13
16
|
if (Array.isArray(name)) {
|
|
14
17
|
return name;
|
|
@@ -61,7 +64,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
61
64
|
return get(originalValues, originalName);
|
|
62
65
|
}) : get(originalValues, originalName);
|
|
63
66
|
};
|
|
64
|
-
var
|
|
67
|
+
var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
65
68
|
var name = props.name,
|
|
66
69
|
names = props.names,
|
|
67
70
|
namesStr = props.namesStr,
|
|
@@ -76,11 +79,13 @@ var ListChanged = function ListChanged(props) {
|
|
|
76
79
|
children = props.children,
|
|
77
80
|
type = props.type,
|
|
78
81
|
rest = _objectWithoutProperties(props, _excluded);
|
|
82
|
+
var _ref2 = useProConfig('ProEditTable') || {},
|
|
83
|
+
isDiffAll = _ref2.isDiffAll;
|
|
79
84
|
var namePath = toNamePath(namesStr || name);
|
|
80
85
|
var originalNamePath = toNamePath(originalName);
|
|
81
86
|
var originalNamePaths = originalNames && toNamePaths(originalNames);
|
|
82
|
-
var
|
|
83
|
-
var originalValue =
|
|
87
|
+
var isWatch = originalValues && !['FormList', 'ProEditTable'].includes(type);
|
|
88
|
+
var originalValue = isWatch ? getOriginalValue({
|
|
84
89
|
namePath: namePath,
|
|
85
90
|
originalName: originalNamePath,
|
|
86
91
|
originalNames: originalNamePaths,
|
|
@@ -88,9 +93,9 @@ var ListChanged = function ListChanged(props) {
|
|
|
88
93
|
rowKeyPath: rowKeyPath,
|
|
89
94
|
form: form
|
|
90
95
|
}) : undefined;
|
|
91
|
-
var noChange = !equalWith && (!originalValues ||
|
|
92
|
-
var
|
|
93
|
-
if (
|
|
96
|
+
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
|
97
|
+
var diffType = useMemo(function () {
|
|
98
|
+
if (!isWatch || noChange) return 'same';
|
|
94
99
|
return diffOriginal({
|
|
95
100
|
value: props.value,
|
|
96
101
|
originalValue: originalValue,
|
|
@@ -99,11 +104,18 @@ var ListChanged = function ListChanged(props) {
|
|
|
99
104
|
// name: isString(namesStr) ? namesStr : originalName || name,
|
|
100
105
|
});
|
|
101
106
|
}, [props.value, originalValue]);
|
|
102
|
-
|
|
107
|
+
var isAdd = diffType === 'add';
|
|
108
|
+
var isChanged = diffType === 'changed';
|
|
109
|
+
if (!isWatch || noChange) {
|
|
103
110
|
return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
|
|
104
111
|
}
|
|
112
|
+
var diffClassName = classNames({
|
|
113
|
+
'pro-form-item-changed': isChanged,
|
|
114
|
+
'pro-form-item-add': isAdd
|
|
115
|
+
});
|
|
105
116
|
return _jsx(_Tooltip, {
|
|
106
|
-
|
|
117
|
+
// 传入undefined 鼠标移入显示移出隐藏
|
|
118
|
+
open: isChanged ? undefined : false,
|
|
107
119
|
getPopupContainer: function getPopupContainer(target) {
|
|
108
120
|
return target.parentElement;
|
|
109
121
|
},
|
|
@@ -116,9 +128,9 @@ var ListChanged = function ListChanged(props) {
|
|
|
116
128
|
})) : undefined]
|
|
117
129
|
}),
|
|
118
130
|
children: _jsx("div", {
|
|
119
|
-
className:
|
|
131
|
+
className: diffClassName,
|
|
120
132
|
children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest)) : undefined
|
|
121
133
|
})
|
|
122
134
|
});
|
|
123
135
|
};
|
|
124
|
-
export default
|
|
136
|
+
export default ListChangedWrapper;
|
|
@@ -25,7 +25,7 @@ import useRules from '../../../ProForm/utils/useRules';
|
|
|
25
25
|
import { isSelect, isTrim } from '../../../ProForm/utils';
|
|
26
26
|
import ConfirmWrapper from '../../../ProForm/components/render/ConfirmWrapper';
|
|
27
27
|
import { getDefaultProps } from '../../utils/getDefaultProps';
|
|
28
|
-
import
|
|
28
|
+
import ListChangedWrapper from './ListChangedWrapper';
|
|
29
29
|
var RenderField = function RenderField(_ref) {
|
|
30
30
|
var _type, _type$replace, _fieldProps2, _names, _TargetComponent4, _componentProps2;
|
|
31
31
|
var value = _ref.text,
|
|
@@ -510,7 +510,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
510
510
|
form: form,
|
|
511
511
|
names: names,
|
|
512
512
|
namePath: [].concat(_toConsumableArray(namePath), [index]),
|
|
513
|
-
name:
|
|
513
|
+
name: originalName,
|
|
514
514
|
listName: cellName,
|
|
515
515
|
viewEmpty: viewEmpty,
|
|
516
516
|
valueType: _valueType,
|
|
@@ -547,7 +547,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
547
547
|
var FormItem = null;
|
|
548
548
|
var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps));
|
|
549
549
|
if (originalValues) {
|
|
550
|
-
FieldComponent = _jsx(
|
|
550
|
+
FieldComponent = _jsx(ListChangedWrapper, {
|
|
551
551
|
name: cellName,
|
|
552
552
|
names: names,
|
|
553
553
|
namesStr: [].concat(_toConsumableArray(baseName), [index, dataIndex]),
|
|
@@ -43,7 +43,10 @@ var Group = function Group(props) {
|
|
|
43
43
|
}
|
|
44
44
|
return _jsx("div", {
|
|
45
45
|
id: id,
|
|
46
|
-
className: classNames(
|
|
46
|
+
className: classNames({
|
|
47
|
+
'pro-enum-group-root': true,
|
|
48
|
+
'pro-enum-group-root-disabled': disabled
|
|
49
|
+
}),
|
|
47
50
|
children: dataSource.map(function (item, index) {
|
|
48
51
|
return _jsx("div", {
|
|
49
52
|
onClick: function onClick() {
|
|
@@ -51,7 +54,12 @@ var Group = function Group(props) {
|
|
|
51
54
|
handleClick(item[fieldValue], index);
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
|
-
className: classNames(
|
|
57
|
+
className: classNames({
|
|
58
|
+
'pro-enum-group-item': true,
|
|
59
|
+
'pro-enum-group-item-selected': value === item[fieldValue],
|
|
60
|
+
'pro-enum-group-item-disabled-after': index === idx.current || index + 1 === idx.current,
|
|
61
|
+
'pro-enum-group-item-disabled': item.disabled
|
|
62
|
+
}),
|
|
55
63
|
children: item[fieldLabel]
|
|
56
64
|
}, item[fieldValue]);
|
|
57
65
|
})
|
package/es/ProEnum/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
11
11
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
12
12
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
13
13
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
14
|
-
var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps"],
|
|
14
|
+
var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps", "isView"],
|
|
15
15
|
_excluded2 = ["fieldNames", "clear", "cacheKey", "showCodeName"];
|
|
16
16
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
17
|
import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
|
|
@@ -39,10 +39,11 @@ var ProEnum = function ProEnum(props) {
|
|
|
39
39
|
onChange = props.onChange,
|
|
40
40
|
transformResponse = props.transformResponse,
|
|
41
41
|
otherProps = props.otherProps,
|
|
42
|
+
isView = props.isView,
|
|
42
43
|
enumProps = _objectWithoutProperties(props, _excluded);
|
|
43
44
|
var _ref = otherProps || {},
|
|
44
|
-
isView = _ref.isView,
|
|
45
45
|
viewEmpty = _ref.viewEmpty;
|
|
46
|
+
var _isView = isView || (otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView);
|
|
46
47
|
var _ref2 = useProConfig('ProEnum') || {},
|
|
47
48
|
fieldNames = _ref2.fieldNames,
|
|
48
49
|
_ref2$clear = _ref2.clear,
|
|
@@ -226,7 +227,7 @@ var ProEnum = function ProEnum(props) {
|
|
|
226
227
|
if (!code && !dataSource && !useRequest) {
|
|
227
228
|
var _locale$ProEnum4;
|
|
228
229
|
_message.error(locale === null || locale === void 0 ? void 0 : (_locale$ProEnum4 = locale.ProEnum) === null || _locale$ProEnum4 === void 0 ? void 0 : _locale$ProEnum4.errorNoEnumType);
|
|
229
|
-
return;
|
|
230
|
+
// return;
|
|
230
231
|
}
|
|
231
232
|
var transToLabel = function transToLabel(value) {
|
|
232
233
|
var list = dataList && dataList.length ? dataList : enumLists;
|
|
@@ -271,7 +272,7 @@ var ProEnum = function ProEnum(props) {
|
|
|
271
272
|
};
|
|
272
273
|
return isFunction(props.optionRender) && record.length ? _optionRender() : labelList === null || labelList === void 0 ? void 0 : labelList.join(',');
|
|
273
274
|
};
|
|
274
|
-
if (
|
|
275
|
+
if (_isView) {
|
|
275
276
|
if (Array.isArray(value)) {
|
|
276
277
|
return _jsx(Container, {
|
|
277
278
|
tooltip: true,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@root-entry-name: 'default';
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
|
+
@zaui-disabled-bg: var(--zaui-disabled-bg);
|
|
5
|
+
|
|
4
6
|
.pro-enum {
|
|
5
7
|
&-tag-root {
|
|
6
8
|
display: flex;
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
justify-content: center;
|
|
20
22
|
margin-right: var(--zaui-space-size-sm);
|
|
21
23
|
padding: var(--zaui-space-size-xs) 10px;
|
|
22
|
-
background-color:
|
|
24
|
+
background-color: var(--zaui-disabled-bg);
|
|
23
25
|
border-radius: var(--zaui-space-size-xs);
|
|
24
26
|
cursor: pointer;
|
|
25
27
|
}
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
background-color: var(--zaui-brand);
|
|
30
32
|
}
|
|
31
33
|
&-tag-item-disabled {
|
|
32
|
-
background-color:
|
|
34
|
+
background-color: var(--zaui-disabled-bg);
|
|
33
35
|
pointer-events: none;
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -90,12 +92,20 @@
|
|
|
90
92
|
|
|
91
93
|
.pro-enum-group-item-disabled {
|
|
92
94
|
color: rgba(0, 0, 0, 0.25);
|
|
93
|
-
background:
|
|
95
|
+
background: var(--zaui-disabled-bg);
|
|
94
96
|
cursor: not-allowed;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
&-group-root-disabled {
|
|
99
|
-
|
|
101
|
+
color: var(--zaui-aide-text);
|
|
102
|
+
|
|
103
|
+
.pro-enum-group-item {
|
|
104
|
+
background: var(--zaui-disabled-bg);
|
|
105
|
+
&.pro-enum-group-item-selected {
|
|
106
|
+
background: var(--zaui-brand-disabled);
|
|
107
|
+
border-color: var(--zaui-brand-disabled);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
100
110
|
}
|
|
101
111
|
}
|
|
@@ -5,7 +5,7 @@ interface EnumRes {
|
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}
|
|
7
7
|
export declare function getEnumData(storage: StorageType, cacheKey: string, baseEnumStorage?: any): EnumRes;
|
|
8
|
-
export declare function setEnumData(storage: StorageType, cacheKey: string, data:
|
|
8
|
+
export declare function setEnumData(storage: StorageType, cacheKey: string, data: any): boolean;
|
|
9
9
|
export declare function hasEnumList(storage: StorageType, cacheKey: any, code: string): DataOption[];
|
|
10
10
|
export declare function isObject(obj: any): boolean;
|
|
11
11
|
export declare function mergeCacheData(storage: string, code: string, cacheKey: string, responseData: any): void;
|
|
@@ -13,6 +13,10 @@ export function getEnumData(storage, cacheKey, baseEnumStorage) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export function setEnumData(storage, cacheKey, data) {
|
|
16
|
+
var _Object$keys;
|
|
17
|
+
if (!((_Object$keys = Object.keys(data === null || data === void 0 ? void 0 : data.data)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
16
20
|
if (storage === 'localStorage') {
|
|
17
21
|
window.localStorage.setItem(cacheKey, JSON.stringify(data));
|
|
18
22
|
} else if (storage === 'sessionStorage') {
|
|
@@ -9,11 +9,12 @@ import ProCollapse from '../../../../ProLayout/components/ProCollapse';
|
|
|
9
9
|
import ProForm from '../../../../ProForm';
|
|
10
10
|
var Container = function Container(props) {
|
|
11
11
|
var children = props.children,
|
|
12
|
-
otherProps = props.otherProps,
|
|
13
12
|
className = props.className,
|
|
14
13
|
container = props.container,
|
|
15
14
|
show = props.show,
|
|
16
|
-
clearNotShow = props.clearNotShow
|
|
15
|
+
clearNotShow = props.clearNotShow,
|
|
16
|
+
diffConfig = props.diffConfig,
|
|
17
|
+
otherProps = props.otherProps;
|
|
17
18
|
var _ref = ProForm.useFieldProps() || {},
|
|
18
19
|
type = _ref.type,
|
|
19
20
|
form = _ref.form,
|
|
@@ -38,7 +39,8 @@ var Container = function Container(props) {
|
|
|
38
39
|
var childRender = function childRender() {
|
|
39
40
|
var child = _jsx(RenderFields, _objectSpread({
|
|
40
41
|
columns: _children,
|
|
41
|
-
form: form
|
|
42
|
+
form: form,
|
|
43
|
+
diffConfig: diffConfig
|
|
42
44
|
}, otherProps));
|
|
43
45
|
if (type === 'ProCollapse') {
|
|
44
46
|
return _jsx(ProCollapse, _objectSpread(_objectSpread({}, omit(props, ['otherProps', 'children', 'onBlur', 'onChange', 'placeholder', 'className'])), {}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RowProps } from 'antd';
|
|
3
|
-
import { ProColumnProps, ProFormOtherProps } from '../../../propsType';
|
|
3
|
+
import { ProColumnProps, ProFormOtherProps, DiffConfigProps } from '../../../propsType';
|
|
4
4
|
export interface ContainerProps {
|
|
5
5
|
children?: ProColumnProps[];
|
|
6
6
|
otherProps?: ProFormOtherProps;
|
|
@@ -8,5 +8,6 @@ export interface ContainerProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
container?: string | React.ReactNode;
|
|
10
10
|
show?: boolean | (() => boolean);
|
|
11
|
+
diffConfig?: DiffConfigProps;
|
|
11
12
|
clearNotShow?: boolean;
|
|
12
13
|
}
|