liyu-pc-base 1.0.90 → 1.0.92
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.
|
@@ -10880,9 +10880,12 @@ const TTe = /* @__PURE__ */ kt(yre, [["render", _re], ["__scopeId", "data-v-3946
|
|
|
10880
10880
|
const $ = S.find((W) => W.dataIndex == L.key);
|
|
10881
10881
|
$ && ($.summary = !0, "decimalPlaces" in L && ($.decimalPlaces = L.decimalPlaces), "unit" in L && ($.unit = L.unit), "unitBefore" in L && ($.unitBefore = L.unitBefore));
|
|
10882
10882
|
})), n.value = S;
|
|
10883
|
-
}, o = se(() =>
|
|
10884
|
-
e.value
|
|
10885
|
-
|
|
10883
|
+
}, o = se(() => {
|
|
10884
|
+
const S = e.value || [];
|
|
10885
|
+
return [].concat(
|
|
10886
|
+
S.map((C, _) => ({ ...C, _key: _ }))
|
|
10887
|
+
);
|
|
10888
|
+
}), i = Te([]), a = Te(""), l = Te(0), u = Te(!1), s = Te({
|
|
10886
10889
|
settings: {
|
|
10887
10890
|
labelAlign: "right",
|
|
10888
10891
|
layout: "vertical"
|
|
@@ -10915,10 +10918,10 @@ const TTe = /* @__PURE__ */ kt(yre, [["render", _re], ["__scopeId", "data-v-3946
|
|
|
10915
10918
|
}, g = (S) => {
|
|
10916
10919
|
S.preventDefault(), p().then(() => {
|
|
10917
10920
|
if (a.value == "create") {
|
|
10918
|
-
const C = JSON.parse(JSON.stringify(e.value));
|
|
10921
|
+
const C = JSON.parse(JSON.stringify(e.value)) || [];
|
|
10919
10922
|
C.push({ ...c.value }), t("update:value", C);
|
|
10920
10923
|
} else if (a.value == "update") {
|
|
10921
|
-
const C = JSON.parse(JSON.stringify(e.value)), _ = C.find((D, k) => k === l.value);
|
|
10924
|
+
const C = JSON.parse(JSON.stringify(e.value)) || [], _ = C.find((D, k) => k === l.value);
|
|
10922
10925
|
if (_) {
|
|
10923
10926
|
const D = { ...c.value };
|
|
10924
10927
|
"_key" in D && delete D._key, Object.assign(_, D);
|