@unizhen/ui 0.1.39 → 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 +3 -3
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -7064,7 +7064,7 @@ var $p = /*#__PURE__*/ U(Jp, [["render", Qp]]), em = d({
|
|
|
7064
7064
|
addAndEdit: async (e, t, n, r, i = 0, a) => {
|
|
7065
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 }) => {
|
|
7066
7066
|
let r = Y(`tables_cache_${e}`, !1);
|
|
7067
|
-
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;
|
|
7068
7068
|
}).catch(() => null);
|
|
7069
7069
|
},
|
|
7070
7070
|
getFormValues: () => a.value?.getValues()
|
|
@@ -7245,7 +7245,7 @@ function im(e, t, s, u, d, f) {
|
|
|
7245
7245
|
default: N(() => [c(k(e.$t("Common.cancel")), 1)]),
|
|
7246
7246
|
_: 1
|
|
7247
7247
|
}, 8, ["loading", "onClick"]),
|
|
7248
|
-
e.formStatus === 0
|
|
7248
|
+
e.formStatus === 0 ? (x(), n(_, {
|
|
7249
7249
|
key: 0,
|
|
7250
7250
|
type: "success",
|
|
7251
7251
|
loading: e.spinShow,
|
|
@@ -7998,7 +7998,7 @@ function Xm(e, t, n) {
|
|
|
7998
7998
|
}
|
|
7999
7999
|
//#endregion
|
|
8000
8000
|
//#region package.json
|
|
8001
|
-
var Zm = "0.1.
|
|
8001
|
+
var Zm = "0.1.40", Qm;
|
|
8002
8002
|
async function $m() {
|
|
8003
8003
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8004
8004
|
method: "HEAD",
|