zf-dbs 2.0.0 → 2.0.1
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.mjs +34 -32
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { a as b, g as h, m as _, t as E, _ as y } from "./chunks/qN7meZTV.mjs";
|
|
2
|
-
import { z as
|
|
2
|
+
import { z as k, d as B, u as D, b as G } from "./chunks/qN7meZTV.mjs";
|
|
3
3
|
import { _ as x } from "./chunks/Ck0Cdfr_.mjs";
|
|
4
4
|
import { _ as C } from "./chunks/BHHE86vT.mjs";
|
|
5
|
-
import { z as
|
|
6
|
-
import { ref as a, shallowRef as O } from "vue";
|
|
7
|
-
import { ElNotification as
|
|
8
|
-
import { Z as
|
|
9
|
-
const
|
|
5
|
+
import { z as Q } from "./chunks/BHHE86vT.mjs";
|
|
6
|
+
import { ref as a, shallowRef as O, onMounted as A } from "vue";
|
|
7
|
+
import { ElNotification as q } from "element-plus";
|
|
8
|
+
import { Z as X } from "./chunks/DbOTUn3A.mjs";
|
|
9
|
+
const R = function(e) {
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function S() {
|
|
13
13
|
return new Promise((e) => {
|
|
14
14
|
requestAnimationFrame(e);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function j(e, t, o) {
|
|
18
18
|
o = Object.assign({
|
|
19
19
|
delay: 3e3,
|
|
20
20
|
immediate: !0,
|
|
@@ -46,7 +46,7 @@ function S(e, t, o) {
|
|
|
46
46
|
}, m = (v = { leading: o?.leading }) => {
|
|
47
47
|
d(), v?.leading && p(), i.value || (i.value = setTimeout(async () => {
|
|
48
48
|
try {
|
|
49
|
-
await p(), await
|
|
49
|
+
await p(), await S();
|
|
50
50
|
} finally {
|
|
51
51
|
i.value && m({ leading: !1 });
|
|
52
52
|
}
|
|
@@ -54,7 +54,9 @@ function S(e, t, o) {
|
|
|
54
54
|
}, g = () => {
|
|
55
55
|
d(), n.value = 0, r.value = t, s.value = !1, c.value = null, o?.immediate && m();
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return A(() => {
|
|
58
|
+
g();
|
|
59
|
+
}), {
|
|
58
60
|
state: r,
|
|
59
61
|
isLoading: s,
|
|
60
62
|
error: c,
|
|
@@ -64,16 +66,16 @@ function S(e, t, o) {
|
|
|
64
66
|
reset: g
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
69
|
+
function T(e, t, o) {
|
|
70
|
+
return j(e, t, o).state;
|
|
69
71
|
}
|
|
70
|
-
function
|
|
72
|
+
function z() {
|
|
71
73
|
if (!b.value)
|
|
72
74
|
throw new Error("请先调用 defineAppConfig 进行配置");
|
|
73
75
|
return b.value;
|
|
74
76
|
}
|
|
75
77
|
const u = Object.assign(function(e) {
|
|
76
|
-
return
|
|
78
|
+
return q({
|
|
77
79
|
...e,
|
|
78
80
|
appendTo: h().appViewElement || document.body || void 0
|
|
79
81
|
});
|
|
@@ -102,8 +104,8 @@ const u = Object.assign(function(e) {
|
|
|
102
104
|
type: "error"
|
|
103
105
|
});
|
|
104
106
|
}
|
|
105
|
-
}),
|
|
106
|
-
const e =
|
|
107
|
+
}), $ = _(() => {
|
|
108
|
+
const e = z();
|
|
107
109
|
return {
|
|
108
110
|
...e.request,
|
|
109
111
|
errorHandle(t, o, n) {
|
|
@@ -112,7 +114,7 @@ const u = Object.assign(function(e) {
|
|
|
112
114
|
}
|
|
113
115
|
};
|
|
114
116
|
});
|
|
115
|
-
class
|
|
117
|
+
class N extends E {
|
|
116
118
|
/**
|
|
117
119
|
* 发送事件
|
|
118
120
|
* @param {string} name 事件名称
|
|
@@ -140,7 +142,7 @@ class z extends E {
|
|
|
140
142
|
return this.listeners(t).length || delete window[t], n;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
|
-
const
|
|
145
|
+
const F = new N(), J = {
|
|
144
146
|
install(e) {
|
|
145
147
|
Object.entries(/* @__PURE__ */ Object.assign({ "./components/zf-app/index.ts": y, "./components/zf-scale-container/index.ts": x, "./components/zf-tween-number/index.ts": C })).forEach(([o, n]) => {
|
|
146
148
|
const r = n.default, s = o.split("/")[2];
|
|
@@ -149,21 +151,21 @@ const $ = new z(), F = {
|
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
153
|
export {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
N as Ue,
|
|
155
|
+
k as ZfApp,
|
|
156
|
+
X as ZfScaleContainer,
|
|
157
|
+
Q as ZfTweenNumber,
|
|
158
|
+
J as default,
|
|
159
|
+
B as defineAppConfig,
|
|
158
160
|
_ as defineRequest,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
R as defineService,
|
|
162
|
+
z as getAppConfig,
|
|
161
163
|
h as getAppInfo,
|
|
162
164
|
u as notify,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
$ as request,
|
|
166
|
+
F as ue,
|
|
167
|
+
D as useAppConfig,
|
|
168
|
+
G as useAppInfo,
|
|
169
|
+
j as usePolling,
|
|
170
|
+
T as usePollingRef
|
|
169
171
|
};
|