matrix_components 2.0.387 → 2.0.389
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.
|
@@ -54768,13 +54768,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54768
54768
|
},
|
|
54769
54769
|
setup(__props, { expose: __expose }) {
|
|
54770
54770
|
useCssVars((_ctx) => ({
|
|
54771
|
-
"
|
|
54772
|
-
"
|
|
54773
|
-
"
|
|
54774
|
-
"
|
|
54775
|
-
"
|
|
54776
|
-
"
|
|
54777
|
-
"
|
|
54771
|
+
"v40225fae": customBackgroundColor.value,
|
|
54772
|
+
"v86e5deca": gapV.value,
|
|
54773
|
+
"v4d1fe9d2": superLabelWidth.value,
|
|
54774
|
+
"v387eb397": subLabelWidth.value,
|
|
54775
|
+
"v6114aa7c": height.value,
|
|
54776
|
+
"v906c6966": labelWidth.value,
|
|
54777
|
+
"v7746a7b6": _ctx.$props.labelColor
|
|
54778
54778
|
}));
|
|
54779
54779
|
const props = __props;
|
|
54780
54780
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -55308,10 +55308,37 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55308
55308
|
const label = findOptionInTree(options, rowInfo.value);
|
|
55309
55309
|
return label || rowInfo.value;
|
|
55310
55310
|
}
|
|
55311
|
+
function setFormData(data) {
|
|
55312
|
+
if (!data || typeof data !== "object") {
|
|
55313
|
+
console.warn("setFormData: 参数必须是一个对象");
|
|
55314
|
+
return;
|
|
55315
|
+
}
|
|
55316
|
+
for (const [key, value] of Object.entries(data)) {
|
|
55317
|
+
const node = getFormNodeByKey(key);
|
|
55318
|
+
if (node) {
|
|
55319
|
+
node.value = value;
|
|
55320
|
+
if (node.events) {
|
|
55321
|
+
if (node.events.change && typeof node.events.change === "function") {
|
|
55322
|
+
setTimeout(() => {
|
|
55323
|
+
node.events.change(value);
|
|
55324
|
+
}, 0);
|
|
55325
|
+
}
|
|
55326
|
+
if (node.events.input && typeof node.events.input === "function") {
|
|
55327
|
+
setTimeout(() => {
|
|
55328
|
+
node.events.input(value);
|
|
55329
|
+
}, 0);
|
|
55330
|
+
}
|
|
55331
|
+
}
|
|
55332
|
+
}
|
|
55333
|
+
}
|
|
55334
|
+
}
|
|
55311
55335
|
__expose({
|
|
55336
|
+
// 核心功能
|
|
55312
55337
|
getFormNodeByKey,
|
|
55313
55338
|
getFormKvData,
|
|
55339
|
+
setFormData,
|
|
55314
55340
|
resetForm,
|
|
55341
|
+
// 可选
|
|
55315
55342
|
initDefaultValues,
|
|
55316
55343
|
getReadOnlyDisplayValue
|
|
55317
55344
|
});
|
|
@@ -55449,7 +55476,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55449
55476
|
createVNode(_component_el_tooltip, {
|
|
55450
55477
|
"hide-after": 0,
|
|
55451
55478
|
"show-after": 500,
|
|
55452
|
-
disabled: !(__props.readOnly && !rowInfo.readOnlyUseComponent),
|
|
55479
|
+
disabled: !(__props.readOnly && (!isUploadComponent(rowInfo) && !rowInfo.readOnlyUseComponent)),
|
|
55453
55480
|
content: getComponentValue.value(rowInfo),
|
|
55454
55481
|
placement: "top-start",
|
|
55455
55482
|
"popper-class": "detail-view-tooltip"
|
|
@@ -55594,7 +55621,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55594
55621
|
};
|
|
55595
55622
|
}
|
|
55596
55623
|
});
|
|
55597
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55624
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e430073e"]]);
|
|
55598
55625
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55599
55626
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55600
55627
|
const _hoisted_3 = { class: "title-text" };
|