@avilang/practical-ui 0.3.16 → 0.3.17
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/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22789,8 +22789,8 @@ const Fd = ({ delay: e = 300, minPendingTime: n = 500, loadingValue: r = !1 } =
|
|
|
22789
22789
|
i && (clearTimeout(i), i = null);
|
|
22790
22790
|
}, l = M(!!r), s = M(!!r);
|
|
22791
22791
|
let u = null;
|
|
22792
|
-
const d = () => (l.value =
|
|
22793
|
-
u =
|
|
22792
|
+
const d = (c) => (l.value = c, new Promise((f) => {
|
|
22793
|
+
c === !0 ? f() : u = f;
|
|
22794
22794
|
}));
|
|
22795
22795
|
return Pe(
|
|
22796
22796
|
l,
|
|
@@ -22813,7 +22813,7 @@ const Fd = ({ delay: e = 300, minPendingTime: n = 500, loadingValue: r = !1 } =
|
|
|
22813
22813
|
{ immediate: !!r, deep: !1 }
|
|
22814
22814
|
), bs(() => {
|
|
22815
22815
|
u = null, a();
|
|
22816
|
-
}), { loading: s, waiting: l,
|
|
22816
|
+
}), { loading: s, waiting: l, setLoadingStatus: d };
|
|
22817
22817
|
}, Jy = {
|
|
22818
22818
|
key: 1,
|
|
22819
22819
|
class: "p-promised-loading"
|
|
@@ -22910,18 +22910,18 @@ const Fd = ({ delay: e = 300, minPendingTime: n = 500, loadingValue: r = !1 } =
|
|
|
22910
22910
|
onLoading: { type: Function }
|
|
22911
22911
|
},
|
|
22912
22912
|
setup(e) {
|
|
22913
|
-
const { loading: n, waiting: r,
|
|
22913
|
+
const { loading: n, waiting: r, setLoadingStatus: o } = Fd();
|
|
22914
22914
|
function i(s, u) {
|
|
22915
22915
|
const d = s({
|
|
22916
22916
|
done: function() {
|
|
22917
|
-
return o().then(() => {
|
|
22917
|
+
return o(!1).then(() => {
|
|
22918
22918
|
e.onLoading(!1);
|
|
22919
22919
|
});
|
|
22920
22920
|
}
|
|
22921
22921
|
});
|
|
22922
22922
|
if (d !== !1)
|
|
22923
22923
|
if (qy(d)) {
|
|
22924
|
-
u === "positiveClick" && (
|
|
22924
|
+
u === "positiveClick" && (o(!0), e.onLoading(!0));
|
|
22925
22925
|
return;
|
|
22926
22926
|
} else
|
|
22927
22927
|
e.onClose();
|