@unizhen/ui 0.1.36 → 0.1.38
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 +30 -19
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -5912,30 +5912,41 @@ var kp = /*#__PURE__*/ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5912
5912
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
5913
5913
|
let n = H(t.onClick);
|
|
5914
5914
|
t.onClick = (t) => {
|
|
5915
|
-
e.id || a.params.id,
|
|
5915
|
+
d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 2, Te);
|
|
5916
5916
|
};
|
|
5917
5917
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
5918
5918
|
let n = H(t.onClick);
|
|
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((e) => {
|
|
5939
|
+
q(e);
|
|
5940
|
+
});
|
|
5941
|
+
} catch (e) {
|
|
5942
|
+
q(e);
|
|
5943
|
+
}
|
|
5944
|
+
else z();
|
|
5945
|
+
}).catch((e) => {
|
|
5946
|
+
q(e);
|
|
5947
|
+
});
|
|
5948
|
+
};
|
|
5949
|
+
} else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
5939
5950
|
Sd({
|
|
5940
5951
|
tableId: e.id || a.params.id,
|
|
5941
5952
|
...t,
|
|
@@ -7989,7 +8000,7 @@ function Xm(e, t, n) {
|
|
|
7989
8000
|
}
|
|
7990
8001
|
//#endregion
|
|
7991
8002
|
//#region package.json
|
|
7992
|
-
var Zm = "0.1.
|
|
8003
|
+
var Zm = "0.1.38", Qm;
|
|
7993
8004
|
async function $m() {
|
|
7994
8005
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7995
8006
|
method: "HEAD",
|