@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. 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 = !1, new Promise((c) => {
22793
- u = c;
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, doneLoading: d };
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, doneLoading: o } = Fd();
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" && (r.value = !0, e.onLoading(!0));
22924
+ u === "positiveClick" && (o(!0), e.onLoading(!0));
22925
22925
  return;
22926
22926
  } else
22927
22927
  e.onClose();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@avilang/practical-ui",
3
3
  "type": "module",
4
- "version": "0.3.16",
4
+ "version": "0.3.17",
5
5
  "description": "Practical UI components created based on vue3",
6
6
  "main": "dist/index.js",
7
7
  "files": [