matrix_components 2.0.392 → 2.0.393
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
|
+
"v38a865a8": customBackgroundColor.value,
|
|
54772
|
+
"v57bdc138": gapV.value,
|
|
54773
|
+
"a4d8b5d6": superLabelWidth.value,
|
|
54774
|
+
"fbc338cc": subLabelWidth.value,
|
|
54775
|
+
"v613ca81f": height.value,
|
|
54776
|
+
"v2e2e5bac": labelWidth.value,
|
|
54777
|
+
"ec8ec38e": _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,7 +55153,7 @@ 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
|
setTimeout(() => {
|
|
55159
55159
|
item.events.change(item.value);
|
|
@@ -55187,7 +55187,7 @@ 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
|
setTimeout(() => {
|
|
55193
55193
|
child.events.change(child.value);
|
|
@@ -55316,6 +55316,7 @@ 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") {
|
|
@@ -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-183bc373"]]);
|
|
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" };
|