@a2simcode/ui 0.0.233 → 0.0.234
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/dist/simcode-ui.es.js +4 -4
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -7096,7 +7096,7 @@ var Up = /* @__PURE__ */ ye({
|
|
|
7096
7096
|
type: "link",
|
|
7097
7097
|
label: "删除",
|
|
7098
7098
|
icon: "mdi:delete-outline",
|
|
7099
|
-
|
|
7099
|
+
status: "danger",
|
|
7100
7100
|
disabled: !Sd.value,
|
|
7101
7101
|
onClick: kd
|
|
7102
7102
|
}, null, 8, ["disabled"])) : te("", !0)]),
|
|
@@ -13467,7 +13467,7 @@ var Nc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13467
13467
|
});
|
|
13468
13468
|
}, Pe = (G, pe) => {
|
|
13469
13469
|
let re = G.id;
|
|
13470
|
-
return re || (G.config?.table && G.config?.field ? re = `${G.config.table}.${G.config.field}` : G.config?.table ? re = G.config?.table : G.config?.field && (re = G.config?.field), pe &&
|
|
13470
|
+
return re || (G.config?.table && G.config?.field ? re = `${G.config.table}.${G.config.field}` : G.config?.table ? re = G.config?.table : G.config?.field && (re = G.config?.field), pe && (re = `${pe}.${re}`)), re || Kr("j");
|
|
13471
13471
|
}, qe = (G, pe, re, le = "") => {
|
|
13472
13472
|
G.forEach((me) => {
|
|
13473
13473
|
me.id = Pe(me, le);
|
|
@@ -13484,7 +13484,7 @@ var Nc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13484
13484
|
const { children: ze } = me;
|
|
13485
13485
|
Ai(Be, me, ["children", "config"]), Ai(Be.config, me.config || {}, []), a.config.size && Be.config.size === void 0 && (Be.config.size = a.config.size), k[me.id] && console.warn("有重复的组件id:" + me.id), k[me.id] = Be, a.readonly === !0 && (Be.config.readonly = !0);
|
|
13486
13486
|
let nt = !1, Ct;
|
|
13487
|
-
le !== "" &&
|
|
13487
|
+
le !== "" && (nt = !0, Be.config.parentTableId = le, Ct = k[le]?.config?.table);
|
|
13488
13488
|
const de = Be.config || {};
|
|
13489
13489
|
if (Q(me.id))
|
|
13490
13490
|
!re && nt === !1 && (de?.defaultValue === 0 ? v[me.id] = de?.defaultValue : v[me.id] = de?.defaultValue || void 0), de.table && de.field ? T[`${de.table}_${de.field}`.toLowerCase()] = me.id : de.field && (nt ? T[`${Ct}_${de.field}`.toLowerCase()] = me.id : T[`${de.field}`.toLowerCase()] = me.id);
|
|
@@ -13498,7 +13498,7 @@ var Nc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13498
13498
|
Se.push(mt.i);
|
|
13499
13499
|
}), v[me.id] = Se;
|
|
13500
13500
|
}
|
|
13501
|
-
ze && ze.length > 0 && qe(ze, Be.children, re, Be.id);
|
|
13501
|
+
ze && ze.length > 0 && qe(ze, Be.children, re, P(Be.id) ? Be.id : le);
|
|
13502
13502
|
});
|
|
13503
13503
|
}, oe = async (G, pe) => {
|
|
13504
13504
|
const re = ++E, le = b.value;
|