lw-cdp-ui 1.1.31 → 1.1.32
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.
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
<!-- 表单内容 -->
|
|
28
28
|
<el-form-item v-else
|
|
29
|
-
:prop="item
|
|
29
|
+
:prop="getPropName(item)"
|
|
30
30
|
:rules="rulesHandle(item)">
|
|
31
31
|
<template #label>
|
|
32
32
|
{{ item.label }}
|
|
@@ -445,6 +445,19 @@ export default {
|
|
|
445
445
|
}
|
|
446
446
|
this.tagVisible[item.name] = false
|
|
447
447
|
this.tagValue = ''
|
|
448
|
+
},
|
|
449
|
+
// prop NAME
|
|
450
|
+
getPropName(item) {
|
|
451
|
+
if (item.component == 'checkbox' || item.component == 'upload') {
|
|
452
|
+
if (item.name) {
|
|
453
|
+
return `${item.name}.${item.options.items[0].name}`
|
|
454
|
+
} else {
|
|
455
|
+
return item.options.items[0].name
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
} else {
|
|
459
|
+
return item.name
|
|
460
|
+
}
|
|
448
461
|
}
|
|
449
462
|
}
|
|
450
463
|
}
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -6364,6 +6364,10 @@ const lwForm = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$
|
|
|
6364
6364
|
// 增加tag
|
|
6365
6365
|
tagInputConfirm(e, o) {
|
|
6366
6366
|
this.tagValue && (o[e.name] = o[e.name] || [], o[e.name].push(this.tagValue)), this.tagVisible[e.name] = !1, this.tagValue = "";
|
|
6367
|
+
},
|
|
6368
|
+
// prop NAME
|
|
6369
|
+
getPropName(e) {
|
|
6370
|
+
return e.component == "checkbox" || e.component == "upload" ? e.name ? `${e.name}.${e.options.items[0].name}` : e.options.items[0].name : e.name;
|
|
6367
6371
|
}
|
|
6368
6372
|
}
|
|
6369
6373
|
}, _hoisted_1$a = {
|
|
@@ -6417,7 +6421,7 @@ function _sfc_render$f(e, o, n, c, a, p) {
|
|
|
6417
6421
|
}, 1032, ["content"])) : createCommentVNode("", !0)
|
|
6418
6422
|
])) : (openBlock(), createBlock(ie, {
|
|
6419
6423
|
key: 1,
|
|
6420
|
-
prop: u
|
|
6424
|
+
prop: p.getPropName(u),
|
|
6421
6425
|
rules: p.rulesHandle(u)
|
|
6422
6426
|
}, {
|
|
6423
6427
|
label: withCtx(() => [
|
|
@@ -6695,7 +6699,7 @@ function _sfc_render$f(e, o, n, c, a, p) {
|
|
|
6695
6699
|
[d, n.loading]
|
|
6696
6700
|
]);
|
|
6697
6701
|
}
|
|
6698
|
-
const lwFormMini = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
6702
|
+
const lwFormMini = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-b7183a1c"]]), config$1 = {
|
|
6699
6703
|
icons: [
|
|
6700
6704
|
{
|
|
6701
6705
|
name: "默认",
|