@unizhen/ui 0.1.38 → 0.1.40
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 +4 -6
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -5935,9 +5935,7 @@ var kp = /*#__PURE__*/ U(Dp, [["render", Op]]), Ap = d({
|
|
|
5935
5935
|
if (n) try {
|
|
5936
5936
|
Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
|
|
5937
5937
|
z();
|
|
5938
|
-
}).catch((
|
|
5939
|
-
q(e);
|
|
5940
|
-
});
|
|
5938
|
+
}).catch(() => null);
|
|
5941
5939
|
} catch (e) {
|
|
5942
5940
|
q(e);
|
|
5943
5941
|
}
|
|
@@ -7066,7 +7064,7 @@ var $p = /*#__PURE__*/ U(Jp, [["render", Qp]]), em = d({
|
|
|
7066
7064
|
addAndEdit: async (e, t, n, r, i = 0, a) => {
|
|
7067
7065
|
o.value = e, m.value = !0, s.value = i, d.value = n, y.value = r, u.value = !0, t().then(({ form: t, data: n }) => {
|
|
7068
7066
|
let r = Y(`tables_cache_${e}`, !1);
|
|
7069
|
-
r ? c.value = r : c.value = n, v.value = t, x.value = a, m.value = !1;
|
|
7067
|
+
r && i === 0 ? c.value = r : c.value = n, v.value = t, x.value = a, m.value = !1;
|
|
7070
7068
|
}).catch(() => null);
|
|
7071
7069
|
},
|
|
7072
7070
|
getFormValues: () => a.value?.getValues()
|
|
@@ -7247,7 +7245,7 @@ function im(e, t, s, u, d, f) {
|
|
|
7247
7245
|
default: N(() => [c(k(e.$t("Common.cancel")), 1)]),
|
|
7248
7246
|
_: 1
|
|
7249
7247
|
}, 8, ["loading", "onClick"]),
|
|
7250
|
-
e.formStatus === 0
|
|
7248
|
+
e.formStatus === 0 ? (x(), n(_, {
|
|
7251
7249
|
key: 0,
|
|
7252
7250
|
type: "success",
|
|
7253
7251
|
loading: e.spinShow,
|
|
@@ -8000,7 +7998,7 @@ function Xm(e, t, n) {
|
|
|
8000
7998
|
}
|
|
8001
7999
|
//#endregion
|
|
8002
8000
|
//#region package.json
|
|
8003
|
-
var Zm = "0.1.
|
|
8001
|
+
var Zm = "0.1.40", Qm;
|
|
8004
8002
|
async function $m() {
|
|
8005
8003
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8006
8004
|
method: "HEAD",
|