matrix_components 2.0.389 → 2.0.391
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/README.md +1 -1
- package/dist/ComponentDemo/FormDemo copy 2.vue +56 -33
- package/dist/ComponentDemo/FormDemo copy.vue +65 -40
- package/dist/ComponentDemo/FormDemo.vue +46 -43
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +10 -10
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
"v2d6fa5bb": customBackgroundColor.value,
|
|
54772
|
+
"v9577466e": gapV.value,
|
|
54773
|
+
"a9e65638": superLabelWidth.value,
|
|
54774
|
+
"v5f2189ae": subLabelWidth.value,
|
|
54775
|
+
"v778aa370": height.value,
|
|
54776
|
+
"v3392860a": labelWidth.value,
|
|
54777
|
+
"v0da51648": _ctx.$props.labelColor
|
|
54778
54778
|
}));
|
|
54779
54779
|
const props = __props;
|
|
54780
54780
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -55308,7 +55308,7 @@ 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) {
|
|
55311
|
+
function setFormData(data, triggerEvents = true) {
|
|
55312
55312
|
if (!data || typeof data !== "object") {
|
|
55313
55313
|
console.warn("setFormData: 参数必须是一个对象");
|
|
55314
55314
|
return;
|
|
@@ -55317,7 +55317,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55317
55317
|
const node = getFormNodeByKey(key);
|
|
55318
55318
|
if (node) {
|
|
55319
55319
|
node.value = value;
|
|
55320
|
-
if (node.events) {
|
|
55320
|
+
if (triggerEvents && node.events) {
|
|
55321
55321
|
if (node.events.change && typeof node.events.change === "function") {
|
|
55322
55322
|
setTimeout(() => {
|
|
55323
55323
|
node.events.change(value);
|
|
@@ -55621,7 +55621,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55621
55621
|
};
|
|
55622
55622
|
}
|
|
55623
55623
|
});
|
|
55624
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55624
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f4a4e876"]]);
|
|
55625
55625
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55626
55626
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55627
55627
|
const _hoisted_3 = { class: "title-text" };
|