matrix_components 2.0.392 → 2.0.395
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
|
+
"de3b06c6": customBackgroundColor.value,
|
|
54772
|
+
"v5dbb9da7": gapV.value,
|
|
54773
|
+
"v10ca0574": superLabelWidth.value,
|
|
54774
|
+
"v1c5fd7ea": subLabelWidth.value,
|
|
54775
|
+
"v4195b664": height.value,
|
|
54776
|
+
"f035414e": labelWidth.value,
|
|
54777
|
+
"v6f4aae2a": _ctx.$props.labelColor
|
|
54778
54778
|
}));
|
|
54779
54779
|
const props = __props;
|
|
54780
54780
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -55129,7 +55129,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55129
55129
|
}
|
|
55130
55130
|
return result;
|
|
55131
55131
|
}
|
|
55132
|
-
function resetForm() {
|
|
55132
|
+
function resetForm(triggerEvents = false) {
|
|
55133
55133
|
const rows = props.rows;
|
|
55134
55134
|
for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
|
|
55135
55135
|
const row = rows[rowIndex];
|
|
@@ -55153,16 +55153,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55153
55153
|
if (item.delValue !== void 0) {
|
|
55154
55154
|
item.delValue = [];
|
|
55155
55155
|
}
|
|
55156
|
-
if (JSON.stringify(oldValue) !== JSON.stringify(item.value) && item.events) {
|
|
55156
|
+
if (triggerEvents && JSON.stringify(oldValue) !== JSON.stringify(item.value) && item.events) {
|
|
55157
55157
|
if (item.events.change && typeof item.events.change === "function") {
|
|
55158
|
-
|
|
55158
|
+
nextTick(() => {
|
|
55159
55159
|
item.events.change(item.value);
|
|
55160
|
-
}
|
|
55160
|
+
});
|
|
55161
55161
|
}
|
|
55162
55162
|
if (item.events.input && typeof item.events.input === "function") {
|
|
55163
|
-
|
|
55163
|
+
nextTick(() => {
|
|
55164
55164
|
item.events.input(item.value);
|
|
55165
|
-
}
|
|
55165
|
+
});
|
|
55166
55166
|
}
|
|
55167
55167
|
}
|
|
55168
55168
|
}
|
|
@@ -55187,16 +55187,16 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55187
55187
|
if (child.delValue !== void 0) {
|
|
55188
55188
|
child.delValue = [];
|
|
55189
55189
|
}
|
|
55190
|
-
if (JSON.stringify(oldChildValue) !== JSON.stringify(child.value) && child.events) {
|
|
55190
|
+
if (triggerEvents && JSON.stringify(oldChildValue) !== JSON.stringify(child.value) && child.events) {
|
|
55191
55191
|
if (child.events.change && typeof child.events.change === "function") {
|
|
55192
|
-
|
|
55192
|
+
nextTick(() => {
|
|
55193
55193
|
child.events.change(child.value);
|
|
55194
|
-
}
|
|
55194
|
+
});
|
|
55195
55195
|
}
|
|
55196
55196
|
if (child.events.input && typeof child.events.input === "function") {
|
|
55197
|
-
|
|
55197
|
+
nextTick(() => {
|
|
55198
55198
|
child.events.input(child.value);
|
|
55199
|
-
}
|
|
55199
|
+
});
|
|
55200
55200
|
}
|
|
55201
55201
|
}
|
|
55202
55202
|
}
|
|
@@ -55316,17 +55316,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55316
55316
|
for (const [key, value] of Object.entries(data)) {
|
|
55317
55317
|
const node = getFormNodeByKey(key);
|
|
55318
55318
|
if (node) {
|
|
55319
|
+
debugger;
|
|
55319
55320
|
node.value = value;
|
|
55320
55321
|
if (triggerEvents && node.events) {
|
|
55321
55322
|
if (node.events.change && typeof node.events.change === "function") {
|
|
55322
|
-
|
|
55323
|
+
nextTick(() => {
|
|
55323
55324
|
node.events.change(value);
|
|
55324
|
-
}
|
|
55325
|
+
});
|
|
55325
55326
|
}
|
|
55326
55327
|
if (node.events.input && typeof node.events.input === "function") {
|
|
55327
|
-
|
|
55328
|
+
nextTick(() => {
|
|
55328
55329
|
node.events.input(value);
|
|
55329
|
-
}
|
|
55330
|
+
});
|
|
55330
55331
|
}
|
|
55331
55332
|
}
|
|
55332
55333
|
}
|
|
@@ -55621,7 +55622,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55621
55622
|
};
|
|
55622
55623
|
}
|
|
55623
55624
|
});
|
|
55624
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55625
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7ee55b39"]]);
|
|
55625
55626
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55626
55627
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55627
55628
|
const _hoisted_3 = { class: "title-text" };
|