@zat-design/sisyphus-react 3.7.3 → 3.8.0-beat.10
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/ProAction/index.js +1 -1
- package/es/ProDownload/index.js +3 -3
- package/es/ProDownload/utils.js +3 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +4 -4
- package/es/ProDrawerForm/components/ProModal/index.js +3 -3
- package/es/ProEditLabel/index.js +3 -3
- package/es/ProEditTable/components/ActionButton/index.js +3 -3
- package/es/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
- package/es/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +29 -14
- package/es/ProEditTable/components/RenderField/index.js +10 -8
- package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/es/ProEditTable/utils/config.js +2 -2
- package/es/ProEditTable/utils/index.js +5 -5
- package/es/ProEditTable/utils/tools.js +1 -1
- package/es/ProEnum/components/Group.js +10 -2
- package/es/ProEnum/hooks/useEnumRequest.js +2 -2
- package/es/ProEnum/index.js +6 -5
- 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/components/ActionButton.js +2 -2
- package/es/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
- package/es/ProForm/components/combination/FormList/utils.js +6 -5
- package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
- package/es/ProForm/components/combination/Group/utils.js +8 -1
- package/es/ProForm/components/combination/ProCascader/index.js +6 -3
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +57 -46
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- 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/old/ProAddress/index.js +1 -1
- package/es/ProForm/components/render/ChangedWrapper.d.ts +17 -0
- package/es/ProForm/components/render/ChangedWrapper.js +110 -0
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +11 -11
- 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 +5 -4
- package/es/ProForm/index.js +4 -7
- 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/ProForm/utils/useForm.js +1 -1
- package/es/ProForm/utils/useShouldUpdate.d.ts +2 -2
- package/es/ProForm/utils/useShouldUpdate.js +1 -1
- 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 +6 -3
- package/es/ProStep/index.d.ts +1 -1
- package/es/ProStep/index.js +25 -18
- package/es/ProTable/components/FormatColumn/index.d.ts +7 -1
- package/es/ProTable/components/FormatColumn/index.js +14 -8
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/es/ProTable/hooks/useAntdTable.js +3 -3
- 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/ProTree.js +1 -1
- package/es/ProTree/components/ProTreeSelect/index.js +38 -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/components/Tree.js +1 -1
- 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/ProUpload/components/ImageRender.js +1 -1
- package/es/ProViewer/index.js +2 -2
- package/es/old/ProEditableTable/index.js +4 -4
- 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/ProAction/index.js +1 -1
- package/lib/ProDownload/index.js +3 -3
- package/lib/ProDownload/utils.js +3 -3
- package/lib/ProDrawerForm/components/ProDrawer/index.js +4 -4
- package/lib/ProDrawerForm/components/ProModal/index.js +3 -3
- package/lib/ProEditLabel/index.js +3 -3
- package/lib/ProEditTable/components/ActionButton/index.js +3 -3
- package/lib/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
- package/lib/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +32 -15
- package/lib/ProEditTable/components/RenderField/index.js +10 -8
- package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/lib/ProEditTable/utils/config.js +2 -2
- package/lib/ProEditTable/utils/index.js +5 -5
- package/lib/ProEditTable/utils/tools.js +1 -1
- package/lib/ProEnum/components/Group.js +10 -2
- package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
- package/lib/ProEnum/index.js +6 -5
- 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/components/ActionButton.js +2 -2
- package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
- package/lib/ProForm/components/combination/FormList/utils.js +5 -4
- package/lib/ProForm/components/combination/Group/component/ComRender.js +1 -1
- package/lib/ProForm/components/combination/Group/utils.js +8 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +6 -3
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +56 -45
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- 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/old/ProAddress/index.js +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.d.ts +17 -0
- package/lib/ProForm/components/render/ChangedWrapper.js +115 -0
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +11 -11
- 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 +5 -4
- package/lib/ProForm/index.js +4 -7
- 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/ProForm/utils/useForm.js +1 -1
- package/lib/ProForm/utils/useShouldUpdate.d.ts +2 -2
- package/lib/ProForm/utils/useShouldUpdate.js +1 -1
- 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 +6 -3
- package/lib/ProStep/index.d.ts +1 -1
- package/lib/ProStep/index.js +25 -18
- package/lib/ProTable/components/FormatColumn/index.d.ts +7 -1
- package/lib/ProTable/components/FormatColumn/index.js +14 -8
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/lib/ProTable/hooks/useAntdTable.js +3 -3
- 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/ProTree.js +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +38 -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/components/Tree.js +1 -1
- 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/ProUpload/components/ImageRender.js +1 -1
- package/lib/ProViewer/index.js +2 -2
- package/lib/old/ProEditableTable/index.js +4 -4
- 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 +4 -4
- 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;
|
package/es/ProAction/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var ProAction = function ProAction(props) {
|
|
|
40
40
|
servicesArray = state.servicesArray;
|
|
41
41
|
var length = config.length;
|
|
42
42
|
var _onActionRun = /*#__PURE__*/function () {
|
|
43
|
-
var _ref = _asyncToGenerator(
|
|
43
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(currentIndex, array) {
|
|
44
44
|
var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
|
|
45
45
|
var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
|
|
46
46
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
package/es/ProDownload/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
37
37
|
onErrorConfig = _ref.onError;
|
|
38
38
|
defaultProps.headers = _objectSpread(_objectSpread({}, headers), defaultProps.headers);
|
|
39
39
|
var handDownload = /*#__PURE__*/function () {
|
|
40
|
-
var _ref2 = _asyncToGenerator(
|
|
40
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
41
41
|
var _params;
|
|
42
42
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -131,7 +131,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
131
131
|
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
132
132
|
className: cls,
|
|
133
133
|
onClick: function () {
|
|
134
|
-
var _onClick = _asyncToGenerator(
|
|
134
|
+
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
135
135
|
var res;
|
|
136
136
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
137
137
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -146,7 +146,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
146
146
|
_context3.next = 13;
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
|
-
if (!(beforeDownload instanceof /*#__PURE__*/_asyncToGenerator(
|
|
149
|
+
if (!(beforeDownload instanceof /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
150
150
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
151
151
|
while (1) switch (_context2.prev = _context2.next) {
|
|
152
152
|
case 0:
|
package/es/ProDownload/utils.js
CHANGED
|
@@ -70,7 +70,7 @@ export function getFilenameFromContentDisposition(contentDisposition) {
|
|
|
70
70
|
}
|
|
71
71
|
// 发起请求获取下载文件
|
|
72
72
|
export var DownloadRequest = /*#__PURE__*/function () {
|
|
73
|
-
var _ref3 = _asyncToGenerator(
|
|
73
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
|
|
74
74
|
var url, _ref2$method, method, params, headers, transformResponse, fileName, onFinish, onError, config, res, fileBlob, data, contentFileName;
|
|
75
75
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
76
76
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -97,8 +97,8 @@ export var DownloadRequest = /*#__PURE__*/function () {
|
|
|
97
97
|
config.headers = _objectSpread(_objectSpread({}, config.headers), headers);
|
|
98
98
|
}
|
|
99
99
|
_context2.next = 7;
|
|
100
|
-
return fetch(url, config).then(
|
|
101
|
-
var _ref4 = _asyncToGenerator(
|
|
100
|
+
return fetch(url, config).then(/*#__PURE__*/function () {
|
|
101
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
102
102
|
var _data, errorMsg;
|
|
103
103
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
104
104
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -46,7 +46,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
46
46
|
loading = _useState2[0],
|
|
47
47
|
toggleLoading = _useState2[1];
|
|
48
48
|
var noRenderFooter = isView || footer === false || footer === null;
|
|
49
|
-
var onConfirm = useCallback(
|
|
49
|
+
var onConfirm = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
50
50
|
var _locale$ProDrawerForm, _locale$ProDrawerForm2, _locale$ProDrawerForm3, _locale$ProDrawerForm4;
|
|
51
51
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
52
52
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -74,7 +74,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
74
74
|
}
|
|
75
75
|
}, _callee);
|
|
76
76
|
})), [onCancel, modalRef.current]);
|
|
77
|
-
var handleFinish = useCallback(
|
|
77
|
+
var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
78
78
|
var values, _error$errorFields, _error$errorFields$;
|
|
79
79
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
80
80
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -166,7 +166,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
166
166
|
if (noRenderFooter) {
|
|
167
167
|
return null;
|
|
168
168
|
}
|
|
169
|
-
if (
|
|
169
|
+
if (/*#__PURE__*/React.isValidElement(footer)) {
|
|
170
170
|
return _jsx("div", {
|
|
171
171
|
className: "pro-drawer-footer",
|
|
172
172
|
children: footer
|
|
@@ -176,7 +176,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
176
176
|
return _jsx("div", {
|
|
177
177
|
className: "pro-drawer-footer",
|
|
178
178
|
children: footer.map(function (item) {
|
|
179
|
-
if (
|
|
179
|
+
if (/*#__PURE__*/React.isValidElement(item)) {
|
|
180
180
|
return item;
|
|
181
181
|
}
|
|
182
182
|
return false;
|
|
@@ -52,7 +52,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
52
52
|
'pro-modal-no-footer': noRenderFooter,
|
|
53
53
|
'pro-modal-footer-shadow': height >= 450
|
|
54
54
|
}]);
|
|
55
|
-
var handleFinish = useCallback(
|
|
55
|
+
var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
56
|
var values, _error$errorFields, _error$errorFields$;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -146,7 +146,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
146
146
|
if (noRenderFooter) {
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
149
|
-
if (
|
|
149
|
+
if (/*#__PURE__*/React.isValidElement(footer)) {
|
|
150
150
|
return _jsx("div", {
|
|
151
151
|
className: "pro-drawer-footer",
|
|
152
152
|
children: footer
|
|
@@ -156,7 +156,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
156
156
|
return _jsx("div", {
|
|
157
157
|
className: "pro-drawer-footer",
|
|
158
158
|
children: footer.map(function (item) {
|
|
159
|
-
if (
|
|
159
|
+
if (/*#__PURE__*/React.isValidElement(item)) {
|
|
160
160
|
return item;
|
|
161
161
|
}
|
|
162
162
|
return false;
|
package/es/ProEditLabel/index.js
CHANGED
|
@@ -134,7 +134,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
134
134
|
* pop确认回调
|
|
135
135
|
*/
|
|
136
136
|
var onConfirmHandle = /*#__PURE__*/function () {
|
|
137
|
-
var _ref2 = _asyncToGenerator(
|
|
137
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
138
138
|
var res, value;
|
|
139
139
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
140
140
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -221,7 +221,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
if (disabled) {
|
|
224
|
-
if (
|
|
224
|
+
if (/*#__PURE__*/React.isValidElement(children)) {
|
|
225
225
|
return children;
|
|
226
226
|
}
|
|
227
227
|
if (props.value && !popupProps) {
|
|
@@ -253,7 +253,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
253
253
|
if (mode === 'popup') {
|
|
254
254
|
// 查看时内容渲染
|
|
255
255
|
var labelRender = function labelRender() {
|
|
256
|
-
if (
|
|
256
|
+
if (/*#__PURE__*/React.isValidElement(children)) {
|
|
257
257
|
return children;
|
|
258
258
|
}
|
|
259
259
|
return TextNode;
|
|
@@ -82,7 +82,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
82
82
|
disabled: isDisabled,
|
|
83
83
|
okText: locale.ProEditTable.confirm,
|
|
84
84
|
cancelText: locale.ProEditTable.cancel,
|
|
85
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
85
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
86
86
|
record: record,
|
|
87
87
|
index: index,
|
|
88
88
|
disabled: isDisabled
|
|
@@ -92,7 +92,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
92
92
|
children: btnConfig.label
|
|
93
93
|
}))
|
|
94
94
|
}) : _jsx(_Fragment, {
|
|
95
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
95
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
96
96
|
record: record,
|
|
97
97
|
index: index,
|
|
98
98
|
disabled: isDisabled,
|
|
@@ -109,7 +109,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
109
109
|
}))
|
|
110
110
|
})
|
|
111
111
|
}) : _jsx(_Fragment, {
|
|
112
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
112
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
113
113
|
record: record,
|
|
114
114
|
index: index
|
|
115
115
|
}))) : _jsx(_Button, _objectSpread(_objectSpread({
|
|
@@ -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;
|
|
@@ -4,11 +4,14 @@ import "antd/es/tooltip/style";
|
|
|
4
4
|
import _Tooltip from "antd/es/tooltip";
|
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
-
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type"];
|
|
7
|
+
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "valuePropName"];
|
|
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;
|
|
@@ -38,7 +41,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
38
41
|
var keyValue = rowValue[rowKeyName]; // 获取表单中rowKey值
|
|
39
42
|
if (!keyValue) return undefined;
|
|
40
43
|
var originalValueList = get(originalValues, originalName.slice(0, rowKeyPath.length - 2));
|
|
41
|
-
var originalValueRow = originalValueList.find(function (item) {
|
|
44
|
+
var originalValueRow = originalValueList === null || originalValueList === void 0 ? void 0 : originalValueList.find(function (item) {
|
|
42
45
|
return item[rowKeyPath[rowKeyPath.length - 1]] === keyValue;
|
|
43
46
|
});
|
|
44
47
|
var originalValue;
|
|
@@ -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,
|
|
@@ -75,12 +78,16 @@ var ListChanged = function ListChanged(props) {
|
|
|
75
78
|
rowKeyPath = props.rowKeyPath,
|
|
76
79
|
children = props.children,
|
|
77
80
|
type = props.type,
|
|
81
|
+
normalize = props.normalize,
|
|
82
|
+
valuePropName = props.valuePropName,
|
|
78
83
|
rest = _objectWithoutProperties(props, _excluded);
|
|
84
|
+
var _ref2 = useProConfig('ProEditTable') || {},
|
|
85
|
+
isDiffAll = _ref2.isDiffAll;
|
|
79
86
|
var namePath = toNamePath(namesStr || name);
|
|
80
87
|
var originalNamePath = toNamePath(originalName);
|
|
81
88
|
var originalNamePaths = originalNames && toNamePaths(originalNames);
|
|
82
|
-
var
|
|
83
|
-
var originalValue =
|
|
89
|
+
var isWatch = originalValues && !['FormList', 'ProEditTable'].includes(type);
|
|
90
|
+
var originalValue = isWatch ? getOriginalValue({
|
|
84
91
|
namePath: namePath,
|
|
85
92
|
originalName: originalNamePath,
|
|
86
93
|
originalNames: originalNamePaths,
|
|
@@ -88,22 +95,30 @@ var ListChanged = function ListChanged(props) {
|
|
|
88
95
|
rowKeyPath: rowKeyPath,
|
|
89
96
|
form: form
|
|
90
97
|
}) : undefined;
|
|
91
|
-
var noChange = !equalWith && (!originalValues ||
|
|
92
|
-
var
|
|
93
|
-
if (
|
|
98
|
+
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
|
99
|
+
var diffType = useMemo(function () {
|
|
100
|
+
if (!isWatch || noChange) return 'same';
|
|
101
|
+
var _value = normalize ? normalize(props[valuePropName]) : props[valuePropName];
|
|
94
102
|
return diffOriginal({
|
|
95
|
-
value:
|
|
103
|
+
value: _value,
|
|
96
104
|
originalValue: originalValue,
|
|
97
105
|
form: form,
|
|
98
106
|
equalWith: equalWith
|
|
99
107
|
// name: isString(namesStr) ? namesStr : originalName || name,
|
|
100
108
|
});
|
|
101
|
-
}, [props
|
|
102
|
-
|
|
109
|
+
}, [props[valuePropName], originalValue]);
|
|
110
|
+
var isAdd = diffType === 'add';
|
|
111
|
+
var isChanged = diffType === 'changed';
|
|
112
|
+
if (!isWatch || noChange) {
|
|
103
113
|
return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
|
|
104
114
|
}
|
|
115
|
+
var diffClassName = classNames({
|
|
116
|
+
'pro-form-item-changed': isChanged,
|
|
117
|
+
'pro-form-item-add': isAdd
|
|
118
|
+
});
|
|
105
119
|
return _jsx(_Tooltip, {
|
|
106
|
-
|
|
120
|
+
// 传入undefined 鼠标移入显示移出隐藏
|
|
121
|
+
open: isChanged ? undefined : false,
|
|
107
122
|
getPopupContainer: function getPopupContainer(target) {
|
|
108
123
|
return target.parentElement;
|
|
109
124
|
},
|
|
@@ -116,9 +131,9 @@ var ListChanged = function ListChanged(props) {
|
|
|
116
131
|
})) : undefined]
|
|
117
132
|
}),
|
|
118
133
|
children: _jsx("div", {
|
|
119
|
-
className:
|
|
134
|
+
className: diffClassName,
|
|
120
135
|
children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest)) : undefined
|
|
121
136
|
})
|
|
122
137
|
});
|
|
123
138
|
};
|
|
124
|
-
export default
|
|
139
|
+
export default ListChangedWrapper;
|