@unizhen/ui 0.1.37 → 0.1.39
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/lib/ui.js +27 -18
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -5919,23 +5919,32 @@ var kp = /*#__PURE__*/ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5919
5919
|
t.onClick = (t) => {
|
|
5920
5920
|
d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 1, Te);
|
|
5921
5921
|
};
|
|
5922
|
-
} else if (t.type !== "group" && t.action === "deleteInside")
|
|
5923
|
-
let n;
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5922
|
+
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
5923
|
+
let n = H(t.onClick);
|
|
5924
|
+
t.onClick = (t) => {
|
|
5925
|
+
let i;
|
|
5926
|
+
i = e.deleteFetch ? e.deleteFetch({
|
|
5927
|
+
...t,
|
|
5928
|
+
tableId: c,
|
|
5929
|
+
sub_table_ids: r
|
|
5930
|
+
}) : Cd({
|
|
5931
|
+
...t,
|
|
5932
|
+
tableId: c,
|
|
5933
|
+
sub_table_ids: r
|
|
5934
|
+
}), i.then(() => {
|
|
5935
|
+
if (n) try {
|
|
5936
|
+
Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
|
|
5937
|
+
z();
|
|
5938
|
+
}).catch(() => null);
|
|
5939
|
+
} catch (e) {
|
|
5940
|
+
q(e);
|
|
5941
|
+
}
|
|
5942
|
+
else z();
|
|
5943
|
+
}).catch((e) => {
|
|
5944
|
+
q(e);
|
|
5945
|
+
});
|
|
5946
|
+
};
|
|
5947
|
+
} else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
5939
5948
|
Sd({
|
|
5940
5949
|
tableId: e.id || a.params.id,
|
|
5941
5950
|
...t,
|
|
@@ -7989,7 +7998,7 @@ function Xm(e, t, n) {
|
|
|
7989
7998
|
}
|
|
7990
7999
|
//#endregion
|
|
7991
8000
|
//#region package.json
|
|
7992
|
-
var Zm = "0.1.
|
|
8001
|
+
var Zm = "0.1.39", Qm;
|
|
7993
8002
|
async function $m() {
|
|
7994
8003
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7995
8004
|
method: "HEAD",
|