wui-components-v2 1.2.4 → 1.2.6
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.
|
@@ -539,7 +539,8 @@ function submit() {
|
|
|
539
539
|
})
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
|
|
542
|
+
console.log('data', { ...data, ...clearValueMap }, clearValueMap, data)
|
|
543
|
+
resolve({ ...data, ...clearValueMap })
|
|
543
544
|
} else {
|
|
544
545
|
reject(valid)
|
|
545
546
|
}
|
|
@@ -557,7 +558,9 @@ defineExpose({
|
|
|
557
558
|
})
|
|
558
559
|
const clearValueMap = fields.value.reduce(
|
|
559
560
|
(acc, field) => {
|
|
560
|
-
|
|
561
|
+
if (field.clearValueOnHidden == true) {
|
|
562
|
+
acc[field.id] = ''
|
|
563
|
+
}
|
|
561
564
|
return acc
|
|
562
565
|
},
|
|
563
566
|
{} as Record<string, any>
|
|
@@ -175,6 +175,7 @@ function actionUpdate() {
|
|
|
175
175
|
:closable="closable"
|
|
176
176
|
@close="handleClose"
|
|
177
177
|
@before-enter="beforeEnter"
|
|
178
|
+
class="custom-update-box"
|
|
178
179
|
>
|
|
179
180
|
<view v-if="loading" class="loadingBox" :style="{ '--update-primary': primaryColor }">
|
|
180
181
|
<view class="header" />
|
|
@@ -214,7 +215,7 @@ function actionUpdate() {
|
|
|
214
215
|
display: flex;
|
|
215
216
|
flex-direction: column;
|
|
216
217
|
width: 600rpx;
|
|
217
|
-
min-height:
|
|
218
|
+
min-height: 500rpx;
|
|
218
219
|
overflow: hidden;
|
|
219
220
|
background-color: #fff;
|
|
220
221
|
border-radius: 32rpx;
|
|
@@ -274,4 +275,7 @@ function actionUpdate() {
|
|
|
274
275
|
padding: 48rpx 32rpx 32rpx;
|
|
275
276
|
}
|
|
276
277
|
}
|
|
278
|
+
.custom-update-box :deep(.wd-icon) {
|
|
279
|
+
color: #fff;
|
|
280
|
+
}
|
|
277
281
|
</style>
|