@das-fed/upf-ui 6.4.0-dev.299 → 6.4.0-dev.301
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/esm-map.json +2 -1
- package/front-end/i18n/front-end-page/dasui_en-US.js +7 -3
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +7 -3
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +7 -3
- package/package.json +7 -7
- package/packages/components/form-item/index.js +351 -349
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/infinite-scroll/i18n/index.d.ts +27 -0
- package/packages/components/infinite-scroll/index.d.ts +322 -0
- package/packages/components/infinite-scroll/index.js +2067 -0
- package/packages/components/infinite-scroll/index.js.gz +0 -0
- package/packages/components/infinite-scroll/src/index.vue.d.ts +199 -0
- package/packages/components/infinite-scroll/src/type.d.ts +61 -0
- package/packages/components/infinite-scroll/style.css +1 -0
- package/packages/components/infinite-scroll/style.css.gz +0 -0
- package/packages/components/input/index.js +354 -353
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +643 -642
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +5 -3
- package/packages/components/tree/index.js +1385 -1376
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +6 -5
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/release-meta.json +4 -4
|
@@ -0,0 +1,2067 @@
|
|
|
1
|
+
import { withInstall as pe } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
+
import { t as te, setI18nRule as Pe } from "@das-fed/upf-web/packages/i18n/index";
|
|
3
|
+
import { defineComponent as be, useAttrs as it, computed as V, ref as X, watchEffect as Tt, openBlock as y, createElementBlock as P, normalizeClass as ve, normalizeStyle as st, createVNode as L, withCtx as z, createCommentVNode as F, createBlock as W, unref as g, mergeProps as J, createSlots as Le, renderSlot as x, Fragment as Q, renderList as fe, createTextVNode as re, toDisplayString as K, isRef as nt, createElementVNode as U, createStaticVNode as rt, watch as le, h as ne, pushScopeId as kt, popScopeId as wt, nextTick as ye, withScopeId as _t, markRaw as It, shallowReactive as Ot, resolveComponent as lt, resolveDirective as xt, withDirectives as At, resolveDynamicComponent as Ue, toHandlers as Pt, normalizeProps as Ct, guardReactiveProps as Dt, onMounted as Rt, onBeforeUnmount as Et } from "vue";
|
|
4
|
+
import { ConfigProvider as Mt } from "ant-design-vue/es";
|
|
5
|
+
import "ant-design-vue/es/config-provider/style/css";
|
|
6
|
+
import { DasAutoRegisterIcon as Vt, DasIcon as ce } from "@das-fed/upf-ui/packages/components/icon/index";
|
|
7
|
+
import { DropdownButton as Bt, Menu as Fe, MenuItem as He, Dropdown as jt, Button as We, RadioGroup as Nt, RadioButton as Lt, Spin as Ut } from "ant-design-vue";
|
|
8
|
+
import "ant-design-vue/es/button/style/css";
|
|
9
|
+
import "ant-design-vue/es/dropdown/style/css";
|
|
10
|
+
import "ant-design-vue/es/radio/style/css";
|
|
11
|
+
import { ElEmpty as Ft } from "element-plus";
|
|
12
|
+
import "ant-design-vue/es/spin/style/css";
|
|
13
|
+
import { DasIconLoad as Ht } from "@das-fed/upf-ui/packages/icons/load/index";
|
|
14
|
+
import "@das-fed/upf-ui/packages/global/theme"
|
|
15
|
+
import '@das-fed/upf-ui/packages/components/infinite-scroll/style.css';
|
|
16
|
+
;
|
|
17
|
+
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
+
function Wt(e) {
|
|
19
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
20
|
+
}
|
|
21
|
+
function Kt(e) {
|
|
22
|
+
var t = typeof e;
|
|
23
|
+
return e != null && (t == "object" || t == "function");
|
|
24
|
+
}
|
|
25
|
+
var ot = Kt, qt = typeof de == "object" && de && de.Object === Object && de, Gt = qt, Yt = Gt, Qt = typeof self == "object" && self && self.Object === Object && self, Xt = Yt || Qt || Function("return this")(), at = Xt, Jt = at, Zt = function() {
|
|
26
|
+
return Jt.Date.now();
|
|
27
|
+
}, ei = Zt, ti = /\s/;
|
|
28
|
+
function ii(e) {
|
|
29
|
+
for (var t = e.length; t-- && ti.test(e.charAt(t)); )
|
|
30
|
+
;
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
var si = ii, ni = si, ri = /^\s+/;
|
|
34
|
+
function li(e) {
|
|
35
|
+
return e && e.slice(0, ni(e) + 1).replace(ri, "");
|
|
36
|
+
}
|
|
37
|
+
var oi = li, ai = at, ui = ai.Symbol, ut = ui, Ke = ut, ct = Object.prototype, ci = ct.hasOwnProperty, di = ct.toString, se = Ke ? Ke.toStringTag : void 0;
|
|
38
|
+
function fi(e) {
|
|
39
|
+
var t = ci.call(e, se), i = e[se];
|
|
40
|
+
try {
|
|
41
|
+
e[se] = void 0;
|
|
42
|
+
var s = !0;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
var n = di.call(e);
|
|
46
|
+
return s && (t ? e[se] = i : delete e[se]), n;
|
|
47
|
+
}
|
|
48
|
+
var hi = fi, mi = Object.prototype, vi = mi.toString;
|
|
49
|
+
function yi(e) {
|
|
50
|
+
return vi.call(e);
|
|
51
|
+
}
|
|
52
|
+
var pi = yi, qe = ut, bi = hi, gi = pi, zi = "[object Null]", Si = "[object Undefined]", Ge = qe ? qe.toStringTag : void 0;
|
|
53
|
+
function $i(e) {
|
|
54
|
+
return e == null ? e === void 0 ? Si : zi : Ge && Ge in Object(e) ? bi(e) : gi(e);
|
|
55
|
+
}
|
|
56
|
+
var Ti = $i;
|
|
57
|
+
function ki(e) {
|
|
58
|
+
return e != null && typeof e == "object";
|
|
59
|
+
}
|
|
60
|
+
var wi = ki, _i = Ti, Ii = wi, Oi = "[object Symbol]";
|
|
61
|
+
function xi(e) {
|
|
62
|
+
return typeof e == "symbol" || Ii(e) && _i(e) == Oi;
|
|
63
|
+
}
|
|
64
|
+
var Ai = xi, Pi = oi, Ye = ot, Ci = Ai, Qe = NaN, Di = /^[-+]0x[0-9a-f]+$/i, Ri = /^0b[01]+$/i, Ei = /^0o[0-7]+$/i, Mi = parseInt;
|
|
65
|
+
function Vi(e) {
|
|
66
|
+
if (typeof e == "number")
|
|
67
|
+
return e;
|
|
68
|
+
if (Ci(e))
|
|
69
|
+
return Qe;
|
|
70
|
+
if (Ye(e)) {
|
|
71
|
+
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
72
|
+
e = Ye(t) ? t + "" : t;
|
|
73
|
+
}
|
|
74
|
+
if (typeof e != "string")
|
|
75
|
+
return e === 0 ? e : +e;
|
|
76
|
+
e = Pi(e);
|
|
77
|
+
var i = Ri.test(e);
|
|
78
|
+
return i || Ei.test(e) ? Mi(e.slice(2), i ? 2 : 8) : Di.test(e) ? Qe : +e;
|
|
79
|
+
}
|
|
80
|
+
var Bi = Vi, ji = ot, ke = ei, Xe = Bi, Ni = "Expected a function", Li = Math.max, Ui = Math.min;
|
|
81
|
+
function Fi(e, t, i) {
|
|
82
|
+
var s, n, d, c, a, o, m = 0, T = !1, k = !1, R = !0;
|
|
83
|
+
if (typeof e != "function")
|
|
84
|
+
throw new TypeError(Ni);
|
|
85
|
+
t = Xe(t) || 0, ji(i) && (T = !!i.leading, k = "maxWait" in i, d = k ? Li(Xe(i.maxWait) || 0, t) : d, R = "trailing" in i ? !!i.trailing : R);
|
|
86
|
+
function B($) {
|
|
87
|
+
var I = s, A = n;
|
|
88
|
+
return s = n = void 0, m = $, c = e.apply(A, I), c;
|
|
89
|
+
}
|
|
90
|
+
function q($) {
|
|
91
|
+
return m = $, a = setTimeout(H, t), T ? B($) : c;
|
|
92
|
+
}
|
|
93
|
+
function S($) {
|
|
94
|
+
var I = $ - o, A = $ - m, j = t - I;
|
|
95
|
+
return k ? Ui(j, d - A) : j;
|
|
96
|
+
}
|
|
97
|
+
function b($) {
|
|
98
|
+
var I = $ - o, A = $ - m;
|
|
99
|
+
return o === void 0 || I >= t || I < 0 || k && A >= d;
|
|
100
|
+
}
|
|
101
|
+
function H() {
|
|
102
|
+
var $ = ke();
|
|
103
|
+
if (b($))
|
|
104
|
+
return E($);
|
|
105
|
+
a = setTimeout(H, S($));
|
|
106
|
+
}
|
|
107
|
+
function E($) {
|
|
108
|
+
return a = void 0, R && s ? B($) : (s = n = void 0, c);
|
|
109
|
+
}
|
|
110
|
+
function M() {
|
|
111
|
+
a !== void 0 && clearTimeout(a), m = 0, s = o = n = a = void 0;
|
|
112
|
+
}
|
|
113
|
+
function f() {
|
|
114
|
+
return a === void 0 ? c : E(ke());
|
|
115
|
+
}
|
|
116
|
+
function D() {
|
|
117
|
+
var $ = ke(), I = b($);
|
|
118
|
+
if (s = arguments, n = this, o = $, I) {
|
|
119
|
+
if (a === void 0)
|
|
120
|
+
return q(o);
|
|
121
|
+
if (k)
|
|
122
|
+
return clearTimeout(a), a = setTimeout(H, t), B(o);
|
|
123
|
+
}
|
|
124
|
+
return a === void 0 && (a = setTimeout(H, t)), c;
|
|
125
|
+
}
|
|
126
|
+
return D.cancel = M, D.flush = f, D;
|
|
127
|
+
}
|
|
128
|
+
var Hi = Fi;
|
|
129
|
+
const we = /* @__PURE__ */ Wt(Hi), Wi = {
|
|
130
|
+
inheritAttrs: !1
|
|
131
|
+
// 不希望组件的根元素继承特性
|
|
132
|
+
}, Ki = /* @__PURE__ */ be({
|
|
133
|
+
...Wi,
|
|
134
|
+
__name: "Index",
|
|
135
|
+
props: {
|
|
136
|
+
btnType: { default: "primary" },
|
|
137
|
+
size: { default: "middle" },
|
|
138
|
+
disabled: { type: Boolean, default: !1 },
|
|
139
|
+
block: { type: Boolean, default: !1 },
|
|
140
|
+
ghost: { type: Boolean, default: !1 },
|
|
141
|
+
menuData: { default: [] },
|
|
142
|
+
defaultMenuProps: { default: () => ({
|
|
143
|
+
key: "key",
|
|
144
|
+
label: "label",
|
|
145
|
+
icon: "icon"
|
|
146
|
+
}) },
|
|
147
|
+
icon: { default: "" },
|
|
148
|
+
activeIcon: { default: "" },
|
|
149
|
+
isIconLeft: { type: Boolean, default: !0 },
|
|
150
|
+
trigger: { default: "click" },
|
|
151
|
+
activeKey: { type: [String, Number, Boolean], default: "" },
|
|
152
|
+
getPopupContainer: { type: Function, default: (e) => e.parentNode || document.body },
|
|
153
|
+
isClickDebounce: { type: Boolean, default: !0 }
|
|
154
|
+
},
|
|
155
|
+
emits: ["update:activeKey", "click"],
|
|
156
|
+
setup(e, { emit: t }) {
|
|
157
|
+
Vt({
|
|
158
|
+
fold: import("@das-fed/upf-ui/packages/icons/fold"),
|
|
159
|
+
unflod: import("@das-fed/upf-ui/packages/icons/unflod")
|
|
160
|
+
});
|
|
161
|
+
const i = e, s = t, n = it(), d = V(() => i.btnType === "primary-text" || i.btnType === "default-text"), c = V(() => i.block && !d.value), a = (l) => {
|
|
162
|
+
const h = l.trim();
|
|
163
|
+
return h ? /^m(?:[trblxy]|-[trblxy])?-?\d+$/.test(h) || /^margin(?:-[trblxy]|-(?:top|right|bottom|left|inline|block))?-\d+$/.test(h) : !1;
|
|
164
|
+
}, o = (l) => {
|
|
165
|
+
const h = { root: [], inner: [] };
|
|
166
|
+
return l ? Array.isArray(l) ? (l.forEach((p) => {
|
|
167
|
+
const u = o(p);
|
|
168
|
+
h.root.push(...u.root), h.inner.push(...u.inner);
|
|
169
|
+
}), h) : typeof l == "string" ? (l.split(/\s+/).filter(Boolean).forEach((p) => {
|
|
170
|
+
h[a(p) ? "root" : "inner"].push(p);
|
|
171
|
+
}), h) : (typeof l == "object" && Object.entries(l).forEach(([p, u]) => {
|
|
172
|
+
u && p.split(/\s+/).filter(Boolean).forEach((N) => {
|
|
173
|
+
h[a(N) ? "root" : "inner"].push({ [N]: u });
|
|
174
|
+
});
|
|
175
|
+
}), h) : h;
|
|
176
|
+
}, m = V(() => i.btnType === "default-basicset" || i.btnType === "primary-basicset"), T = (l) => /^margin(?:$|[-A-Z])/.test(l.trim()), k = (l) => {
|
|
177
|
+
const h = { root: [], inner: [] };
|
|
178
|
+
if (!l) return h;
|
|
179
|
+
if (Array.isArray(l))
|
|
180
|
+
return l.forEach((p) => {
|
|
181
|
+
const u = k(p);
|
|
182
|
+
h.root.push(...u.root), h.inner.push(...u.inner);
|
|
183
|
+
}), h;
|
|
184
|
+
if (typeof l == "string") {
|
|
185
|
+
const p = [], u = [];
|
|
186
|
+
return l.split(";").forEach((N) => {
|
|
187
|
+
const G = N.indexOf(":");
|
|
188
|
+
if (G < 0) return;
|
|
189
|
+
const oe = N.slice(0, G).trim(), Z = N.trim();
|
|
190
|
+
!oe || !Z || (T(oe) ? p : u).push(Z);
|
|
191
|
+
}), p.length && h.root.push(p.join("; ")), u.length && h.inner.push(u.join("; ")), h;
|
|
192
|
+
}
|
|
193
|
+
if (typeof l == "object") {
|
|
194
|
+
const p = {}, u = {};
|
|
195
|
+
Object.entries(l).forEach(([N, G]) => {
|
|
196
|
+
(T(N) ? p : u)[N] = G;
|
|
197
|
+
}), Object.keys(p).length && h.root.push(p), Object.keys(u).length && h.inner.push(u);
|
|
198
|
+
}
|
|
199
|
+
return h;
|
|
200
|
+
}, R = (l) => !m.value && (!!l.root.length || !l.inner.length), B = () => {
|
|
201
|
+
const l = o(n.class), h = k(n.style), p = { ...n };
|
|
202
|
+
return l.inner.length ? p.class = l.inner : delete p.class, R(l) && (h.inner.length ? p.style = h.inner : delete p.style), p;
|
|
203
|
+
};
|
|
204
|
+
let q = X(i.activeKey), S = X(i.icon);
|
|
205
|
+
const b = V(() => i.size === "small" ? "mini" : i.size === "middle" ? "small" : i.size === "large" ? "medium" : "small"), H = V(() => i.btnType === "primary" ? "primary" : d.value ? "text" : "default"), E = V(() => [
|
|
206
|
+
"das-ui-button",
|
|
207
|
+
`das-ui-button--${i.size}`,
|
|
208
|
+
`das-ui-button--${i.btnType}`,
|
|
209
|
+
{
|
|
210
|
+
"das-ui-button--block": i.block,
|
|
211
|
+
"das-ui-button--ghost": i.ghost,
|
|
212
|
+
"das-ui-button--icon": !!i.icon
|
|
213
|
+
}
|
|
214
|
+
]), M = () => [E.value, o(n.class).root], f = () => {
|
|
215
|
+
if (m.value) {
|
|
216
|
+
const u = [];
|
|
217
|
+
return n.style && u.push(n.style), u.length ? u : void 0;
|
|
218
|
+
}
|
|
219
|
+
const l = o(n.class), h = k(n.style), p = [];
|
|
220
|
+
return R(l) && h.root.length && p.push(...h.root), p.length ? p : void 0;
|
|
221
|
+
};
|
|
222
|
+
Tt(() => {
|
|
223
|
+
s("update:activeKey", q.value);
|
|
224
|
+
});
|
|
225
|
+
const D = (l, h) => {
|
|
226
|
+
document.body.click(), s("click", l, h);
|
|
227
|
+
}, $ = we(
|
|
228
|
+
(l) => {
|
|
229
|
+
S.value = i.icon, D(l, "menu-click");
|
|
230
|
+
},
|
|
231
|
+
300,
|
|
232
|
+
{
|
|
233
|
+
leading: !0
|
|
234
|
+
}
|
|
235
|
+
), I = we(
|
|
236
|
+
(l) => {
|
|
237
|
+
D(l, "button-click");
|
|
238
|
+
},
|
|
239
|
+
300,
|
|
240
|
+
{
|
|
241
|
+
leading: !0
|
|
242
|
+
}
|
|
243
|
+
), A = we(
|
|
244
|
+
(l) => {
|
|
245
|
+
D(l, "self");
|
|
246
|
+
},
|
|
247
|
+
300,
|
|
248
|
+
{
|
|
249
|
+
leading: !0
|
|
250
|
+
}
|
|
251
|
+
), j = (l) => {
|
|
252
|
+
i.isClickDebounce ? A(l) : D(l, "self");
|
|
253
|
+
}, v = (l) => {
|
|
254
|
+
i.isClickDebounce ? I(l) : D(l, "button-click");
|
|
255
|
+
}, C = (l) => {
|
|
256
|
+
i.isClickDebounce ? $(l) : (S.value = i.icon, D(l, "menu-click"));
|
|
257
|
+
}, O = (l) => {
|
|
258
|
+
l ? S.value = i.activeIcon ? i.activeIcon : i.icon : S.value = i.icon;
|
|
259
|
+
};
|
|
260
|
+
return (l, h) => {
|
|
261
|
+
const p = Mt;
|
|
262
|
+
return y(), P(
|
|
263
|
+
"div",
|
|
264
|
+
{
|
|
265
|
+
class: ve(M()),
|
|
266
|
+
style: st(f())
|
|
267
|
+
},
|
|
268
|
+
[
|
|
269
|
+
L(p, { autoInsertSpaceInButton: !1 }, {
|
|
270
|
+
default: z(() => [
|
|
271
|
+
F(" 同类集合按钮 "),
|
|
272
|
+
e.btnType === "default-sameset" || e.btnType === "primary-sameset" ? (y(), W(g(Bt), J({ key: 0 }, B(), {
|
|
273
|
+
tabindex: "-1",
|
|
274
|
+
trigger: e.trigger,
|
|
275
|
+
disabled: e.disabled,
|
|
276
|
+
getPopupContainer: e.getPopupContainer,
|
|
277
|
+
onVisibleChange: O,
|
|
278
|
+
onClick: v,
|
|
279
|
+
type: e.btnType === "primary-sameset" ? "primary" : "default",
|
|
280
|
+
class: `${e.block ? "block" : ""} ${e.size}`
|
|
281
|
+
}), Le({
|
|
282
|
+
default: z(() => [
|
|
283
|
+
x(l.$slots, "default", {}, void 0, !0)
|
|
284
|
+
]),
|
|
285
|
+
_: 2
|
|
286
|
+
/* DYNAMIC */
|
|
287
|
+
}, [
|
|
288
|
+
e.menuData && e.menuData.length > 0 ? {
|
|
289
|
+
name: "overlay",
|
|
290
|
+
fn: z(() => [
|
|
291
|
+
L(g(Fe), { onClick: C }, {
|
|
292
|
+
default: z(() => [
|
|
293
|
+
(y(!0), P(
|
|
294
|
+
Q,
|
|
295
|
+
null,
|
|
296
|
+
fe(e.menuData, (u) => (y(), W(g(He), {
|
|
297
|
+
key: u[e.defaultMenuProps.key],
|
|
298
|
+
disabled: u.disabled
|
|
299
|
+
}, {
|
|
300
|
+
default: z(() => [
|
|
301
|
+
re(
|
|
302
|
+
K(u[e.defaultMenuProps.label]),
|
|
303
|
+
1
|
|
304
|
+
/* TEXT */
|
|
305
|
+
)
|
|
306
|
+
]),
|
|
307
|
+
_: 2
|
|
308
|
+
/* DYNAMIC */
|
|
309
|
+
}, 1032, ["disabled"]))),
|
|
310
|
+
128
|
|
311
|
+
/* KEYED_FRAGMENT */
|
|
312
|
+
))
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
/* STABLE */
|
|
316
|
+
})
|
|
317
|
+
]),
|
|
318
|
+
key: "0"
|
|
319
|
+
} : void 0,
|
|
320
|
+
e.icon ? {
|
|
321
|
+
name: "icon",
|
|
322
|
+
fn: z(() => [
|
|
323
|
+
L(g(ce), {
|
|
324
|
+
icon: g(S),
|
|
325
|
+
size: b.value
|
|
326
|
+
}, null, 8, ["icon", "size"])
|
|
327
|
+
]),
|
|
328
|
+
key: "1"
|
|
329
|
+
} : void 0
|
|
330
|
+
]), 1040, ["trigger", "disabled", "getPopupContainer", "type", "class"])) : e.btnType === "default-basicset" || e.btnType === "primary-basicset" ? (y(), P(
|
|
331
|
+
Q,
|
|
332
|
+
{ key: 1 },
|
|
333
|
+
[
|
|
334
|
+
F(" 基础集合按钮 "),
|
|
335
|
+
L(g(jt), J(B(), {
|
|
336
|
+
tabindex: "-1",
|
|
337
|
+
type: e.btnType === "primary-basicset" ? "primary" : "default",
|
|
338
|
+
trigger: e.trigger,
|
|
339
|
+
disabled: e.disabled,
|
|
340
|
+
ref: "basicsetDropdownRef",
|
|
341
|
+
class: `${e.block ? "block" : ""} ${e.btnType === "primary-basicset" ? "primary" : "default"} ${e.size}`,
|
|
342
|
+
onVisibleChange: O,
|
|
343
|
+
overlayClassName: "basicset-dropdown-wrap"
|
|
344
|
+
}), Le({
|
|
345
|
+
default: z(() => [
|
|
346
|
+
L(g(We), null, {
|
|
347
|
+
default: z(() => [
|
|
348
|
+
x(l.$slots, "default", {}, void 0, !0),
|
|
349
|
+
e.icon ? (y(), W(g(ce), {
|
|
350
|
+
key: 0,
|
|
351
|
+
icon: g(S),
|
|
352
|
+
size: e.size === "small" ? "medium" : e.size === "middle" ? "big" : e.size === "large" ? "large" : "big"
|
|
353
|
+
}, null, 8, ["icon", "size"])) : F("v-if", !0)
|
|
354
|
+
]),
|
|
355
|
+
_: 3
|
|
356
|
+
/* FORWARDED */
|
|
357
|
+
})
|
|
358
|
+
]),
|
|
359
|
+
_: 2
|
|
360
|
+
/* DYNAMIC */
|
|
361
|
+
}, [
|
|
362
|
+
e.menuData && e.menuData.length > 0 ? {
|
|
363
|
+
name: "overlay",
|
|
364
|
+
fn: z(() => [
|
|
365
|
+
L(g(Fe), { onClick: C }, {
|
|
366
|
+
default: z(() => [
|
|
367
|
+
(y(!0), P(
|
|
368
|
+
Q,
|
|
369
|
+
null,
|
|
370
|
+
fe(e.menuData, (u) => (y(), W(g(He), {
|
|
371
|
+
key: u[e.defaultMenuProps.key],
|
|
372
|
+
disabled: u.disabled
|
|
373
|
+
}, {
|
|
374
|
+
default: z(() => [
|
|
375
|
+
x(l.$slots, "menu-item", { item: u }, () => [
|
|
376
|
+
re(
|
|
377
|
+
K(u[e.defaultMenuProps.label]),
|
|
378
|
+
1
|
|
379
|
+
/* TEXT */
|
|
380
|
+
)
|
|
381
|
+
], !0)
|
|
382
|
+
]),
|
|
383
|
+
_: 2
|
|
384
|
+
/* DYNAMIC */
|
|
385
|
+
}, 1032, ["disabled"]))),
|
|
386
|
+
128
|
|
387
|
+
/* KEYED_FRAGMENT */
|
|
388
|
+
))
|
|
389
|
+
]),
|
|
390
|
+
_: 3
|
|
391
|
+
/* FORWARDED */
|
|
392
|
+
})
|
|
393
|
+
]),
|
|
394
|
+
key: "0"
|
|
395
|
+
} : void 0
|
|
396
|
+
]), 1040, ["type", "trigger", "disabled", "class"])
|
|
397
|
+
],
|
|
398
|
+
64
|
|
399
|
+
/* STABLE_FRAGMENT */
|
|
400
|
+
)) : e.btnType === "tabs" ? (y(), P(
|
|
401
|
+
Q,
|
|
402
|
+
{ key: 2 },
|
|
403
|
+
[
|
|
404
|
+
F(" 切换按钮tab "),
|
|
405
|
+
e.menuData && e.menuData.length > 0 ? (y(), W(g(Nt), J({ key: 0 }, B(), {
|
|
406
|
+
tabindex: "-1",
|
|
407
|
+
disabled: e.disabled,
|
|
408
|
+
value: g(q),
|
|
409
|
+
"onUpdate:value": h[0] || (h[0] = (u) => nt(q) ? q.value = u : q = u)
|
|
410
|
+
}), {
|
|
411
|
+
default: z(() => [
|
|
412
|
+
(y(!0), P(
|
|
413
|
+
Q,
|
|
414
|
+
null,
|
|
415
|
+
fe(e.menuData, (u) => (y(), W(g(Lt), {
|
|
416
|
+
key: u[e.defaultMenuProps.key],
|
|
417
|
+
value: u[e.defaultMenuProps.key],
|
|
418
|
+
disabled: u.disabled
|
|
419
|
+
}, {
|
|
420
|
+
default: z(() => [
|
|
421
|
+
re(
|
|
422
|
+
K(u[e.defaultMenuProps.label]),
|
|
423
|
+
1
|
|
424
|
+
/* TEXT */
|
|
425
|
+
)
|
|
426
|
+
]),
|
|
427
|
+
_: 2
|
|
428
|
+
/* DYNAMIC */
|
|
429
|
+
}, 1032, ["value", "disabled"]))),
|
|
430
|
+
128
|
|
431
|
+
/* KEYED_FRAGMENT */
|
|
432
|
+
))
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
/* STABLE */
|
|
436
|
+
}, 16, ["disabled", "value"])) : F("v-if", !0)
|
|
437
|
+
],
|
|
438
|
+
64
|
|
439
|
+
/* STABLE_FRAGMENT */
|
|
440
|
+
)) : (y(), P(
|
|
441
|
+
Q,
|
|
442
|
+
{ key: 3 },
|
|
443
|
+
[
|
|
444
|
+
F(" 普通按钮 "),
|
|
445
|
+
L(g(We), J(B(), {
|
|
446
|
+
tabindex: "-1",
|
|
447
|
+
type: H.value,
|
|
448
|
+
size: e.size,
|
|
449
|
+
disabled: e.disabled,
|
|
450
|
+
block: c.value,
|
|
451
|
+
ghost: e.ghost,
|
|
452
|
+
onClick: j
|
|
453
|
+
}), {
|
|
454
|
+
default: z(() => [
|
|
455
|
+
e.icon && e.isIconLeft ? (y(), W(g(ce), {
|
|
456
|
+
key: 0,
|
|
457
|
+
icon: e.icon,
|
|
458
|
+
size: b.value
|
|
459
|
+
}, null, 8, ["icon", "size"])) : F("v-if", !0),
|
|
460
|
+
x(l.$slots, "default", {}, void 0, !0),
|
|
461
|
+
e.icon && !e.isIconLeft ? (y(), W(g(ce), {
|
|
462
|
+
key: 1,
|
|
463
|
+
icon: e.icon,
|
|
464
|
+
size: b.value
|
|
465
|
+
}, null, 8, ["icon", "size"])) : F("v-if", !0)
|
|
466
|
+
]),
|
|
467
|
+
_: 3
|
|
468
|
+
/* FORWARDED */
|
|
469
|
+
}, 16, ["type", "size", "disabled", "block", "ghost"])
|
|
470
|
+
],
|
|
471
|
+
64
|
|
472
|
+
/* STABLE_FRAGMENT */
|
|
473
|
+
))
|
|
474
|
+
]),
|
|
475
|
+
_: 3
|
|
476
|
+
/* FORWARDED */
|
|
477
|
+
})
|
|
478
|
+
],
|
|
479
|
+
6
|
|
480
|
+
/* CLASS, STYLE */
|
|
481
|
+
);
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}), ie = (e, t) => {
|
|
485
|
+
const i = e.__vccOpts || e;
|
|
486
|
+
for (const [s, n] of t)
|
|
487
|
+
i[s] = n;
|
|
488
|
+
return i;
|
|
489
|
+
}, qi = /* @__PURE__ */ ie(Ki, [["__scopeId", "data-v-5cfb834c"]]), Je = pe(qi), Gi = (e) => {
|
|
490
|
+
const t = {
|
|
491
|
+
default: 168,
|
|
492
|
+
large: 224,
|
|
493
|
+
small: 120,
|
|
494
|
+
custom: void 0
|
|
495
|
+
};
|
|
496
|
+
return { imgSize: V(() => t[e.size] || e.imageSize) };
|
|
497
|
+
}, Yi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABgCAMAAAC+LslfAAABklBMVEUAAAD////////////////////////j4+P////q///////r6+v////x///y///z8//29vbt9vbu9/fv7/fv9/fy+Pjy8vny+f/z8/n09Pnv9Prx9vry8vvy9/vy9/vv8/fz8/vw9Pjx9Pj09Pv1+Pj1+Pzy9fjy9fny9vnz9vnw9vnw8/bw8/nw9vn09vnx9Pnx9Pny9frz+Prz9frz9vrz9vr09vrx9vry9vv09vvy9Pjy9Pv09vv09vvy9Pvy9Pnz9fvz9/nx9fnx9fvx9fnz9fvz9fvx9fny9vnq7PLy9Pny9vny9vvy9Pny9vny9Pny9Pny9vry9vvx9Prz9Prz9Prx9fry9Pry9fzy9frx9Prz9vzy9fvz9fvx9fnz9vvy9Pry9Pry9fry9fry9frz9frz9fry9fry9fny9Pny9Prx9Pny9vzy9vzy9vry9vry9frz9fry9fvy9fvy9fny9fry9fry9vvy9fre4ebq7fLx9Prx9fnx9fry9fny9fry9fvy9vry9vvz9frz9vrz9vv4+wSwAAAAeXRSTlMAAgMEBQYHCQsMDA0REhQVHB0eICAmKCgsLi83Ozw9QEJGSEhLS01PUVJUVldXWVpbYmlqbG5vcHJyc3N1dnd5e3t+fn+AgYSHiIiIiImJiouMjI+PkJWcnJ2mrK6ut7/BwsTHyM/Q0dbX2drb3N3e4OHk5ebq8PL2luGUowAAAAFiS0dEAf8CLd4AAAJ8SURBVGje7dlpUxNBEIfxbDCCeKDirSiKRsQrioI3AkGBiKjxvsVbFMEggtmZCS58b15QaCE7mZ6equ2hqp9P8KtO1X+3NqkUx3Ecx+nL3J5U4AYIoQVl0W9C6aQVlFCq7KB0UlsomdQaSiW1hxJJEVAaKQZKIkVBKaQ4KIEUCU1eioUmLkVDk5bioQlLFwUzS1m5GcpQhjKUoasOiouhDGXo6oXOWMbQpdY2D70ZnZoujQw3pT2G1nd++/W3sc5aX6GHPv9c1vusl9D0jfGJ/xq/EvgHDYa+xHQ/8G6euj7Eds43aNO7+N56Bl334pWmeb+gJ1/qEmVXaHr/nZHS9NTo68HmjKtzzePnulTFDVp74fu/bf7aUe8G3f1UmxDV5skIPfpx+TZ/OugEbXuiTakyHhpcm1ixzX1pjHBnrrdYzOfyD7VVH/zq0OBB3DbfCqyZDe33jFUqf9DQ8/HbfNXWua37pjml5rDQWd0277Nzbrx8HRD+py/P6bb5WZ0V9PglSFJK5DgJoR3nNhvnlnZQ+BUtK+04P6qxebqfAYWHCqFf510W0COnQEVRhHNWlNKv8zELaLYVFPqgs0rp17k3ly8We07vgEBbYKEvOq/UXWNnN5mhB2CFYYg+KmCmuxuN0L2wXF6cITt9cYMJugeWWHx9sk9KCRrqEybodlguF4Ut9WYDdCssFyhsqU1P/gZYaGUURbClPmyAroeFf9YrBVvqrAFaA8vlosCpJv6QG4YhcKrpvzgDp5oYKoQATjX9RYFTTQ8FTjU9FDjVxFApJXCq6S8KnGr+546hDPUKWsI7fyQKLeCh/YlCMwXkTUuFTIrjOI7j9C0AikFlNRu/XcAAAAAASUVORK5CYII=", Qi = { class: "das-ui-empty" }, Xi = {
|
|
498
|
+
key: 0,
|
|
499
|
+
class: "title"
|
|
500
|
+
}, Ji = {
|
|
501
|
+
key: 1,
|
|
502
|
+
class: "description"
|
|
503
|
+
}, Zi = ["width", "src"], es = /* @__PURE__ */ be({
|
|
504
|
+
__name: "Index",
|
|
505
|
+
props: {
|
|
506
|
+
title: { default: "" },
|
|
507
|
+
size: { default: "default" },
|
|
508
|
+
showImage: { type: Boolean, default: !0 },
|
|
509
|
+
showDescription: { type: Boolean, default: !0 },
|
|
510
|
+
description: { default: "" },
|
|
511
|
+
imageSize: { default: 168 },
|
|
512
|
+
image: { default: Yi }
|
|
513
|
+
},
|
|
514
|
+
setup(e) {
|
|
515
|
+
const t = e, { imgSize: i } = Gi(t);
|
|
516
|
+
return (s, n) => (y(), P("div", Qi, [
|
|
517
|
+
L(g(Ft), { "image-size": g(i) }, {
|
|
518
|
+
description: z(() => [
|
|
519
|
+
x(s.$slots, "description", {}, () => [
|
|
520
|
+
e.title ? (y(), P(
|
|
521
|
+
"div",
|
|
522
|
+
Xi,
|
|
523
|
+
K(e.title),
|
|
524
|
+
1
|
|
525
|
+
/* TEXT */
|
|
526
|
+
)) : F("v-if", !0),
|
|
527
|
+
e.showDescription ? (y(), P(
|
|
528
|
+
"div",
|
|
529
|
+
Ji,
|
|
530
|
+
K(e.description || g(te)("das-empty-desc")),
|
|
531
|
+
1
|
|
532
|
+
/* TEXT */
|
|
533
|
+
)) : F("v-if", !0)
|
|
534
|
+
], !0)
|
|
535
|
+
]),
|
|
536
|
+
default: z(() => [
|
|
537
|
+
x(s.$slots, "default", {}, void 0, !0)
|
|
538
|
+
]),
|
|
539
|
+
image: z(() => [
|
|
540
|
+
x(s.$slots, "image", {}, () => [
|
|
541
|
+
e.showImage ? (y(), P("img", {
|
|
542
|
+
key: 0,
|
|
543
|
+
width: g(i),
|
|
544
|
+
src: e.image
|
|
545
|
+
}, null, 8, Zi)) : (y(), P(
|
|
546
|
+
Q,
|
|
547
|
+
{ key: 1 },
|
|
548
|
+
[
|
|
549
|
+
F(" image为空时用于占位,防止出现默认图片 "),
|
|
550
|
+
n[0] || (n[0] = U(
|
|
551
|
+
"div",
|
|
552
|
+
null,
|
|
553
|
+
null,
|
|
554
|
+
-1
|
|
555
|
+
/* CACHED */
|
|
556
|
+
))
|
|
557
|
+
],
|
|
558
|
+
2112
|
|
559
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
560
|
+
))
|
|
561
|
+
], !0)
|
|
562
|
+
]),
|
|
563
|
+
_: 3
|
|
564
|
+
/* FORWARDED */
|
|
565
|
+
}, 8, ["image-size"])
|
|
566
|
+
]));
|
|
567
|
+
}
|
|
568
|
+
}), ts = /* @__PURE__ */ ie(es, [["__scopeId", "data-v-af77685e"]]), is = { "das-empty-desc": { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } }, ss = pe(ts);
|
|
569
|
+
Pe(is);
|
|
570
|
+
const ns = {}, rs = { class: "das-spin-container das-spin-page" };
|
|
571
|
+
function ls(e, t) {
|
|
572
|
+
return y(), P("div", rs, [...t[0] || (t[0] = [
|
|
573
|
+
rt('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
|
|
574
|
+
])]);
|
|
575
|
+
}
|
|
576
|
+
const os = /* @__PURE__ */ ie(ns, [["render", ls], ["__scopeId", "data-v-323f37a9"]]), as = {}, us = { class: "das-spin-container das-spin-component" };
|
|
577
|
+
function cs(e, t) {
|
|
578
|
+
return y(), P("div", us, [...t[0] || (t[0] = [
|
|
579
|
+
U(
|
|
580
|
+
"div",
|
|
581
|
+
{ class: "das-spin-dot-spin" },
|
|
582
|
+
[
|
|
583
|
+
U("i", { class: "das-spin-dot-item" })
|
|
584
|
+
],
|
|
585
|
+
-1
|
|
586
|
+
/* CACHED */
|
|
587
|
+
)
|
|
588
|
+
])]);
|
|
589
|
+
}
|
|
590
|
+
const ds = /* @__PURE__ */ ie(as, [["render", cs], ["__scopeId", "data-v-f47a1ae6"]]), fs = {}, hs = { class: "das-spin-container das-spin-containerload" };
|
|
591
|
+
function ms(e, t) {
|
|
592
|
+
return y(), P("div", hs, [...t[0] || (t[0] = [
|
|
593
|
+
rt('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
|
|
594
|
+
])]);
|
|
595
|
+
}
|
|
596
|
+
const vs = /* @__PURE__ */ ie(fs, [["render", ms], ["__scopeId", "data-v-f7548f22"]]), ys = /* @__PURE__ */ be({
|
|
597
|
+
__name: "index",
|
|
598
|
+
props: {
|
|
599
|
+
type: { default: "page" },
|
|
600
|
+
size: { default: "big" },
|
|
601
|
+
customSize: { default: "28" },
|
|
602
|
+
iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
|
|
603
|
+
full: { type: Boolean, default: !0 }
|
|
604
|
+
},
|
|
605
|
+
setup(e) {
|
|
606
|
+
let t = e, i = X("");
|
|
607
|
+
const s = it();
|
|
608
|
+
return le(
|
|
609
|
+
() => t.type,
|
|
610
|
+
(n, d) => {
|
|
611
|
+
n == "page" && (i.value = ne(os)), n == "container" && (i.value = ne(vs)), n == "component" && (i.value = ne(ds)), n == "load" && (i.value = ne(Ht, {
|
|
612
|
+
iconColor: t.iconColor,
|
|
613
|
+
customSize: t.customSize
|
|
614
|
+
}));
|
|
615
|
+
},
|
|
616
|
+
{ immediate: !0 }
|
|
617
|
+
), le(
|
|
618
|
+
() => s,
|
|
619
|
+
(n, d) => {
|
|
620
|
+
s.indicator && (i.value = s.indicator);
|
|
621
|
+
},
|
|
622
|
+
{ immediate: !0 }
|
|
623
|
+
), (n, d) => (y(), P(
|
|
624
|
+
"div",
|
|
625
|
+
{
|
|
626
|
+
class: ve({ "das-spin-container": !0, full: e.full })
|
|
627
|
+
},
|
|
628
|
+
[
|
|
629
|
+
L(g(Ut), J({
|
|
630
|
+
class: `das-slef-spin ${e.size} ${e.type} `
|
|
631
|
+
}, n.$attrs, { indicator: g(i) }), {
|
|
632
|
+
default: z(() => [
|
|
633
|
+
x(n.$slots, "default")
|
|
634
|
+
]),
|
|
635
|
+
_: 3
|
|
636
|
+
/* FORWARDED */
|
|
637
|
+
}, 16, ["class", "indicator"])
|
|
638
|
+
],
|
|
639
|
+
2
|
|
640
|
+
/* CLASS */
|
|
641
|
+
));
|
|
642
|
+
}
|
|
643
|
+
}), ps = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
|
|
644
|
+
Pe(ps);
|
|
645
|
+
const Ze = pe(ys);
|
|
646
|
+
`${te("加载中")}`;
|
|
647
|
+
function bs() {
|
|
648
|
+
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
649
|
+
if (t > 0)
|
|
650
|
+
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
651
|
+
var i = e.indexOf("Trident/");
|
|
652
|
+
if (i > 0) {
|
|
653
|
+
var s = e.indexOf("rv:");
|
|
654
|
+
return parseInt(e.substring(s + 3, e.indexOf(".", s)), 10);
|
|
655
|
+
}
|
|
656
|
+
var n = e.indexOf("Edge/");
|
|
657
|
+
return n > 0 ? parseInt(e.substring(n + 5, e.indexOf(".", n)), 10) : -1;
|
|
658
|
+
}
|
|
659
|
+
let he;
|
|
660
|
+
function Ie() {
|
|
661
|
+
Ie.init || (Ie.init = !0, he = bs() !== -1);
|
|
662
|
+
}
|
|
663
|
+
var ge = {
|
|
664
|
+
name: "ResizeObserver",
|
|
665
|
+
props: {
|
|
666
|
+
emitOnMount: {
|
|
667
|
+
type: Boolean,
|
|
668
|
+
default: !1
|
|
669
|
+
},
|
|
670
|
+
ignoreWidth: {
|
|
671
|
+
type: Boolean,
|
|
672
|
+
default: !1
|
|
673
|
+
},
|
|
674
|
+
ignoreHeight: {
|
|
675
|
+
type: Boolean,
|
|
676
|
+
default: !1
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
emits: [
|
|
680
|
+
"notify"
|
|
681
|
+
],
|
|
682
|
+
mounted() {
|
|
683
|
+
Ie(), ye(() => {
|
|
684
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
685
|
+
});
|
|
686
|
+
const e = document.createElement("object");
|
|
687
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", he && this.$el.appendChild(e), e.data = "about:blank", he || this.$el.appendChild(e);
|
|
688
|
+
},
|
|
689
|
+
beforeUnmount() {
|
|
690
|
+
this.removeResizeHandlers();
|
|
691
|
+
},
|
|
692
|
+
methods: {
|
|
693
|
+
compareAndNotify() {
|
|
694
|
+
(!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
|
|
695
|
+
},
|
|
696
|
+
emitSize() {
|
|
697
|
+
this.$emit("notify", {
|
|
698
|
+
width: this._w,
|
|
699
|
+
height: this._h
|
|
700
|
+
});
|
|
701
|
+
},
|
|
702
|
+
addResizeHandlers() {
|
|
703
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
704
|
+
},
|
|
705
|
+
removeResizeHandlers() {
|
|
706
|
+
this._resizeObject && this._resizeObject.onload && (!he && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
const gs = /* @__PURE__ */ _t("data-v-b329ee4c");
|
|
711
|
+
kt("data-v-b329ee4c");
|
|
712
|
+
const zs = {
|
|
713
|
+
class: "resize-observer",
|
|
714
|
+
tabindex: "-1"
|
|
715
|
+
};
|
|
716
|
+
wt();
|
|
717
|
+
const Ss = /* @__PURE__ */ gs((e, t, i, s, n, d) => (y(), W("div", zs)));
|
|
718
|
+
ge.render = Ss;
|
|
719
|
+
ge.__scopeId = "data-v-b329ee4c";
|
|
720
|
+
ge.__file = "src/components/ResizeObserver.vue";
|
|
721
|
+
function me(e) {
|
|
722
|
+
"@babel/helpers - typeof";
|
|
723
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? me = function(t) {
|
|
724
|
+
return typeof t;
|
|
725
|
+
} : me = function(t) {
|
|
726
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
727
|
+
}, me(e);
|
|
728
|
+
}
|
|
729
|
+
function $s(e, t) {
|
|
730
|
+
if (!(e instanceof t))
|
|
731
|
+
throw new TypeError("Cannot call a class as a function");
|
|
732
|
+
}
|
|
733
|
+
function Ts(e, t) {
|
|
734
|
+
for (var i = 0; i < t.length; i++) {
|
|
735
|
+
var s = t[i];
|
|
736
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(e, s.key, s);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
function ks(e, t, i) {
|
|
740
|
+
return Ts(e.prototype, t), e;
|
|
741
|
+
}
|
|
742
|
+
function et(e) {
|
|
743
|
+
return ws(e) || _s(e) || Is(e) || Os();
|
|
744
|
+
}
|
|
745
|
+
function ws(e) {
|
|
746
|
+
if (Array.isArray(e)) return Oe(e);
|
|
747
|
+
}
|
|
748
|
+
function _s(e) {
|
|
749
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
750
|
+
}
|
|
751
|
+
function Is(e, t) {
|
|
752
|
+
if (e) {
|
|
753
|
+
if (typeof e == "string") return Oe(e, t);
|
|
754
|
+
var i = Object.prototype.toString.call(e).slice(8, -1);
|
|
755
|
+
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
|
756
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Oe(e, t);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
function Oe(e, t) {
|
|
760
|
+
(t == null || t > e.length) && (t = e.length);
|
|
761
|
+
for (var i = 0, s = new Array(t); i < t; i++) s[i] = e[i];
|
|
762
|
+
return s;
|
|
763
|
+
}
|
|
764
|
+
function Os() {
|
|
765
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
766
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
767
|
+
}
|
|
768
|
+
function xs(e) {
|
|
769
|
+
var t;
|
|
770
|
+
return typeof e == "function" ? t = {
|
|
771
|
+
callback: e
|
|
772
|
+
} : t = e, t;
|
|
773
|
+
}
|
|
774
|
+
function As(e, t) {
|
|
775
|
+
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, n, d, c = function(o) {
|
|
776
|
+
for (var m = arguments.length, T = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
|
|
777
|
+
T[k - 1] = arguments[k];
|
|
778
|
+
if (d = T, !(s && o === n)) {
|
|
779
|
+
var R = i.leading;
|
|
780
|
+
typeof R == "function" && (R = R(o, n)), (!s || o !== n) && R && e.apply(void 0, [o].concat(et(d))), n = o, clearTimeout(s), s = setTimeout(function() {
|
|
781
|
+
e.apply(void 0, [o].concat(et(d))), s = 0;
|
|
782
|
+
}, t);
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
return c._clear = function() {
|
|
786
|
+
clearTimeout(s), s = null;
|
|
787
|
+
}, c;
|
|
788
|
+
}
|
|
789
|
+
function dt(e, t) {
|
|
790
|
+
if (e === t) return !0;
|
|
791
|
+
if (me(e) === "object") {
|
|
792
|
+
for (var i in e)
|
|
793
|
+
if (!dt(e[i], t[i]))
|
|
794
|
+
return !1;
|
|
795
|
+
return !0;
|
|
796
|
+
}
|
|
797
|
+
return !1;
|
|
798
|
+
}
|
|
799
|
+
var Ps = /* @__PURE__ */ function() {
|
|
800
|
+
function e(t, i, s) {
|
|
801
|
+
$s(this, e), this.el = t, this.observer = null, this.frozen = !1, this.createObserver(i, s);
|
|
802
|
+
}
|
|
803
|
+
return ks(e, [{
|
|
804
|
+
key: "createObserver",
|
|
805
|
+
value: function(i, s) {
|
|
806
|
+
var n = this;
|
|
807
|
+
if (this.observer && this.destroyObserver(), !this.frozen) {
|
|
808
|
+
if (this.options = xs(i), this.callback = function(a, o) {
|
|
809
|
+
n.options.callback(a, o), a && n.options.once && (n.frozen = !0, n.destroyObserver());
|
|
810
|
+
}, this.callback && this.options.throttle) {
|
|
811
|
+
var d = this.options.throttleOptions || {}, c = d.leading;
|
|
812
|
+
this.callback = As(this.callback, this.options.throttle, {
|
|
813
|
+
leading: function(o) {
|
|
814
|
+
return c === "both" || c === "visible" && o || c === "hidden" && !o;
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
this.oldResult = void 0, this.observer = new IntersectionObserver(function(a) {
|
|
819
|
+
var o = a[0];
|
|
820
|
+
if (a.length > 1) {
|
|
821
|
+
var m = a.find(function(k) {
|
|
822
|
+
return k.isIntersecting;
|
|
823
|
+
});
|
|
824
|
+
m && (o = m);
|
|
825
|
+
}
|
|
826
|
+
if (n.callback) {
|
|
827
|
+
var T = o.isIntersecting && o.intersectionRatio >= n.threshold;
|
|
828
|
+
if (T === n.oldResult) return;
|
|
829
|
+
n.oldResult = T, n.callback(T, o);
|
|
830
|
+
}
|
|
831
|
+
}, this.options.intersection), ye(function() {
|
|
832
|
+
n.observer && n.observer.observe(n.el);
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}, {
|
|
837
|
+
key: "destroyObserver",
|
|
838
|
+
value: function() {
|
|
839
|
+
this.observer && (this.observer.disconnect(), this.observer = null), this.callback && this.callback._clear && (this.callback._clear(), this.callback = null);
|
|
840
|
+
}
|
|
841
|
+
}, {
|
|
842
|
+
key: "threshold",
|
|
843
|
+
get: function() {
|
|
844
|
+
return this.options.intersection && typeof this.options.intersection.threshold == "number" ? this.options.intersection.threshold : 0;
|
|
845
|
+
}
|
|
846
|
+
}]), e;
|
|
847
|
+
}();
|
|
848
|
+
function ft(e, t, i) {
|
|
849
|
+
var s = t.value;
|
|
850
|
+
if (s && !(typeof IntersectionObserver > "u")) {
|
|
851
|
+
var n = new Ps(e, s, i);
|
|
852
|
+
e._vue_visibilityState = n;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function Cs(e, t, i) {
|
|
856
|
+
var s = t.value, n = t.oldValue;
|
|
857
|
+
if (!dt(s, n)) {
|
|
858
|
+
var d = e._vue_visibilityState;
|
|
859
|
+
if (!s) {
|
|
860
|
+
ht(e);
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
d ? d.createObserver(s, i) : ft(e, {
|
|
864
|
+
value: s
|
|
865
|
+
}, i);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
function ht(e) {
|
|
869
|
+
var t = e._vue_visibilityState;
|
|
870
|
+
t && (t.destroyObserver(), delete e._vue_visibilityState);
|
|
871
|
+
}
|
|
872
|
+
var Ds = {
|
|
873
|
+
beforeMount: ft,
|
|
874
|
+
updated: Cs,
|
|
875
|
+
unmounted: ht
|
|
876
|
+
};
|
|
877
|
+
function Rs(e) {
|
|
878
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, i) {
|
|
879
|
+
var s = e.get(t);
|
|
880
|
+
s && s.push(i) || e.set(t, [i]);
|
|
881
|
+
}, off: function(t, i) {
|
|
882
|
+
var s = e.get(t);
|
|
883
|
+
s && s.splice(s.indexOf(i) >>> 0, 1);
|
|
884
|
+
}, emit: function(t, i) {
|
|
885
|
+
(e.get(t) || []).slice().map(function(s) {
|
|
886
|
+
s(i);
|
|
887
|
+
}), (e.get("*") || []).slice().map(function(s) {
|
|
888
|
+
s(t, i);
|
|
889
|
+
});
|
|
890
|
+
} };
|
|
891
|
+
}
|
|
892
|
+
var Es = {
|
|
893
|
+
itemsLimit: 1e3
|
|
894
|
+
}, Ms = /(auto|scroll)/;
|
|
895
|
+
function mt(e, t) {
|
|
896
|
+
return e.parentNode === null ? t : mt(e.parentNode, t.concat([e]));
|
|
897
|
+
}
|
|
898
|
+
var _e = function(t, i) {
|
|
899
|
+
return getComputedStyle(t, null).getPropertyValue(i);
|
|
900
|
+
}, Vs = function(t) {
|
|
901
|
+
return _e(t, "overflow") + _e(t, "overflow-y") + _e(t, "overflow-x");
|
|
902
|
+
}, Bs = function(t) {
|
|
903
|
+
return Ms.test(Vs(t));
|
|
904
|
+
};
|
|
905
|
+
function tt(e) {
|
|
906
|
+
if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
907
|
+
for (var t = mt(e.parentNode, []), i = 0; i < t.length; i += 1)
|
|
908
|
+
if (Bs(t[i]))
|
|
909
|
+
return t[i];
|
|
910
|
+
return document.scrollingElement || document.documentElement;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
function xe(e) {
|
|
914
|
+
"@babel/helpers - typeof";
|
|
915
|
+
return xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
916
|
+
return typeof t;
|
|
917
|
+
} : function(t) {
|
|
918
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
919
|
+
}, xe(e);
|
|
920
|
+
}
|
|
921
|
+
var vt = {
|
|
922
|
+
items: {
|
|
923
|
+
type: Array,
|
|
924
|
+
required: !0
|
|
925
|
+
},
|
|
926
|
+
keyField: {
|
|
927
|
+
type: String,
|
|
928
|
+
default: "id"
|
|
929
|
+
},
|
|
930
|
+
direction: {
|
|
931
|
+
type: String,
|
|
932
|
+
default: "vertical",
|
|
933
|
+
validator: function(t) {
|
|
934
|
+
return ["vertical", "horizontal"].includes(t);
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
listTag: {
|
|
938
|
+
type: String,
|
|
939
|
+
default: "div"
|
|
940
|
+
},
|
|
941
|
+
itemTag: {
|
|
942
|
+
type: String,
|
|
943
|
+
default: "div"
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
function yt() {
|
|
947
|
+
return this.items.length && xe(this.items[0]) !== "object";
|
|
948
|
+
}
|
|
949
|
+
var Ae = !1;
|
|
950
|
+
if (typeof window < "u") {
|
|
951
|
+
Ae = !1;
|
|
952
|
+
try {
|
|
953
|
+
var js = Object.defineProperty({}, "passive", {
|
|
954
|
+
get: function() {
|
|
955
|
+
Ae = !0;
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
window.addEventListener("test", null, js);
|
|
959
|
+
} catch {
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
let Ns = 0;
|
|
963
|
+
var Ce = {
|
|
964
|
+
name: "RecycleScroller",
|
|
965
|
+
components: {
|
|
966
|
+
ResizeObserver: ge
|
|
967
|
+
},
|
|
968
|
+
directives: {
|
|
969
|
+
ObserveVisibility: Ds
|
|
970
|
+
},
|
|
971
|
+
props: {
|
|
972
|
+
...vt,
|
|
973
|
+
itemSize: {
|
|
974
|
+
type: Number,
|
|
975
|
+
default: null
|
|
976
|
+
},
|
|
977
|
+
gridItems: {
|
|
978
|
+
type: Number,
|
|
979
|
+
default: void 0
|
|
980
|
+
},
|
|
981
|
+
itemSecondarySize: {
|
|
982
|
+
type: Number,
|
|
983
|
+
default: void 0
|
|
984
|
+
},
|
|
985
|
+
minItemSize: {
|
|
986
|
+
type: [Number, String],
|
|
987
|
+
default: null
|
|
988
|
+
},
|
|
989
|
+
sizeField: {
|
|
990
|
+
type: String,
|
|
991
|
+
default: "size"
|
|
992
|
+
},
|
|
993
|
+
typeField: {
|
|
994
|
+
type: String,
|
|
995
|
+
default: "type"
|
|
996
|
+
},
|
|
997
|
+
buffer: {
|
|
998
|
+
type: Number,
|
|
999
|
+
default: 200
|
|
1000
|
+
},
|
|
1001
|
+
pageMode: {
|
|
1002
|
+
type: Boolean,
|
|
1003
|
+
default: !1
|
|
1004
|
+
},
|
|
1005
|
+
prerender: {
|
|
1006
|
+
type: Number,
|
|
1007
|
+
default: 0
|
|
1008
|
+
},
|
|
1009
|
+
emitUpdate: {
|
|
1010
|
+
type: Boolean,
|
|
1011
|
+
default: !1
|
|
1012
|
+
},
|
|
1013
|
+
updateInterval: {
|
|
1014
|
+
type: Number,
|
|
1015
|
+
default: 0
|
|
1016
|
+
},
|
|
1017
|
+
skipHover: {
|
|
1018
|
+
type: Boolean,
|
|
1019
|
+
default: !1
|
|
1020
|
+
},
|
|
1021
|
+
listTag: {
|
|
1022
|
+
type: String,
|
|
1023
|
+
default: "div"
|
|
1024
|
+
},
|
|
1025
|
+
itemTag: {
|
|
1026
|
+
type: String,
|
|
1027
|
+
default: "div"
|
|
1028
|
+
},
|
|
1029
|
+
listClass: {
|
|
1030
|
+
type: [String, Object, Array],
|
|
1031
|
+
default: ""
|
|
1032
|
+
},
|
|
1033
|
+
itemClass: {
|
|
1034
|
+
type: [String, Object, Array],
|
|
1035
|
+
default: ""
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
emits: [
|
|
1039
|
+
"resize",
|
|
1040
|
+
"visible",
|
|
1041
|
+
"hidden",
|
|
1042
|
+
"update",
|
|
1043
|
+
"scroll-start",
|
|
1044
|
+
"scroll-end"
|
|
1045
|
+
],
|
|
1046
|
+
data() {
|
|
1047
|
+
return {
|
|
1048
|
+
pool: [],
|
|
1049
|
+
totalSize: 0,
|
|
1050
|
+
ready: !1,
|
|
1051
|
+
hoverKey: null
|
|
1052
|
+
};
|
|
1053
|
+
},
|
|
1054
|
+
computed: {
|
|
1055
|
+
sizes() {
|
|
1056
|
+
if (this.itemSize === null) {
|
|
1057
|
+
const e = {
|
|
1058
|
+
"-1": { accumulator: 0 }
|
|
1059
|
+
}, t = this.items, i = this.sizeField, s = this.minItemSize;
|
|
1060
|
+
let n = 1e4, d = 0, c;
|
|
1061
|
+
for (let a = 0, o = t.length; a < o; a++)
|
|
1062
|
+
c = t[a][i] || s, c < n && (n = c), d += c, e[a] = { accumulator: d, size: c };
|
|
1063
|
+
return this.$_computedMinItemSize = n, e;
|
|
1064
|
+
}
|
|
1065
|
+
return [];
|
|
1066
|
+
},
|
|
1067
|
+
simpleArray: yt,
|
|
1068
|
+
itemIndexByKey() {
|
|
1069
|
+
const { keyField: e, items: t } = this, i = {};
|
|
1070
|
+
for (let s = 0, n = t.length; s < n; s++)
|
|
1071
|
+
i[t[s][e]] = s;
|
|
1072
|
+
return i;
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
watch: {
|
|
1076
|
+
items() {
|
|
1077
|
+
this.updateVisibleItems(!0);
|
|
1078
|
+
},
|
|
1079
|
+
pageMode() {
|
|
1080
|
+
this.applyPageMode(), this.updateVisibleItems(!1);
|
|
1081
|
+
},
|
|
1082
|
+
sizes: {
|
|
1083
|
+
handler() {
|
|
1084
|
+
this.updateVisibleItems(!1);
|
|
1085
|
+
},
|
|
1086
|
+
deep: !0
|
|
1087
|
+
},
|
|
1088
|
+
gridItems() {
|
|
1089
|
+
this.updateVisibleItems(!0);
|
|
1090
|
+
},
|
|
1091
|
+
itemSecondarySize() {
|
|
1092
|
+
this.updateVisibleItems(!0);
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
created() {
|
|
1096
|
+
this.$_startIndex = 0, this.$_endIndex = 0, this.$_views = /* @__PURE__ */ new Map(), this.$_unusedViews = /* @__PURE__ */ new Map(), this.$_scrollDirty = !1, this.$_lastUpdateScrollPosition = 0, this.prerender && (this.$_prerender = !0, this.updateVisibleItems(!1)), this.gridItems && this.itemSize;
|
|
1097
|
+
},
|
|
1098
|
+
mounted() {
|
|
1099
|
+
this.applyPageMode(), this.$nextTick(() => {
|
|
1100
|
+
this.$_prerender = !1, this.updateVisibleItems(!0), this.ready = !0;
|
|
1101
|
+
});
|
|
1102
|
+
},
|
|
1103
|
+
activated() {
|
|
1104
|
+
const e = this.$_lastUpdateScrollPosition;
|
|
1105
|
+
typeof e == "number" && this.$nextTick(() => {
|
|
1106
|
+
this.scrollToPosition(e);
|
|
1107
|
+
});
|
|
1108
|
+
},
|
|
1109
|
+
beforeUnmount() {
|
|
1110
|
+
this.removeListeners();
|
|
1111
|
+
},
|
|
1112
|
+
methods: {
|
|
1113
|
+
addView(e, t, i, s, n) {
|
|
1114
|
+
const d = It({
|
|
1115
|
+
id: Ns++,
|
|
1116
|
+
index: t,
|
|
1117
|
+
used: !0,
|
|
1118
|
+
key: s,
|
|
1119
|
+
type: n
|
|
1120
|
+
}), c = Ot({
|
|
1121
|
+
item: i,
|
|
1122
|
+
position: 0,
|
|
1123
|
+
nr: d
|
|
1124
|
+
});
|
|
1125
|
+
return e.push(c), c;
|
|
1126
|
+
},
|
|
1127
|
+
unuseView(e, t = !1) {
|
|
1128
|
+
const i = this.$_unusedViews, s = e.nr.type;
|
|
1129
|
+
let n = i.get(s);
|
|
1130
|
+
n || (n = [], i.set(s, n)), n.push(e), t || (e.nr.used = !1, e.position = -9999);
|
|
1131
|
+
},
|
|
1132
|
+
handleResize() {
|
|
1133
|
+
this.$emit("resize"), this.ready && this.updateVisibleItems(!1);
|
|
1134
|
+
},
|
|
1135
|
+
handleScroll(e) {
|
|
1136
|
+
if (!this.$_scrollDirty) {
|
|
1137
|
+
if (this.$_scrollDirty = !0, this.$_updateTimeout) return;
|
|
1138
|
+
const t = () => requestAnimationFrame(() => {
|
|
1139
|
+
this.$_scrollDirty = !1;
|
|
1140
|
+
const { continuous: i } = this.updateVisibleItems(!1, !0);
|
|
1141
|
+
i || (clearTimeout(this.$_refreshTimout), this.$_refreshTimout = setTimeout(this.handleScroll, this.updateInterval + 100));
|
|
1142
|
+
});
|
|
1143
|
+
t(), this.updateInterval && (this.$_updateTimeout = setTimeout(() => {
|
|
1144
|
+
this.$_updateTimeout = 0, this.$_scrollDirty && t();
|
|
1145
|
+
}, this.updateInterval));
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
handleVisibilityChange(e, t) {
|
|
1149
|
+
this.ready && (e || t.boundingClientRect.width !== 0 || t.boundingClientRect.height !== 0 ? (this.$emit("visible"), requestAnimationFrame(() => {
|
|
1150
|
+
this.updateVisibleItems(!1);
|
|
1151
|
+
})) : this.$emit("hidden"));
|
|
1152
|
+
},
|
|
1153
|
+
updateVisibleItems(e, t = !1) {
|
|
1154
|
+
const i = this.itemSize, s = this.gridItems || 1, n = this.itemSecondarySize || i, d = this.$_computedMinItemSize, c = this.typeField, a = this.simpleArray ? null : this.keyField, o = this.items, m = o.length, T = this.sizes, k = this.$_views, R = this.$_unusedViews, B = this.pool, q = this.itemIndexByKey;
|
|
1155
|
+
let S, b, H, E, M;
|
|
1156
|
+
if (!m)
|
|
1157
|
+
S = b = E = M = H = 0;
|
|
1158
|
+
else if (this.$_prerender)
|
|
1159
|
+
S = E = 0, b = M = Math.min(this.prerender, o.length), H = null;
|
|
1160
|
+
else {
|
|
1161
|
+
const v = this.getScroll();
|
|
1162
|
+
if (t) {
|
|
1163
|
+
let l = v.start - this.$_lastUpdateScrollPosition;
|
|
1164
|
+
if (l < 0 && (l = -l), i === null && l < d || l < i)
|
|
1165
|
+
return {
|
|
1166
|
+
continuous: !0
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
this.$_lastUpdateScrollPosition = v.start;
|
|
1170
|
+
const C = this.buffer;
|
|
1171
|
+
v.start -= C, v.end += C;
|
|
1172
|
+
let O = 0;
|
|
1173
|
+
if (this.$refs.before && (O = this.$refs.before.scrollHeight, v.start -= O), this.$refs.after) {
|
|
1174
|
+
const l = this.$refs.after.scrollHeight;
|
|
1175
|
+
v.end += l;
|
|
1176
|
+
}
|
|
1177
|
+
if (i === null) {
|
|
1178
|
+
let l, h = 0, p = m - 1, u = ~~(m / 2), N;
|
|
1179
|
+
do
|
|
1180
|
+
N = u, l = T[u].accumulator, l < v.start ? h = u : u < m - 1 && T[u + 1].accumulator > v.start && (p = u), u = ~~((h + p) / 2);
|
|
1181
|
+
while (u !== N);
|
|
1182
|
+
for (u < 0 && (u = 0), S = u, H = T[m - 1].accumulator, b = u; b < m && T[b].accumulator < v.end; b++) ;
|
|
1183
|
+
for (b === -1 ? b = o.length - 1 : (b++, b > m && (b = m)), E = S; E < m && O + T[E].accumulator < v.start; E++) ;
|
|
1184
|
+
for (M = E; M < m && O + T[M].accumulator < v.end; M++) ;
|
|
1185
|
+
} else {
|
|
1186
|
+
S = ~~(v.start / i * s);
|
|
1187
|
+
const l = S % s;
|
|
1188
|
+
S -= l, b = Math.ceil(v.end / i * s), E = Math.max(0, Math.floor((v.start - O) / i * s)), M = Math.floor((v.end - O) / i * s), S < 0 && (S = 0), b > m && (b = m), E < 0 && (E = 0), M > m && (M = m), H = Math.ceil(m / s) * i;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
b - S > Es.itemsLimit && this.itemsLimitError(), this.totalSize = H;
|
|
1192
|
+
let f;
|
|
1193
|
+
const D = S <= this.$_endIndex && b >= this.$_startIndex;
|
|
1194
|
+
if (D)
|
|
1195
|
+
for (let v = 0, C = B.length; v < C; v++)
|
|
1196
|
+
f = B[v], f.nr.used && (e && (f.nr.index = q[f.item[a]]), (f.nr.index == null || f.nr.index < S || f.nr.index >= b) && this.unuseView(f));
|
|
1197
|
+
const $ = D ? null : /* @__PURE__ */ new Map();
|
|
1198
|
+
let I, A, j;
|
|
1199
|
+
for (let v = S; v < b; v++) {
|
|
1200
|
+
I = o[v];
|
|
1201
|
+
const C = a ? I[a] : I;
|
|
1202
|
+
if (C == null)
|
|
1203
|
+
throw new Error(`Key is ${C} on item (keyField is '${a}')`);
|
|
1204
|
+
if (f = k.get(C), !i && !T[v].size) {
|
|
1205
|
+
f && this.unuseView(f);
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
A = I[c];
|
|
1209
|
+
let O = R.get(A), l = !1;
|
|
1210
|
+
if (!f)
|
|
1211
|
+
D ? O && O.length ? f = O.pop() : f = this.addView(B, v, I, C, A) : (j = $.get(A) || 0, (!O || j >= O.length) && (f = this.addView(B, v, I, C, A), this.unuseView(f, !0), O = R.get(A)), f = O[j], $.set(A, j + 1)), k.delete(f.nr.key), f.nr.used = !0, f.nr.index = v, f.nr.key = C, f.nr.type = A, k.set(C, f), l = !0;
|
|
1212
|
+
else if (!f.nr.used && (f.nr.used = !0, l = !0, O)) {
|
|
1213
|
+
const h = O.indexOf(f);
|
|
1214
|
+
h !== -1 && O.splice(h, 1);
|
|
1215
|
+
}
|
|
1216
|
+
f.item = I, l && (v === o.length - 1 && this.$emit("scroll-end"), v === 0 && this.$emit("scroll-start")), i === null ? (f.position = T[v - 1].accumulator, f.offset = 0) : (f.position = Math.floor(v / s) * i, f.offset = v % s * n);
|
|
1217
|
+
}
|
|
1218
|
+
return this.$_startIndex = S, this.$_endIndex = b, this.emitUpdate && this.$emit("update", S, b, E, M), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
1219
|
+
continuous: D
|
|
1220
|
+
};
|
|
1221
|
+
},
|
|
1222
|
+
getListenerTarget() {
|
|
1223
|
+
let e = tt(this.$el);
|
|
1224
|
+
return window.document && (e === window.document.documentElement || e === window.document.body) && (e = window), e;
|
|
1225
|
+
},
|
|
1226
|
+
getScroll() {
|
|
1227
|
+
const { $el: e, direction: t } = this, i = t === "vertical";
|
|
1228
|
+
let s;
|
|
1229
|
+
if (this.pageMode) {
|
|
1230
|
+
const n = e.getBoundingClientRect(), d = i ? n.height : n.width;
|
|
1231
|
+
let c = -(i ? n.top : n.left), a = i ? window.innerHeight : window.innerWidth;
|
|
1232
|
+
c < 0 && (a += c, c = 0), c + a > d && (a = d - c), s = {
|
|
1233
|
+
start: c,
|
|
1234
|
+
end: c + a
|
|
1235
|
+
};
|
|
1236
|
+
} else i ? s = {
|
|
1237
|
+
start: e.scrollTop,
|
|
1238
|
+
end: e.scrollTop + e.clientHeight
|
|
1239
|
+
} : s = {
|
|
1240
|
+
start: e.scrollLeft,
|
|
1241
|
+
end: e.scrollLeft + e.clientWidth
|
|
1242
|
+
};
|
|
1243
|
+
return s;
|
|
1244
|
+
},
|
|
1245
|
+
applyPageMode() {
|
|
1246
|
+
this.pageMode ? this.addListeners() : this.removeListeners();
|
|
1247
|
+
},
|
|
1248
|
+
addListeners() {
|
|
1249
|
+
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, Ae ? {
|
|
1250
|
+
passive: !0
|
|
1251
|
+
} : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
|
|
1252
|
+
},
|
|
1253
|
+
removeListeners() {
|
|
1254
|
+
this.listenerTarget && (this.listenerTarget.removeEventListener("scroll", this.handleScroll), this.listenerTarget.removeEventListener("resize", this.handleResize), this.listenerTarget = null);
|
|
1255
|
+
},
|
|
1256
|
+
scrollToItem(e) {
|
|
1257
|
+
let t;
|
|
1258
|
+
const i = this.gridItems || 1;
|
|
1259
|
+
this.itemSize === null ? t = e > 0 ? this.sizes[e - 1].accumulator : 0 : t = Math.floor(e / i) * this.itemSize, this.scrollToPosition(t);
|
|
1260
|
+
},
|
|
1261
|
+
scrollToPosition(e) {
|
|
1262
|
+
const t = this.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" };
|
|
1263
|
+
let i, s, n;
|
|
1264
|
+
if (this.pageMode) {
|
|
1265
|
+
const d = tt(this.$el), c = d.tagName === "HTML" ? 0 : d[t.scroll], a = d.getBoundingClientRect(), m = this.$el.getBoundingClientRect()[t.start] - a[t.start];
|
|
1266
|
+
i = d, s = t.scroll, n = e + c + m;
|
|
1267
|
+
} else
|
|
1268
|
+
i = this.$el, s = t.scroll, n = e;
|
|
1269
|
+
i[s] = n;
|
|
1270
|
+
},
|
|
1271
|
+
itemsLimitError() {
|
|
1272
|
+
throw setTimeout(() => {
|
|
1273
|
+
}), new Error("Rendered items limit reached");
|
|
1274
|
+
},
|
|
1275
|
+
sortViews() {
|
|
1276
|
+
this.pool.sort((e, t) => e.nr.index - t.nr.index);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
const Ls = {
|
|
1281
|
+
key: 0,
|
|
1282
|
+
ref: "before",
|
|
1283
|
+
class: "vue-recycle-scroller__slot"
|
|
1284
|
+
}, Us = {
|
|
1285
|
+
key: 1,
|
|
1286
|
+
ref: "after",
|
|
1287
|
+
class: "vue-recycle-scroller__slot"
|
|
1288
|
+
};
|
|
1289
|
+
function Fs(e, t, i, s, n, d) {
|
|
1290
|
+
const c = lt("ResizeObserver"), a = xt("observe-visibility");
|
|
1291
|
+
return At((y(), P(
|
|
1292
|
+
"div",
|
|
1293
|
+
{
|
|
1294
|
+
class: ve(["vue-recycle-scroller", {
|
|
1295
|
+
ready: n.ready,
|
|
1296
|
+
"page-mode": i.pageMode,
|
|
1297
|
+
[`direction-${e.direction}`]: !0
|
|
1298
|
+
}]),
|
|
1299
|
+
onScrollPassive: t[0] || (t[0] = (...o) => d.handleScroll && d.handleScroll(...o))
|
|
1300
|
+
},
|
|
1301
|
+
[
|
|
1302
|
+
e.$slots.before ? (y(), P(
|
|
1303
|
+
"div",
|
|
1304
|
+
Ls,
|
|
1305
|
+
[
|
|
1306
|
+
x(e.$slots, "before")
|
|
1307
|
+
],
|
|
1308
|
+
512
|
|
1309
|
+
/* NEED_PATCH */
|
|
1310
|
+
)) : F("v-if", !0),
|
|
1311
|
+
(y(), W(Ue(i.listTag), {
|
|
1312
|
+
ref: "wrapper",
|
|
1313
|
+
style: st({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: n.totalSize + "px" }),
|
|
1314
|
+
class: ve(["vue-recycle-scroller__item-wrapper", i.listClass])
|
|
1315
|
+
}, {
|
|
1316
|
+
default: z(() => [
|
|
1317
|
+
(y(!0), P(
|
|
1318
|
+
Q,
|
|
1319
|
+
null,
|
|
1320
|
+
fe(n.pool, (o) => (y(), W(Ue(i.itemTag), J({
|
|
1321
|
+
key: o.nr.id,
|
|
1322
|
+
style: n.ready ? {
|
|
1323
|
+
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${o.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${o.offset}px)`,
|
|
1324
|
+
width: i.gridItems ? `${e.direction === "vertical" && i.itemSecondarySize || i.itemSize}px` : void 0,
|
|
1325
|
+
height: i.gridItems ? `${e.direction === "horizontal" && i.itemSecondarySize || i.itemSize}px` : void 0
|
|
1326
|
+
} : null,
|
|
1327
|
+
class: ["vue-recycle-scroller__item-view", [
|
|
1328
|
+
i.itemClass,
|
|
1329
|
+
{
|
|
1330
|
+
hover: !i.skipHover && n.hoverKey === o.nr.key
|
|
1331
|
+
}
|
|
1332
|
+
]]
|
|
1333
|
+
}, Pt(i.skipHover ? {} : {
|
|
1334
|
+
mouseenter: () => {
|
|
1335
|
+
n.hoverKey = o.nr.key;
|
|
1336
|
+
},
|
|
1337
|
+
mouseleave: () => {
|
|
1338
|
+
n.hoverKey = null;
|
|
1339
|
+
}
|
|
1340
|
+
})), {
|
|
1341
|
+
default: z(() => [
|
|
1342
|
+
x(e.$slots, "default", {
|
|
1343
|
+
item: o.item,
|
|
1344
|
+
index: o.nr.index,
|
|
1345
|
+
active: o.nr.used
|
|
1346
|
+
})
|
|
1347
|
+
]),
|
|
1348
|
+
_: 2
|
|
1349
|
+
/* DYNAMIC */
|
|
1350
|
+
}, 1040, ["style", "class"]))),
|
|
1351
|
+
128
|
|
1352
|
+
/* KEYED_FRAGMENT */
|
|
1353
|
+
)),
|
|
1354
|
+
x(e.$slots, "empty")
|
|
1355
|
+
]),
|
|
1356
|
+
_: 3
|
|
1357
|
+
/* FORWARDED */
|
|
1358
|
+
}, 8, ["style", "class"])),
|
|
1359
|
+
e.$slots.after ? (y(), P(
|
|
1360
|
+
"div",
|
|
1361
|
+
Us,
|
|
1362
|
+
[
|
|
1363
|
+
x(e.$slots, "after")
|
|
1364
|
+
],
|
|
1365
|
+
512
|
|
1366
|
+
/* NEED_PATCH */
|
|
1367
|
+
)) : F("v-if", !0),
|
|
1368
|
+
L(c, { onNotify: d.handleResize }, null, 8, ["onNotify"])
|
|
1369
|
+
],
|
|
1370
|
+
34
|
|
1371
|
+
/* CLASS, HYDRATE_EVENTS */
|
|
1372
|
+
)), [
|
|
1373
|
+
[a, d.handleVisibilityChange]
|
|
1374
|
+
]);
|
|
1375
|
+
}
|
|
1376
|
+
Ce.render = Fs;
|
|
1377
|
+
Ce.__file = "src/components/RecycleScroller.vue";
|
|
1378
|
+
var De = {
|
|
1379
|
+
name: "DynamicScroller",
|
|
1380
|
+
components: {
|
|
1381
|
+
RecycleScroller: Ce
|
|
1382
|
+
},
|
|
1383
|
+
provide() {
|
|
1384
|
+
return typeof ResizeObserver < "u" && (this.$_resizeObserver = new ResizeObserver((e) => {
|
|
1385
|
+
requestAnimationFrame(() => {
|
|
1386
|
+
if (Array.isArray(e)) {
|
|
1387
|
+
for (const t of e)
|
|
1388
|
+
if (t.target && t.target.$_vs_onResize) {
|
|
1389
|
+
let i, s;
|
|
1390
|
+
if (t.borderBoxSize) {
|
|
1391
|
+
const n = t.borderBoxSize[0];
|
|
1392
|
+
i = n.inlineSize, s = n.blockSize;
|
|
1393
|
+
} else
|
|
1394
|
+
i = t.contentRect.width, s = t.contentRect.height;
|
|
1395
|
+
t.target.$_vs_onResize(t.target.$_vs_id, i, s);
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
})), {
|
|
1400
|
+
vscrollData: this.vscrollData,
|
|
1401
|
+
vscrollParent: this,
|
|
1402
|
+
vscrollResizeObserver: this.$_resizeObserver
|
|
1403
|
+
};
|
|
1404
|
+
},
|
|
1405
|
+
inheritAttrs: !1,
|
|
1406
|
+
props: {
|
|
1407
|
+
...vt,
|
|
1408
|
+
minItemSize: {
|
|
1409
|
+
type: [Number, String],
|
|
1410
|
+
required: !0
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
emits: [
|
|
1414
|
+
"resize",
|
|
1415
|
+
"visible"
|
|
1416
|
+
],
|
|
1417
|
+
data() {
|
|
1418
|
+
return {
|
|
1419
|
+
vscrollData: {
|
|
1420
|
+
active: !0,
|
|
1421
|
+
sizes: {},
|
|
1422
|
+
keyField: this.keyField,
|
|
1423
|
+
simpleArray: !1
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
},
|
|
1427
|
+
computed: {
|
|
1428
|
+
simpleArray: yt,
|
|
1429
|
+
itemsWithSize() {
|
|
1430
|
+
const e = [], { items: t, keyField: i, simpleArray: s } = this, n = this.vscrollData.sizes, d = t.length;
|
|
1431
|
+
for (let c = 0; c < d; c++) {
|
|
1432
|
+
const a = t[c], o = s ? c : a[i];
|
|
1433
|
+
let m = n[o];
|
|
1434
|
+
typeof m > "u" && !this.$_undefinedMap[o] && (m = 0), e.push({
|
|
1435
|
+
item: a,
|
|
1436
|
+
id: o,
|
|
1437
|
+
size: m
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
return e;
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
watch: {
|
|
1444
|
+
items() {
|
|
1445
|
+
this.forceUpdate();
|
|
1446
|
+
},
|
|
1447
|
+
simpleArray: {
|
|
1448
|
+
handler(e) {
|
|
1449
|
+
this.vscrollData.simpleArray = e;
|
|
1450
|
+
},
|
|
1451
|
+
immediate: !0
|
|
1452
|
+
},
|
|
1453
|
+
direction(e) {
|
|
1454
|
+
this.forceUpdate(!0);
|
|
1455
|
+
},
|
|
1456
|
+
itemsWithSize(e, t) {
|
|
1457
|
+
const i = this.$el.scrollTop;
|
|
1458
|
+
let s = 0, n = 0;
|
|
1459
|
+
const d = Math.min(e.length, t.length);
|
|
1460
|
+
for (let a = 0; a < d && !(s >= i); a++)
|
|
1461
|
+
s += t[a].size || this.minItemSize, n += e[a].size || this.minItemSize;
|
|
1462
|
+
const c = n - s;
|
|
1463
|
+
c !== 0 && (this.$el.scrollTop += c);
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
beforeCreate() {
|
|
1467
|
+
this.$_updates = [], this.$_undefinedSizes = 0, this.$_undefinedMap = {}, this.$_events = Rs();
|
|
1468
|
+
},
|
|
1469
|
+
activated() {
|
|
1470
|
+
this.vscrollData.active = !0;
|
|
1471
|
+
},
|
|
1472
|
+
deactivated() {
|
|
1473
|
+
this.vscrollData.active = !1;
|
|
1474
|
+
},
|
|
1475
|
+
unmounted() {
|
|
1476
|
+
this.$_events.all.clear();
|
|
1477
|
+
},
|
|
1478
|
+
methods: {
|
|
1479
|
+
onScrollerResize() {
|
|
1480
|
+
this.$refs.scroller && this.forceUpdate(), this.$emit("resize");
|
|
1481
|
+
},
|
|
1482
|
+
onScrollerVisible() {
|
|
1483
|
+
this.$_events.emit("vscroll:update", { force: !1 }), this.$emit("visible");
|
|
1484
|
+
},
|
|
1485
|
+
forceUpdate(e = !1) {
|
|
1486
|
+
(e || this.simpleArray) && (this.vscrollData.sizes = {}), this.$_events.emit("vscroll:update", { force: !0 });
|
|
1487
|
+
},
|
|
1488
|
+
scrollToItem(e) {
|
|
1489
|
+
const t = this.$refs.scroller;
|
|
1490
|
+
t && t.scrollToItem(e);
|
|
1491
|
+
},
|
|
1492
|
+
getItemSize(e, t = void 0) {
|
|
1493
|
+
const i = this.simpleArray ? t ?? this.items.indexOf(e) : e[this.keyField];
|
|
1494
|
+
return this.vscrollData.sizes[i] || 0;
|
|
1495
|
+
},
|
|
1496
|
+
scrollToBottom() {
|
|
1497
|
+
if (this.$_scrollingToBottom) return;
|
|
1498
|
+
this.$_scrollingToBottom = !0;
|
|
1499
|
+
const e = this.$el;
|
|
1500
|
+
this.$nextTick(() => {
|
|
1501
|
+
e.scrollTop = e.scrollHeight + 5e3;
|
|
1502
|
+
const t = () => {
|
|
1503
|
+
e.scrollTop = e.scrollHeight + 5e3, requestAnimationFrame(() => {
|
|
1504
|
+
e.scrollTop = e.scrollHeight + 5e3, this.$_undefinedSizes === 0 ? this.$_scrollingToBottom = !1 : requestAnimationFrame(t);
|
|
1505
|
+
});
|
|
1506
|
+
};
|
|
1507
|
+
requestAnimationFrame(t);
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
function Hs(e, t, i, s, n, d) {
|
|
1513
|
+
const c = lt("RecycleScroller");
|
|
1514
|
+
return y(), W(c, J({
|
|
1515
|
+
ref: "scroller",
|
|
1516
|
+
items: d.itemsWithSize,
|
|
1517
|
+
"min-item-size": i.minItemSize,
|
|
1518
|
+
direction: e.direction,
|
|
1519
|
+
"key-field": "id",
|
|
1520
|
+
"list-tag": e.listTag,
|
|
1521
|
+
"item-tag": e.itemTag
|
|
1522
|
+
}, e.$attrs, {
|
|
1523
|
+
onResize: d.onScrollerResize,
|
|
1524
|
+
onVisible: d.onScrollerVisible
|
|
1525
|
+
}), {
|
|
1526
|
+
default: z(({ item: a, index: o, active: m }) => [
|
|
1527
|
+
x(e.$slots, "default", Ct(Dt({
|
|
1528
|
+
item: a.item,
|
|
1529
|
+
index: o,
|
|
1530
|
+
active: m,
|
|
1531
|
+
itemWithSize: a
|
|
1532
|
+
})))
|
|
1533
|
+
]),
|
|
1534
|
+
before: z(() => [
|
|
1535
|
+
x(e.$slots, "before")
|
|
1536
|
+
]),
|
|
1537
|
+
after: z(() => [
|
|
1538
|
+
x(e.$slots, "after")
|
|
1539
|
+
]),
|
|
1540
|
+
empty: z(() => [
|
|
1541
|
+
x(e.$slots, "empty")
|
|
1542
|
+
]),
|
|
1543
|
+
_: 3
|
|
1544
|
+
/* FORWARDED */
|
|
1545
|
+
}, 16, ["items", "min-item-size", "direction", "list-tag", "item-tag", "onResize", "onVisible"]);
|
|
1546
|
+
}
|
|
1547
|
+
De.render = Hs;
|
|
1548
|
+
De.__file = "src/components/DynamicScroller.vue";
|
|
1549
|
+
var pt = {
|
|
1550
|
+
name: "DynamicScrollerItem",
|
|
1551
|
+
inject: [
|
|
1552
|
+
"vscrollData",
|
|
1553
|
+
"vscrollParent",
|
|
1554
|
+
"vscrollResizeObserver"
|
|
1555
|
+
],
|
|
1556
|
+
props: {
|
|
1557
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
1558
|
+
item: {
|
|
1559
|
+
required: !0
|
|
1560
|
+
},
|
|
1561
|
+
watchData: {
|
|
1562
|
+
type: Boolean,
|
|
1563
|
+
default: !1
|
|
1564
|
+
},
|
|
1565
|
+
/**
|
|
1566
|
+
* Indicates if the view is actively used to display an item.
|
|
1567
|
+
*/
|
|
1568
|
+
active: {
|
|
1569
|
+
type: Boolean,
|
|
1570
|
+
required: !0
|
|
1571
|
+
},
|
|
1572
|
+
index: {
|
|
1573
|
+
type: Number,
|
|
1574
|
+
default: void 0
|
|
1575
|
+
},
|
|
1576
|
+
sizeDependencies: {
|
|
1577
|
+
type: [Array, Object],
|
|
1578
|
+
default: null
|
|
1579
|
+
},
|
|
1580
|
+
emitResize: {
|
|
1581
|
+
type: Boolean,
|
|
1582
|
+
default: !1
|
|
1583
|
+
},
|
|
1584
|
+
tag: {
|
|
1585
|
+
type: String,
|
|
1586
|
+
default: "div"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
emits: [
|
|
1590
|
+
"resize"
|
|
1591
|
+
],
|
|
1592
|
+
computed: {
|
|
1593
|
+
id() {
|
|
1594
|
+
if (this.vscrollData.simpleArray) return this.index;
|
|
1595
|
+
if (this.vscrollData.keyField in this.item) return this.item[this.vscrollData.keyField];
|
|
1596
|
+
throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`);
|
|
1597
|
+
},
|
|
1598
|
+
size() {
|
|
1599
|
+
return this.vscrollData.sizes[this.id] || 0;
|
|
1600
|
+
},
|
|
1601
|
+
finalActive() {
|
|
1602
|
+
return this.active && this.vscrollData.active;
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
watch: {
|
|
1606
|
+
watchData: "updateWatchData",
|
|
1607
|
+
id(e, t) {
|
|
1608
|
+
if (this.$el.$_vs_id = this.id, this.size || this.onDataUpdate(), this.$_sizeObserved) {
|
|
1609
|
+
const i = this.vscrollData.sizes[t], s = this.vscrollData.sizes[e];
|
|
1610
|
+
i != null && i !== s && this.applySize(i);
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
finalActive(e) {
|
|
1614
|
+
this.size || (e ? this.vscrollParent.$_undefinedMap[this.id] || (this.vscrollParent.$_undefinedSizes++, this.vscrollParent.$_undefinedMap[this.id] = !0) : this.vscrollParent.$_undefinedMap[this.id] && (this.vscrollParent.$_undefinedSizes--, this.vscrollParent.$_undefinedMap[this.id] = !1)), this.vscrollResizeObserver ? e ? this.observeSize() : this.unobserveSize() : e && this.$_pendingVScrollUpdate === this.id && this.updateSize();
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
created() {
|
|
1618
|
+
if (!this.$isServer && (this.$_forceNextVScrollUpdate = null, this.updateWatchData(), !this.vscrollResizeObserver)) {
|
|
1619
|
+
for (const e in this.sizeDependencies)
|
|
1620
|
+
this.$watch(() => this.sizeDependencies[e], this.onDataUpdate);
|
|
1621
|
+
this.vscrollParent.$_events.on("vscroll:update", this.onVscrollUpdate);
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
mounted() {
|
|
1625
|
+
this.finalActive && (this.updateSize(), this.observeSize());
|
|
1626
|
+
},
|
|
1627
|
+
beforeUnmount() {
|
|
1628
|
+
this.vscrollParent.$_events.off("vscroll:update", this.onVscrollUpdate), this.unobserveSize();
|
|
1629
|
+
},
|
|
1630
|
+
methods: {
|
|
1631
|
+
updateSize() {
|
|
1632
|
+
this.finalActive ? this.$_pendingSizeUpdate !== this.id && (this.$_pendingSizeUpdate = this.id, this.$_forceNextVScrollUpdate = null, this.$_pendingVScrollUpdate = null, this.computeSize(this.id)) : this.$_forceNextVScrollUpdate = this.id;
|
|
1633
|
+
},
|
|
1634
|
+
updateWatchData() {
|
|
1635
|
+
this.watchData && !this.vscrollResizeObserver ? this.$_watchData = this.$watch("item", () => {
|
|
1636
|
+
this.onDataUpdate();
|
|
1637
|
+
}, {
|
|
1638
|
+
deep: !0
|
|
1639
|
+
}) : this.$_watchData && (this.$_watchData(), this.$_watchData = null);
|
|
1640
|
+
},
|
|
1641
|
+
onVscrollUpdate({ force: e }) {
|
|
1642
|
+
!this.finalActive && e && (this.$_pendingVScrollUpdate = this.id), (this.$_forceNextVScrollUpdate === this.id || e || !this.size) && this.updateSize();
|
|
1643
|
+
},
|
|
1644
|
+
onDataUpdate() {
|
|
1645
|
+
this.updateSize();
|
|
1646
|
+
},
|
|
1647
|
+
computeSize(e) {
|
|
1648
|
+
this.$nextTick(() => {
|
|
1649
|
+
if (this.id === e) {
|
|
1650
|
+
const t = this.$el.offsetWidth, i = this.$el.offsetHeight;
|
|
1651
|
+
this.applyWidthHeight(t, i);
|
|
1652
|
+
}
|
|
1653
|
+
this.$_pendingSizeUpdate = null;
|
|
1654
|
+
});
|
|
1655
|
+
},
|
|
1656
|
+
applyWidthHeight(e, t) {
|
|
1657
|
+
const i = ~~(this.vscrollParent.direction === "vertical" ? t : e);
|
|
1658
|
+
i && this.size !== i && this.applySize(i);
|
|
1659
|
+
},
|
|
1660
|
+
applySize(e) {
|
|
1661
|
+
this.vscrollParent.$_undefinedMap[this.id] && (this.vscrollParent.$_undefinedSizes--, this.vscrollParent.$_undefinedMap[this.id] = void 0), this.vscrollData.sizes[this.id] = e, this.emitResize && this.$emit("resize", this.id);
|
|
1662
|
+
},
|
|
1663
|
+
observeSize() {
|
|
1664
|
+
this.vscrollResizeObserver && (this.$_sizeObserved || (this.vscrollResizeObserver.observe(this.$el), this.$el.$_vs_id = this.id, this.$el.$_vs_onResize = this.onResize, this.$_sizeObserved = !0));
|
|
1665
|
+
},
|
|
1666
|
+
unobserveSize() {
|
|
1667
|
+
this.vscrollResizeObserver && this.$_sizeObserved && (this.vscrollResizeObserver.unobserve(this.$el), this.$el.$_vs_onResize = void 0, this.$_sizeObserved = !1);
|
|
1668
|
+
},
|
|
1669
|
+
onResize(e, t, i) {
|
|
1670
|
+
this.id === e && this.applyWidthHeight(t, i);
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
render() {
|
|
1674
|
+
return ne(this.tag, this.$slots.default());
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
pt.__file = "src/components/DynamicScrollerItem.vue";
|
|
1678
|
+
const Ws = {
|
|
1679
|
+
key: 0,
|
|
1680
|
+
class: "das-infinite-scroll__empty"
|
|
1681
|
+
}, Ks = {
|
|
1682
|
+
class: "das-infinite-scroll__status is-loading",
|
|
1683
|
+
role: "status",
|
|
1684
|
+
"aria-live": "polite"
|
|
1685
|
+
}, qs = {
|
|
1686
|
+
class: "das-infinite-scroll__status is-error",
|
|
1687
|
+
role: "alert"
|
|
1688
|
+
}, Gs = { class: "das-infinite-scroll__status is-finished" }, Ys = {
|
|
1689
|
+
class: "das-infinite-scroll__status is-loading",
|
|
1690
|
+
role: "status",
|
|
1691
|
+
"aria-live": "polite"
|
|
1692
|
+
}, Qs = {
|
|
1693
|
+
class: "das-infinite-scroll__status is-error",
|
|
1694
|
+
role: "alert"
|
|
1695
|
+
}, Xs = { class: "das-infinite-scroll__status is-finished" }, Js = /* @__PURE__ */ be({
|
|
1696
|
+
name: "DasInfiniteScroll",
|
|
1697
|
+
inheritAttrs: !1,
|
|
1698
|
+
__name: "index",
|
|
1699
|
+
props: {
|
|
1700
|
+
target: {
|
|
1701
|
+
type: [String, Object, Function],
|
|
1702
|
+
default: void 0
|
|
1703
|
+
},
|
|
1704
|
+
load: {
|
|
1705
|
+
type: Function,
|
|
1706
|
+
required: !0
|
|
1707
|
+
},
|
|
1708
|
+
disabled: { type: Boolean, default: !1 },
|
|
1709
|
+
loading: { type: Boolean, default: !1 },
|
|
1710
|
+
finished: { type: Boolean, default: void 0 },
|
|
1711
|
+
error: { type: Boolean, default: !1 },
|
|
1712
|
+
empty: { type: Boolean, default: !1 },
|
|
1713
|
+
loadingText: String,
|
|
1714
|
+
finishedText: String,
|
|
1715
|
+
errorText: String,
|
|
1716
|
+
retryText: String,
|
|
1717
|
+
distance: { type: Number, default: 32 },
|
|
1718
|
+
throttle: { type: Number, default: 100 },
|
|
1719
|
+
immediate: { type: Boolean, default: !0 },
|
|
1720
|
+
maxImmediateLoads: { type: Number, default: 3 },
|
|
1721
|
+
virtual: { type: Boolean, default: !1 },
|
|
1722
|
+
items: { type: Array, default: () => [] },
|
|
1723
|
+
itemKey: { type: String, default: "id" },
|
|
1724
|
+
minItemSize: { type: Number, default: 48 },
|
|
1725
|
+
buffer: { type: Number, default: 200 }
|
|
1726
|
+
},
|
|
1727
|
+
emits: ["error", "retry"],
|
|
1728
|
+
setup(e, { expose: t, emit: i }) {
|
|
1729
|
+
const s = e, n = i, d = X(null), c = X(null), a = X(null), o = X(!1), m = X(!1), T = V(() => s.finished ?? s.disabled), k = V(() => s.error || m.value), R = V(() => s.empty && !s.loading && !o.value && !k.value), B = V(() => s.loadingText ?? te("das-infinite-scroll-loading")), q = V(() => s.finishedText ?? te("das-infinite-scroll-finished")), S = V(() => s.errorText ?? te("das-infinite-scroll-error")), b = V(() => s.retryText ?? te("das-infinite-scroll-retry")), H = V(() => oe(s.minItemSize, 48)), E = V(() => G(s.buffer, 200)), M = V(() => !!Z(s.target));
|
|
1730
|
+
let f = null, D = null, $ = null, I = null, A = null, j = null, v = null, C = null, O = null, l = null, h = null, p = 0, u = !1, N = !1;
|
|
1731
|
+
const G = (r, w) => {
|
|
1732
|
+
const _ = Number(r);
|
|
1733
|
+
return Number.isFinite(_) && _ >= 0 ? _ : w;
|
|
1734
|
+
}, oe = (r, w) => {
|
|
1735
|
+
const _ = Number(r);
|
|
1736
|
+
return Number.isFinite(_) && _ > 0 ? _ : w;
|
|
1737
|
+
}, Z = (r) => typeof r == "function" ? r() || null : typeof r == "string" ? typeof document < "u" ? document.querySelector(r) : null : nt(r) ? r.value || null : typeof HTMLElement < "u" && r instanceof HTMLElement ? r : null, bt = () => {
|
|
1738
|
+
var _;
|
|
1739
|
+
if (typeof window > "u") return null;
|
|
1740
|
+
let r = ((_ = d.value) == null ? void 0 : _.parentElement) || null;
|
|
1741
|
+
for (; r; ) {
|
|
1742
|
+
const Y = window.getComputedStyle(r).overflowY;
|
|
1743
|
+
if (/(auto|scroll|overlay)/.test(Y)) return r;
|
|
1744
|
+
r = r.parentElement;
|
|
1745
|
+
}
|
|
1746
|
+
const w = document.scrollingElement;
|
|
1747
|
+
return w instanceof HTMLElement ? w : null;
|
|
1748
|
+
}, Re = () => {
|
|
1749
|
+
var w;
|
|
1750
|
+
const r = (w = a.value) == null ? void 0 : w.$el;
|
|
1751
|
+
return typeof HTMLElement < "u" && r instanceof HTMLElement ? r : null;
|
|
1752
|
+
}, Ee = (r) => !r && s.virtual && !M.value ? Re() : r ? r.hasAttribute("data-overlayscrollbars-viewport") ? r : r.querySelector("[data-overlayscrollbars-viewport]") || r : bt(), ze = (r = "auto") => N || s.disabled || T.value || s.loading || o.value || R.value || r !== "retry" && k.value, Me = () => !f || f.clientHeight <= 0 ? !1 : f.scrollHeight - f.scrollTop - f.clientHeight <= G(s.distance, 32), gt = () => {
|
|
1753
|
+
C && clearTimeout(C), C = null, h = null;
|
|
1754
|
+
}, Se = async (r = "auto") => {
|
|
1755
|
+
if (ze(r) || !s.immediate && !u && r !== "retry") return !1;
|
|
1756
|
+
const w = Math.max(1, Math.floor(G(s.maxImmediateLoads, 3)));
|
|
1757
|
+
if (p >= w && r !== "retry") return !1;
|
|
1758
|
+
l == null || l.abort();
|
|
1759
|
+
const _ = new AbortController();
|
|
1760
|
+
l = _, r !== "retry" && (p += 1), m.value = !1, o.value = !0;
|
|
1761
|
+
let Y = !1;
|
|
1762
|
+
try {
|
|
1763
|
+
Y = await s.load({ signal: _.signal, reason: r }) !== !1;
|
|
1764
|
+
} catch (ue) {
|
|
1765
|
+
if (_.signal.aborted || N) return !1;
|
|
1766
|
+
m.value = !0, n("error", ue);
|
|
1767
|
+
} finally {
|
|
1768
|
+
l === _ && (l = null), o.value = !1;
|
|
1769
|
+
}
|
|
1770
|
+
return await ye(), Y && !ze() && Me() && ee("auto"), Y;
|
|
1771
|
+
}, zt = (r) => {
|
|
1772
|
+
Me() && Se(r);
|
|
1773
|
+
}, ee = (r = "auto") => {
|
|
1774
|
+
if (!ze(r)) {
|
|
1775
|
+
if (C) {
|
|
1776
|
+
r === "scroll" && (h = r);
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
h = r, C = setTimeout(
|
|
1780
|
+
() => {
|
|
1781
|
+
C = null;
|
|
1782
|
+
const w = h || "auto";
|
|
1783
|
+
h = null, zt(w);
|
|
1784
|
+
},
|
|
1785
|
+
G(s.throttle, 100)
|
|
1786
|
+
);
|
|
1787
|
+
}
|
|
1788
|
+
}, St = () => {
|
|
1789
|
+
if (!s.virtual || !M.value) return;
|
|
1790
|
+
const r = Re();
|
|
1791
|
+
!r || r === f || r.dispatchEvent(new Event("scroll"));
|
|
1792
|
+
}, Ve = () => {
|
|
1793
|
+
u = !0, p = 0, St(), ee("scroll");
|
|
1794
|
+
}, $e = () => {
|
|
1795
|
+
I == null || I.disconnect(), I = null, j == null || j.disconnect(), j = null, f == null || f.removeEventListener("scroll", Ve), f = null, D = null, gt();
|
|
1796
|
+
}, Be = () => {
|
|
1797
|
+
const r = Ee(Z(s.target)), w = c.value;
|
|
1798
|
+
if (!(!r || !w) && !(r === f && w === D)) {
|
|
1799
|
+
if ($e(), f = r, D = w, u = r.scrollTop > 0, r.addEventListener("scroll", Ve, { passive: !0 }), typeof IntersectionObserver > "u") {
|
|
1800
|
+
(s.immediate || u) && ee("auto"), typeof ResizeObserver < "u" && (j = new ResizeObserver(() => ee("auto")), j.observe(r));
|
|
1801
|
+
return;
|
|
1802
|
+
}
|
|
1803
|
+
I = new IntersectionObserver(
|
|
1804
|
+
(_) => {
|
|
1805
|
+
_.some((Y) => Y.isIntersecting) && Se();
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
root: r,
|
|
1809
|
+
rootMargin: `0px 0px ${G(s.distance, 32)}px 0px`,
|
|
1810
|
+
threshold: 0
|
|
1811
|
+
}
|
|
1812
|
+
), I.observe(w);
|
|
1813
|
+
}
|
|
1814
|
+
}, ae = () => {
|
|
1815
|
+
A == null || A.disconnect(), A = null, O && clearTimeout(O), O = null;
|
|
1816
|
+
}, $t = () => {
|
|
1817
|
+
const r = Z(s.target);
|
|
1818
|
+
r !== $ && (ae(), $ = r, !(!r || typeof MutationObserver > "u") && (A = new MutationObserver(() => {
|
|
1819
|
+
Be(), Ee(r) !== r && ae();
|
|
1820
|
+
}), A.observe(r, { childList: !0, subtree: !0 }), O = setTimeout(ae, 1e3)));
|
|
1821
|
+
}, Te = () => {
|
|
1822
|
+
$t(), Be(), (s.immediate || u) && ee("auto");
|
|
1823
|
+
}, je = () => {
|
|
1824
|
+
v && clearTimeout(v), v = setTimeout(() => {
|
|
1825
|
+
v = null, Te();
|
|
1826
|
+
});
|
|
1827
|
+
}, Ne = () => {
|
|
1828
|
+
m.value = !1, n("retry"), Se("retry");
|
|
1829
|
+
};
|
|
1830
|
+
return le(
|
|
1831
|
+
() => [Z(s.target), s.distance, s.virtual, s.empty, c.value],
|
|
1832
|
+
() => {
|
|
1833
|
+
$e(), je();
|
|
1834
|
+
}
|
|
1835
|
+
), le(
|
|
1836
|
+
() => [s.disabled, s.loading, T.value],
|
|
1837
|
+
([r, w, _]) => {
|
|
1838
|
+
!r && !w && !_ && !k.value && (s.immediate || u) && ee("auto");
|
|
1839
|
+
}
|
|
1840
|
+
), le(
|
|
1841
|
+
() => s.error,
|
|
1842
|
+
(r) => {
|
|
1843
|
+
r || (m.value = !1);
|
|
1844
|
+
}
|
|
1845
|
+
), Rt(async () => {
|
|
1846
|
+
await ye(), Te(), je();
|
|
1847
|
+
}), Et(() => {
|
|
1848
|
+
N = !0, $e(), l == null || l.abort(), l = null, ae(), v && clearTimeout(v), v = null;
|
|
1849
|
+
}), t({ refresh: Te, scrollToItem: (r) => {
|
|
1850
|
+
var w, _;
|
|
1851
|
+
(_ = (w = a.value) == null ? void 0 : w.scrollToItem) == null || _.call(w, r);
|
|
1852
|
+
}, scrollToPosition: (r) => {
|
|
1853
|
+
f == null || f.scrollTo({ top: Math.max(0, r) });
|
|
1854
|
+
} }), (r, w) => (y(), P(
|
|
1855
|
+
"div",
|
|
1856
|
+
J({
|
|
1857
|
+
ref_key: "rootRef",
|
|
1858
|
+
ref: d,
|
|
1859
|
+
class: ["das-infinite-scroll", { "is-empty": R.value }]
|
|
1860
|
+
}, r.$attrs),
|
|
1861
|
+
[
|
|
1862
|
+
R.value ? (y(), P("div", Ws, [
|
|
1863
|
+
x(r.$slots, "empty", {}, () => [
|
|
1864
|
+
L(g(ss), { size: "small" })
|
|
1865
|
+
], !0)
|
|
1866
|
+
])) : s.virtual ? (y(), W(g(De), {
|
|
1867
|
+
key: 1,
|
|
1868
|
+
ref_key: "virtualScrollerRef",
|
|
1869
|
+
ref: a,
|
|
1870
|
+
class: "das-infinite-scroll__virtual-scroller",
|
|
1871
|
+
items: s.items,
|
|
1872
|
+
"key-field": s.itemKey,
|
|
1873
|
+
"min-item-size": H.value,
|
|
1874
|
+
buffer: E.value,
|
|
1875
|
+
"page-mode": M.value
|
|
1876
|
+
}, {
|
|
1877
|
+
default: z(({ item: _, index: Y, active: ue }) => [
|
|
1878
|
+
L(g(pt), {
|
|
1879
|
+
class: "das-infinite-scroll__virtual-item",
|
|
1880
|
+
item: _,
|
|
1881
|
+
active: ue,
|
|
1882
|
+
"size-dependencies": [_],
|
|
1883
|
+
"data-index": Y
|
|
1884
|
+
}, {
|
|
1885
|
+
default: z(() => [
|
|
1886
|
+
x(r.$slots, "default", {
|
|
1887
|
+
item: _,
|
|
1888
|
+
index: Y,
|
|
1889
|
+
active: ue
|
|
1890
|
+
}, void 0, !0)
|
|
1891
|
+
]),
|
|
1892
|
+
_: 2
|
|
1893
|
+
/* DYNAMIC */
|
|
1894
|
+
}, 1032, ["item", "active", "size-dependencies", "data-index"])
|
|
1895
|
+
]),
|
|
1896
|
+
after: z(() => [
|
|
1897
|
+
U(
|
|
1898
|
+
"div",
|
|
1899
|
+
{
|
|
1900
|
+
ref_key: "sentinelRef",
|
|
1901
|
+
ref: c,
|
|
1902
|
+
class: "das-infinite-scroll__sentinel"
|
|
1903
|
+
},
|
|
1904
|
+
[
|
|
1905
|
+
s.loading || o.value ? x(r.$slots, "loading", { key: 0 }, () => [
|
|
1906
|
+
U("div", Ks, [
|
|
1907
|
+
L(g(Ze), {
|
|
1908
|
+
type: "load",
|
|
1909
|
+
"custom-size": "16",
|
|
1910
|
+
full: !1
|
|
1911
|
+
}),
|
|
1912
|
+
U(
|
|
1913
|
+
"span",
|
|
1914
|
+
null,
|
|
1915
|
+
K(B.value),
|
|
1916
|
+
1
|
|
1917
|
+
/* TEXT */
|
|
1918
|
+
)
|
|
1919
|
+
])
|
|
1920
|
+
], !0) : k.value ? x(r.$slots, "error", { key: 1 }, () => [
|
|
1921
|
+
U("div", qs, [
|
|
1922
|
+
U(
|
|
1923
|
+
"span",
|
|
1924
|
+
null,
|
|
1925
|
+
K(S.value),
|
|
1926
|
+
1
|
|
1927
|
+
/* TEXT */
|
|
1928
|
+
),
|
|
1929
|
+
L(g(Je), {
|
|
1930
|
+
"btn-type": "primary-text",
|
|
1931
|
+
size: "small",
|
|
1932
|
+
onClick: Ne
|
|
1933
|
+
}, {
|
|
1934
|
+
default: z(() => [
|
|
1935
|
+
re(
|
|
1936
|
+
K(b.value),
|
|
1937
|
+
1
|
|
1938
|
+
/* TEXT */
|
|
1939
|
+
)
|
|
1940
|
+
]),
|
|
1941
|
+
_: 1
|
|
1942
|
+
/* STABLE */
|
|
1943
|
+
})
|
|
1944
|
+
])
|
|
1945
|
+
], !0) : T.value ? x(r.$slots, "finished", { key: 2 }, () => [
|
|
1946
|
+
U(
|
|
1947
|
+
"div",
|
|
1948
|
+
Gs,
|
|
1949
|
+
K(q.value),
|
|
1950
|
+
1
|
|
1951
|
+
/* TEXT */
|
|
1952
|
+
)
|
|
1953
|
+
], !0) : F("v-if", !0)
|
|
1954
|
+
],
|
|
1955
|
+
512
|
|
1956
|
+
/* NEED_PATCH */
|
|
1957
|
+
)
|
|
1958
|
+
]),
|
|
1959
|
+
_: 3
|
|
1960
|
+
/* FORWARDED */
|
|
1961
|
+
}, 8, ["items", "key-field", "min-item-size", "buffer", "page-mode"])) : (y(), P(
|
|
1962
|
+
Q,
|
|
1963
|
+
{ key: 2 },
|
|
1964
|
+
[
|
|
1965
|
+
x(r.$slots, "default", {}, void 0, !0),
|
|
1966
|
+
U(
|
|
1967
|
+
"div",
|
|
1968
|
+
{
|
|
1969
|
+
ref_key: "sentinelRef",
|
|
1970
|
+
ref: c,
|
|
1971
|
+
class: "das-infinite-scroll__sentinel"
|
|
1972
|
+
},
|
|
1973
|
+
[
|
|
1974
|
+
s.loading || o.value ? x(r.$slots, "loading", { key: 0 }, () => [
|
|
1975
|
+
U("div", Ys, [
|
|
1976
|
+
L(g(Ze), {
|
|
1977
|
+
type: "load",
|
|
1978
|
+
"custom-size": "16",
|
|
1979
|
+
full: !1
|
|
1980
|
+
}),
|
|
1981
|
+
U(
|
|
1982
|
+
"span",
|
|
1983
|
+
null,
|
|
1984
|
+
K(B.value),
|
|
1985
|
+
1
|
|
1986
|
+
/* TEXT */
|
|
1987
|
+
)
|
|
1988
|
+
])
|
|
1989
|
+
], !0) : k.value ? x(r.$slots, "error", { key: 1 }, () => [
|
|
1990
|
+
U("div", Qs, [
|
|
1991
|
+
U(
|
|
1992
|
+
"span",
|
|
1993
|
+
null,
|
|
1994
|
+
K(S.value),
|
|
1995
|
+
1
|
|
1996
|
+
/* TEXT */
|
|
1997
|
+
),
|
|
1998
|
+
L(g(Je), {
|
|
1999
|
+
"btn-type": "primary-text",
|
|
2000
|
+
size: "small",
|
|
2001
|
+
onClick: Ne
|
|
2002
|
+
}, {
|
|
2003
|
+
default: z(() => [
|
|
2004
|
+
re(
|
|
2005
|
+
K(b.value),
|
|
2006
|
+
1
|
|
2007
|
+
/* TEXT */
|
|
2008
|
+
)
|
|
2009
|
+
]),
|
|
2010
|
+
_: 1
|
|
2011
|
+
/* STABLE */
|
|
2012
|
+
})
|
|
2013
|
+
])
|
|
2014
|
+
], !0) : T.value ? x(r.$slots, "finished", { key: 2 }, () => [
|
|
2015
|
+
U(
|
|
2016
|
+
"div",
|
|
2017
|
+
Xs,
|
|
2018
|
+
K(q.value),
|
|
2019
|
+
1
|
|
2020
|
+
/* TEXT */
|
|
2021
|
+
)
|
|
2022
|
+
], !0) : F("v-if", !0)
|
|
2023
|
+
],
|
|
2024
|
+
512
|
|
2025
|
+
/* NEED_PATCH */
|
|
2026
|
+
)
|
|
2027
|
+
],
|
|
2028
|
+
64
|
|
2029
|
+
/* STABLE_FRAGMENT */
|
|
2030
|
+
))
|
|
2031
|
+
],
|
|
2032
|
+
16
|
|
2033
|
+
/* FULL_PROPS */
|
|
2034
|
+
));
|
|
2035
|
+
}
|
|
2036
|
+
}), Zs = /* @__PURE__ */ ie(Js, [["__scopeId", "data-v-0a86c693"]]), en = {
|
|
2037
|
+
"das-infinite-scroll-loading": {
|
|
2038
|
+
"zh-CN": "正在加载...",
|
|
2039
|
+
en: "Loading...",
|
|
2040
|
+
"zh-MO": "正在加載...",
|
|
2041
|
+
_appCode: "framework"
|
|
2042
|
+
},
|
|
2043
|
+
"das-infinite-scroll-finished": {
|
|
2044
|
+
"zh-CN": "没有更多数据了",
|
|
2045
|
+
en: "No more data",
|
|
2046
|
+
"zh-MO": "沒有更多數據了",
|
|
2047
|
+
_appCode: "framework"
|
|
2048
|
+
},
|
|
2049
|
+
"das-infinite-scroll-error": {
|
|
2050
|
+
"zh-CN": "加载失败,请重试",
|
|
2051
|
+
en: "Load failed, please retry",
|
|
2052
|
+
"zh-MO": "加載失敗,請重試",
|
|
2053
|
+
_appCode: "framework"
|
|
2054
|
+
},
|
|
2055
|
+
"das-infinite-scroll-retry": {
|
|
2056
|
+
"zh-CN": "重试",
|
|
2057
|
+
en: "Retry",
|
|
2058
|
+
"zh-MO": "重試",
|
|
2059
|
+
_appCode: "framework"
|
|
2060
|
+
}
|
|
2061
|
+
};
|
|
2062
|
+
Pe(en);
|
|
2063
|
+
const bn = pe(Zs);
|
|
2064
|
+
export {
|
|
2065
|
+
bn as DasInfiniteScroll,
|
|
2066
|
+
bn as default
|
|
2067
|
+
};
|