mx-ui-template 0.2.0 → 0.2.3
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/README.md +10 -1
- package/dist/iconfont.ttf +0 -0
- package/dist/mx-ui-template.css +1 -1
- package/dist/mx-ui-template.js +1307 -66
- package/dist/mx-ui-template.umd.cjs +1 -1
- package/dist/mx-ui-template_utils.js +25 -25
- package/dist/mx-ui-template_utils.umd.cjs +1 -1
- package/package.json +3 -3
package/dist/mx-ui-template.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NButton as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as S, createBlock as fe, openBlock as z, unref as N, normalizeStyle as ve, normalizeClass as _, withCtx as J, renderSlot as L, computed as j, createSlots as lt, onUnmounted as ze, onDeactivated as ee, isRef as at, watch as I, onMounted as te, nextTick as me, onActivated as he, ref as p, reactive as ge, getCurrentInstance as ye, createVNode as h, onBeforeUnmount as Ae, provide as Fe, watchEffect as st, inject as ut, mergeProps as R, Transition as Ve, Teleport as Le, withDirectives as Ne, vShow as Re, Fragment as ct, createApp as it, createElementBlock as X, createCommentVNode as ue, createElementVNode as l, toDisplayString as u } from "vue";
|
|
2
|
+
import { NButton as rt, NInput as dt, NCard as ft } from "naive-ui";
|
|
3
|
+
const vt = /* @__PURE__ */ S({
|
|
4
4
|
__name: "Button",
|
|
5
5
|
props: {
|
|
6
6
|
type: {},
|
|
@@ -16,14 +16,14 @@ const I = /* @__PURE__ */ u({
|
|
|
16
16
|
disabled: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
emits: ["click"],
|
|
19
|
-
setup(e, { emit:
|
|
20
|
-
const
|
|
21
|
-
!
|
|
19
|
+
setup(e, { emit: n }) {
|
|
20
|
+
const o = e, t = n, c = (s) => {
|
|
21
|
+
!o.disabled && o.onClick && o.onClick(s), t("click", s);
|
|
22
22
|
};
|
|
23
|
-
return (
|
|
23
|
+
return (s, r) => (z(), fe(N(rt), {
|
|
24
24
|
id: e.id,
|
|
25
|
-
class:
|
|
26
|
-
style:
|
|
25
|
+
class: _(e.class),
|
|
26
|
+
style: ve(e.style),
|
|
27
27
|
type: e.type,
|
|
28
28
|
size: e.size,
|
|
29
29
|
circle: e.circle,
|
|
@@ -31,20 +31,20 @@ const I = /* @__PURE__ */ u({
|
|
|
31
31
|
dashed: e.dashed,
|
|
32
32
|
loading: e.loading,
|
|
33
33
|
disabled: e.disabled,
|
|
34
|
-
onClick:
|
|
34
|
+
onClick: c
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: J(() => [
|
|
37
|
+
L(s.$slots, "default", {}, void 0, !0)
|
|
38
38
|
]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 8, ["id", "class", "style", "type", "size", "circle", "ghost", "dashed", "loading", "disabled"]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
43
|
-
const
|
|
44
|
-
for (const [
|
|
45
|
-
t
|
|
46
|
-
return
|
|
47
|
-
},
|
|
42
|
+
}), ne = (e, n) => {
|
|
43
|
+
const o = e.__vccOpts || e;
|
|
44
|
+
for (const [t, c] of n)
|
|
45
|
+
o[t] = c;
|
|
46
|
+
return o;
|
|
47
|
+
}, mt = /* @__PURE__ */ ne(vt, [["__scopeId", "data-v-fdf1cb77"]]), ht = /* @__PURE__ */ S({
|
|
48
48
|
__name: "Input",
|
|
49
49
|
props: {
|
|
50
50
|
modelValue: {},
|
|
@@ -65,29 +65,29 @@ const I = /* @__PURE__ */ u({
|
|
|
65
65
|
disabled: { type: Boolean }
|
|
66
66
|
},
|
|
67
67
|
emits: ["update:modelValue", "input", "blur", "focus"],
|
|
68
|
-
setup(e, { emit:
|
|
69
|
-
const
|
|
68
|
+
setup(e, { emit: n }) {
|
|
69
|
+
const o = e, t = n, c = j({
|
|
70
70
|
get() {
|
|
71
|
-
return
|
|
71
|
+
return o.modelValue?.toString() || "";
|
|
72
72
|
},
|
|
73
|
-
set(
|
|
74
|
-
|
|
73
|
+
set(i) {
|
|
74
|
+
t("update:modelValue", typeof o.modelValue == "number" && i !== "" ? Number(i) : i);
|
|
75
75
|
}
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
return (
|
|
76
|
+
}), s = (i) => {
|
|
77
|
+
t("update:modelValue", i);
|
|
78
|
+
}, r = (i) => {
|
|
79
|
+
t("blur", i);
|
|
80
|
+
}, a = (i) => {
|
|
81
|
+
t("focus", i);
|
|
82
|
+
};
|
|
83
|
+
return (i, d) => (z(), fe(N(dt), {
|
|
84
84
|
id: e.id,
|
|
85
|
-
class:
|
|
86
|
-
style:
|
|
87
|
-
value:
|
|
85
|
+
class: _(e.class),
|
|
86
|
+
style: ve(e.style),
|
|
87
|
+
value: c.value,
|
|
88
88
|
"onUpdate:value": [
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
d[0] || (d[0] = (g) => c.value = g),
|
|
90
|
+
s
|
|
91
91
|
],
|
|
92
92
|
type: e.type,
|
|
93
93
|
size: e.size,
|
|
@@ -98,11 +98,11 @@ const I = /* @__PURE__ */ u({
|
|
|
98
98
|
"prefix-icon": e.prefixIcon,
|
|
99
99
|
"suffix-icon": e.suffixIcon,
|
|
100
100
|
disabled: e.disabled,
|
|
101
|
-
onBlur:
|
|
102
|
-
onFocus:
|
|
101
|
+
onBlur: r,
|
|
102
|
+
onFocus: a
|
|
103
103
|
}, null, 8, ["id", "class", "style", "value", "type", "size", "placeholder", "readonly", "maxlength", "show-word-limit", "prefix-icon", "suffix-icon", "disabled"]));
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), gt = /* @__PURE__ */ ne(ht, [["__scopeId", "data-v-be9f5c5c"]]), yt = /* @__PURE__ */ S({
|
|
106
106
|
__name: "Card",
|
|
107
107
|
props: {
|
|
108
108
|
title: {},
|
|
@@ -116,52 +116,1293 @@ const I = /* @__PURE__ */ u({
|
|
|
116
116
|
disabled: { type: Boolean }
|
|
117
117
|
},
|
|
118
118
|
emits: ["close"],
|
|
119
|
-
setup(e, { emit:
|
|
120
|
-
const
|
|
121
|
-
|
|
119
|
+
setup(e, { emit: n }) {
|
|
120
|
+
const o = e, t = n, c = () => {
|
|
121
|
+
o.onClose && o.onClose(), t("close");
|
|
122
122
|
};
|
|
123
|
-
return (
|
|
123
|
+
return (s, r) => (z(), fe(N(ft), {
|
|
124
124
|
id: e.id,
|
|
125
|
-
class:
|
|
126
|
-
style:
|
|
125
|
+
class: _(e.class),
|
|
126
|
+
style: ve(e.style),
|
|
127
127
|
title: e.title,
|
|
128
128
|
bordered: e.bordered,
|
|
129
129
|
size: e.size,
|
|
130
130
|
closable: e.closable,
|
|
131
|
-
onClose:
|
|
132
|
-
},
|
|
133
|
-
default:
|
|
134
|
-
|
|
131
|
+
onClose: c
|
|
132
|
+
}, lt({
|
|
133
|
+
default: J(() => [
|
|
134
|
+
L(s.$slots, "default", {}, void 0, !0)
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, [
|
|
138
|
-
|
|
138
|
+
s.$slots["header-extra"] ? {
|
|
139
139
|
name: "header-extra",
|
|
140
|
-
fn:
|
|
141
|
-
|
|
140
|
+
fn: J(() => [
|
|
141
|
+
L(s.$slots, "header-extra", {}, void 0, !0)
|
|
142
142
|
]),
|
|
143
143
|
key: "0"
|
|
144
144
|
} : void 0
|
|
145
145
|
]), 1032, ["id", "class", "style", "title", "bordered", "size", "closable"]));
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), pt = /* @__PURE__ */ ne(yt, [["__scopeId", "data-v-fdc12dd9"]]);
|
|
148
|
+
function bt() {
|
|
149
|
+
}
|
|
150
|
+
const T = Object.assign, pe = typeof window < "u", oe = (e) => e !== null && typeof e == "object", $ = (e) => e != null, re = (e) => typeof e == "function", Et = (e) => oe(e) && re(e.then) && re(e.catch), je = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), Ct = () => pe ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
|
|
151
|
+
function xe(e, n) {
|
|
152
|
+
const o = n.split(".");
|
|
153
|
+
let t = e;
|
|
154
|
+
return o.forEach((c) => {
|
|
155
|
+
var s;
|
|
156
|
+
t = oe(t) && (s = t[c]) != null ? s : "";
|
|
157
|
+
}), t;
|
|
158
|
+
}
|
|
159
|
+
function wt(e, n, o) {
|
|
160
|
+
return n.reduce(
|
|
161
|
+
(t, c) => (t[c] = e[c], t),
|
|
162
|
+
{}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
const Q = null, C = [Number, String], A = {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: !0
|
|
168
|
+
}, xt = (e) => ({
|
|
169
|
+
type: Number,
|
|
170
|
+
default: e
|
|
171
|
+
}), ce = (e) => ({
|
|
172
|
+
type: C,
|
|
173
|
+
default: e
|
|
174
|
+
}), w = (e) => ({
|
|
175
|
+
type: String,
|
|
176
|
+
default: e
|
|
177
|
+
});
|
|
178
|
+
var be = typeof window < "u";
|
|
179
|
+
function He(e) {
|
|
180
|
+
let n;
|
|
181
|
+
te(() => {
|
|
182
|
+
e(), me(() => {
|
|
183
|
+
n = !0;
|
|
184
|
+
});
|
|
185
|
+
}), he(() => {
|
|
186
|
+
n && e();
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function Ee(e, n, o = {}) {
|
|
190
|
+
if (!be)
|
|
191
|
+
return;
|
|
192
|
+
const { target: t = window, passive: c = !1, capture: s = !1 } = o;
|
|
193
|
+
let r = !1, a;
|
|
194
|
+
const i = (m) => {
|
|
195
|
+
if (r)
|
|
196
|
+
return;
|
|
197
|
+
const v = N(m);
|
|
198
|
+
v && !a && (v.addEventListener(e, n, {
|
|
199
|
+
capture: s,
|
|
200
|
+
passive: c
|
|
201
|
+
}), a = !0);
|
|
202
|
+
}, d = (m) => {
|
|
203
|
+
if (r)
|
|
204
|
+
return;
|
|
205
|
+
const v = N(m);
|
|
206
|
+
v && a && (v.removeEventListener(e, n, s), a = !1);
|
|
207
|
+
};
|
|
208
|
+
ze(() => d(t)), ee(() => d(t)), He(() => i(t));
|
|
209
|
+
let g;
|
|
210
|
+
return at(t) && (g = I(t, (m, v) => {
|
|
211
|
+
d(v), i(m);
|
|
212
|
+
})), () => {
|
|
213
|
+
g?.(), d(t), r = !0;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
var Z, ie;
|
|
217
|
+
function Bt() {
|
|
218
|
+
if (!Z && (Z = p(0), ie = p(0), be)) {
|
|
219
|
+
const e = () => {
|
|
220
|
+
Z.value = window.innerWidth, ie.value = window.innerHeight;
|
|
221
|
+
};
|
|
222
|
+
e(), window.addEventListener("resize", e, { passive: !0 }), window.addEventListener("orientationchange", e, { passive: !0 });
|
|
223
|
+
}
|
|
224
|
+
return { width: Z, height: ie };
|
|
225
|
+
}
|
|
226
|
+
var St = /scroll|auto|overlay/i, Me = be ? window : void 0;
|
|
227
|
+
function kt(e) {
|
|
228
|
+
return e.tagName !== "HTML" && e.tagName !== "BODY" && e.nodeType === 1;
|
|
229
|
+
}
|
|
230
|
+
function Ye(e, n = Me) {
|
|
231
|
+
let o = e;
|
|
232
|
+
for (; o && o !== n && kt(o); ) {
|
|
233
|
+
const { overflowY: t } = window.getComputedStyle(o);
|
|
234
|
+
if (St.test(t))
|
|
235
|
+
return o;
|
|
236
|
+
o = o.parentNode;
|
|
237
|
+
}
|
|
238
|
+
return n;
|
|
239
|
+
}
|
|
240
|
+
function Ot(e, n = Me) {
|
|
241
|
+
const o = p();
|
|
242
|
+
return te(() => {
|
|
243
|
+
e.value && (o.value = Ye(e.value, n));
|
|
244
|
+
}), o;
|
|
245
|
+
}
|
|
246
|
+
function It(e) {
|
|
247
|
+
const n = "scrollTop" in e ? e.scrollTop : e.pageYOffset;
|
|
248
|
+
return Math.max(n, 0);
|
|
249
|
+
}
|
|
250
|
+
Ct();
|
|
251
|
+
const Tt = (e) => e.stopPropagation();
|
|
252
|
+
function Ce(e, n) {
|
|
253
|
+
(typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(), n && Tt(e);
|
|
254
|
+
}
|
|
255
|
+
Bt();
|
|
256
|
+
function O(e) {
|
|
257
|
+
if ($(e))
|
|
258
|
+
return je(e) ? `${e}px` : String(e);
|
|
259
|
+
}
|
|
260
|
+
function Pt(e) {
|
|
261
|
+
if ($(e)) {
|
|
262
|
+
if (Array.isArray(e))
|
|
263
|
+
return {
|
|
264
|
+
width: O(e[0]),
|
|
265
|
+
height: O(e[1])
|
|
266
|
+
};
|
|
267
|
+
const n = O(e);
|
|
268
|
+
return {
|
|
269
|
+
width: n,
|
|
270
|
+
height: n
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function $t(e) {
|
|
275
|
+
const n = {};
|
|
276
|
+
return e !== void 0 && (n.zIndex = +e), n;
|
|
277
|
+
}
|
|
278
|
+
const Dt = /-(\w)/g, Ue = (e) => e.replace(Dt, (n, o) => o.toUpperCase()), zt = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), { hasOwnProperty: At } = Object.prototype;
|
|
279
|
+
function Ft(e, n, o) {
|
|
280
|
+
const t = n[o];
|
|
281
|
+
$(t) && (!At.call(e, o) || !oe(t) ? e[o] = t : e[o] = _e(Object(e[o]), t));
|
|
282
|
+
}
|
|
283
|
+
function _e(e, n) {
|
|
284
|
+
return Object.keys(n).forEach((o) => {
|
|
285
|
+
Ft(e, n, o);
|
|
286
|
+
}), e;
|
|
287
|
+
}
|
|
288
|
+
var Vt = {
|
|
289
|
+
name: "姓名",
|
|
290
|
+
tel: "电话",
|
|
291
|
+
save: "保存",
|
|
292
|
+
clear: "清空",
|
|
293
|
+
cancel: "取消",
|
|
294
|
+
confirm: "确认",
|
|
295
|
+
delete: "删除",
|
|
296
|
+
loading: "加载中...",
|
|
297
|
+
noCoupon: "暂无优惠券",
|
|
298
|
+
nameEmpty: "请填写姓名",
|
|
299
|
+
addContact: "添加联系人",
|
|
300
|
+
telInvalid: "请填写正确的电话",
|
|
301
|
+
vanCalendar: {
|
|
302
|
+
end: "结束",
|
|
303
|
+
start: "开始",
|
|
304
|
+
title: "日期选择",
|
|
305
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
306
|
+
monthTitle: (e, n) => `${e}年${n}月`,
|
|
307
|
+
rangePrompt: (e) => `最多选择 ${e} 天`
|
|
308
|
+
},
|
|
309
|
+
vanCascader: {
|
|
310
|
+
select: "请选择"
|
|
311
|
+
},
|
|
312
|
+
vanPagination: {
|
|
313
|
+
prev: "上一页",
|
|
314
|
+
next: "下一页"
|
|
315
|
+
},
|
|
316
|
+
vanPullRefresh: {
|
|
317
|
+
pulling: "下拉即可刷新...",
|
|
318
|
+
loosing: "释放即可刷新..."
|
|
319
|
+
},
|
|
320
|
+
vanSubmitBar: {
|
|
321
|
+
label: "合计:"
|
|
322
|
+
},
|
|
323
|
+
vanCoupon: {
|
|
324
|
+
unlimited: "无门槛",
|
|
325
|
+
discount: (e) => `${e}折`,
|
|
326
|
+
condition: (e) => `满${e}元可用`
|
|
327
|
+
},
|
|
328
|
+
vanCouponCell: {
|
|
329
|
+
title: "优惠券",
|
|
330
|
+
count: (e) => `${e}张可用`
|
|
331
|
+
},
|
|
332
|
+
vanCouponList: {
|
|
333
|
+
exchange: "兑换",
|
|
334
|
+
close: "不使用",
|
|
335
|
+
enable: "可用",
|
|
336
|
+
disabled: "不可用",
|
|
337
|
+
placeholder: "输入优惠码"
|
|
338
|
+
},
|
|
339
|
+
vanAddressEdit: {
|
|
340
|
+
area: "地区",
|
|
341
|
+
areaEmpty: "请选择地区",
|
|
342
|
+
addressEmpty: "请填写详细地址",
|
|
343
|
+
addressDetail: "详细地址",
|
|
344
|
+
defaultAddress: "设为默认收货地址"
|
|
345
|
+
},
|
|
346
|
+
vanAddressList: {
|
|
347
|
+
add: "新增地址"
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
const Be = p("zh-CN"), Se = ge({
|
|
351
|
+
"zh-CN": Vt
|
|
352
|
+
}), Lt = {
|
|
353
|
+
messages() {
|
|
354
|
+
return Se[Be.value];
|
|
355
|
+
},
|
|
356
|
+
use(e, n) {
|
|
357
|
+
Be.value = e, this.add({ [e]: n });
|
|
358
|
+
},
|
|
359
|
+
add(e = {}) {
|
|
360
|
+
_e(Se, e);
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
var Nt = Lt;
|
|
364
|
+
function Rt(e) {
|
|
365
|
+
const n = Ue(e) + ".";
|
|
366
|
+
return (o, ...t) => {
|
|
367
|
+
const c = Nt.messages(), s = xe(c, n + o) || xe(c, o);
|
|
368
|
+
return re(s) ? s(...t) : s;
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function de(e, n) {
|
|
372
|
+
return n ? typeof n == "string" ? ` ${e}--${n}` : Array.isArray(n) ? n.reduce(
|
|
373
|
+
(o, t) => o + de(e, t),
|
|
374
|
+
""
|
|
375
|
+
) : Object.keys(n).reduce(
|
|
376
|
+
(o, t) => o + (n[t] ? de(e, t) : ""),
|
|
377
|
+
""
|
|
378
|
+
) : "";
|
|
379
|
+
}
|
|
380
|
+
function jt(e) {
|
|
381
|
+
return (n, o) => (n && typeof n != "string" && (o = n, n = ""), n = n ? `${e}__${n}` : e, `${n}${de(n, o)}`);
|
|
382
|
+
}
|
|
383
|
+
function D(e) {
|
|
384
|
+
const n = `van-${e}`;
|
|
385
|
+
return [
|
|
386
|
+
n,
|
|
387
|
+
jt(n),
|
|
388
|
+
Rt(n)
|
|
389
|
+
];
|
|
390
|
+
}
|
|
391
|
+
const Ht = "van-haptics-feedback", ke = 5;
|
|
392
|
+
function Mt(e, {
|
|
393
|
+
args: n = [],
|
|
394
|
+
done: o,
|
|
395
|
+
canceled: t,
|
|
396
|
+
error: c
|
|
397
|
+
}) {
|
|
398
|
+
if (e) {
|
|
399
|
+
const s = e.apply(null, n);
|
|
400
|
+
Et(s) ? s.then((r) => {
|
|
401
|
+
r ? o() : t && t();
|
|
402
|
+
}).catch(c || bt) : s ? o() : t && t();
|
|
403
|
+
} else
|
|
404
|
+
o();
|
|
405
|
+
}
|
|
406
|
+
function F(e) {
|
|
407
|
+
return e.install = (n) => {
|
|
408
|
+
const { name: o } = e;
|
|
409
|
+
o && (n.component(o, e), n.component(Ue(`-${o}`), e));
|
|
410
|
+
}, e;
|
|
411
|
+
}
|
|
412
|
+
const Yt = Symbol();
|
|
413
|
+
function We(e) {
|
|
414
|
+
const n = ye();
|
|
415
|
+
n && T(n.proxy, e);
|
|
416
|
+
}
|
|
417
|
+
const [Ut, Oe] = D("badge"), _t = {
|
|
418
|
+
dot: Boolean,
|
|
419
|
+
max: C,
|
|
420
|
+
tag: w("div"),
|
|
421
|
+
color: String,
|
|
422
|
+
offset: Array,
|
|
423
|
+
content: C,
|
|
424
|
+
showZero: A,
|
|
425
|
+
position: w("top-right")
|
|
426
|
+
};
|
|
427
|
+
var Wt = S({
|
|
428
|
+
name: Ut,
|
|
429
|
+
props: _t,
|
|
430
|
+
setup(e, {
|
|
431
|
+
slots: n
|
|
432
|
+
}) {
|
|
433
|
+
const o = () => {
|
|
434
|
+
if (n.content)
|
|
435
|
+
return !0;
|
|
436
|
+
const {
|
|
437
|
+
content: a,
|
|
438
|
+
showZero: i
|
|
439
|
+
} = e;
|
|
440
|
+
return $(a) && a !== "" && (i || a !== 0 && a !== "0");
|
|
441
|
+
}, t = () => {
|
|
442
|
+
const {
|
|
443
|
+
dot: a,
|
|
444
|
+
max: i,
|
|
445
|
+
content: d
|
|
446
|
+
} = e;
|
|
447
|
+
if (!a && o())
|
|
448
|
+
return n.content ? n.content() : $(i) && je(d) && +d > +i ? `${i}+` : d;
|
|
449
|
+
}, c = (a) => a.startsWith("-") ? a.replace("-", "") : `-${a}`, s = j(() => {
|
|
450
|
+
const a = {
|
|
451
|
+
background: e.color
|
|
452
|
+
};
|
|
453
|
+
if (e.offset) {
|
|
454
|
+
const [i, d] = e.offset, {
|
|
455
|
+
position: g
|
|
456
|
+
} = e, [m, v] = g.split("-");
|
|
457
|
+
n.default ? (typeof d == "number" ? a[m] = O(m === "top" ? d : -d) : a[m] = m === "top" ? O(d) : c(d), typeof i == "number" ? a[v] = O(v === "left" ? i : -i) : a[v] = v === "left" ? O(i) : c(i)) : (a.marginTop = O(d), a.marginLeft = O(i));
|
|
458
|
+
}
|
|
459
|
+
return a;
|
|
460
|
+
}), r = () => {
|
|
461
|
+
if (o() || e.dot)
|
|
462
|
+
return h("div", {
|
|
463
|
+
class: Oe([e.position, {
|
|
464
|
+
dot: e.dot,
|
|
465
|
+
fixed: !!n.default
|
|
466
|
+
}]),
|
|
467
|
+
style: s.value
|
|
468
|
+
}, [t()]);
|
|
469
|
+
};
|
|
470
|
+
return () => {
|
|
471
|
+
if (n.default) {
|
|
472
|
+
const {
|
|
473
|
+
tag: a
|
|
474
|
+
} = e;
|
|
475
|
+
return h(a, {
|
|
476
|
+
class: Oe("wrapper")
|
|
477
|
+
}, {
|
|
478
|
+
default: () => [n.default(), r()]
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
return r();
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
const Kt = F(Wt);
|
|
486
|
+
let Ke = 2e3;
|
|
487
|
+
const Xt = () => ++Ke, Zt = (e) => {
|
|
488
|
+
Ke = e;
|
|
489
|
+
}, [Xe, Gt] = D("config-provider"), Ze = Symbol(Xe), qt = {
|
|
490
|
+
tag: w("div"),
|
|
491
|
+
theme: w("light"),
|
|
492
|
+
zIndex: Number,
|
|
493
|
+
themeVars: Object,
|
|
494
|
+
themeVarsDark: Object,
|
|
495
|
+
themeVarsLight: Object,
|
|
496
|
+
themeVarsScope: w("local"),
|
|
497
|
+
iconPrefix: String
|
|
498
|
+
};
|
|
499
|
+
function Jt(e) {
|
|
500
|
+
return e.replace(/([a-zA-Z])(\d)/g, "$1-$2");
|
|
501
|
+
}
|
|
502
|
+
function Qt(e) {
|
|
503
|
+
const n = {};
|
|
504
|
+
return Object.keys(e).forEach((o) => {
|
|
505
|
+
const t = Jt(zt(o));
|
|
506
|
+
n[`--van-${t}`] = e[o];
|
|
507
|
+
}), n;
|
|
508
|
+
}
|
|
509
|
+
function G(e = {}, n = {}) {
|
|
510
|
+
Object.keys(e).forEach((o) => {
|
|
511
|
+
e[o] !== n[o] && document.documentElement.style.setProperty(o, e[o]);
|
|
512
|
+
}), Object.keys(n).forEach((o) => {
|
|
513
|
+
e[o] || document.documentElement.style.removeProperty(o);
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
S({
|
|
517
|
+
name: Xe,
|
|
518
|
+
props: qt,
|
|
519
|
+
setup(e, {
|
|
520
|
+
slots: n
|
|
521
|
+
}) {
|
|
522
|
+
const o = j(() => Qt(T({}, e.themeVars, e.theme === "dark" ? e.themeVarsDark : e.themeVarsLight)));
|
|
523
|
+
if (pe) {
|
|
524
|
+
const t = () => {
|
|
525
|
+
document.documentElement.classList.add(`van-theme-${e.theme}`);
|
|
526
|
+
}, c = (s = e.theme) => {
|
|
527
|
+
document.documentElement.classList.remove(`van-theme-${s}`);
|
|
528
|
+
};
|
|
529
|
+
I(() => e.theme, (s, r) => {
|
|
530
|
+
r && c(r), t();
|
|
531
|
+
}, {
|
|
532
|
+
immediate: !0
|
|
533
|
+
}), he(t), ee(c), Ae(c), I(o, (s, r) => {
|
|
534
|
+
e.themeVarsScope === "global" && G(s, r);
|
|
535
|
+
}), I(() => e.themeVarsScope, (s, r) => {
|
|
536
|
+
r === "global" && G({}, o.value), s === "global" && G(o.value, {});
|
|
537
|
+
}), e.themeVarsScope === "global" && G(o.value, {});
|
|
538
|
+
}
|
|
539
|
+
return Fe(Ze, e), st(() => {
|
|
540
|
+
e.zIndex !== void 0 && Zt(e.zIndex);
|
|
541
|
+
}), () => h(e.tag, {
|
|
542
|
+
class: Gt(),
|
|
543
|
+
style: e.themeVarsScope === "local" ? o.value : void 0
|
|
544
|
+
}, {
|
|
545
|
+
default: () => {
|
|
546
|
+
var t;
|
|
547
|
+
return [(t = n.default) == null ? void 0 : t.call(n)];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
const [en, Ie] = D("icon"), tn = (e) => e?.includes("/"), nn = {
|
|
553
|
+
dot: Boolean,
|
|
554
|
+
tag: w("i"),
|
|
555
|
+
name: String,
|
|
556
|
+
size: C,
|
|
557
|
+
badge: C,
|
|
558
|
+
color: String,
|
|
559
|
+
badgeProps: Object,
|
|
560
|
+
classPrefix: String
|
|
561
|
+
};
|
|
562
|
+
var on = S({
|
|
563
|
+
name: en,
|
|
564
|
+
props: nn,
|
|
565
|
+
setup(e, {
|
|
566
|
+
slots: n
|
|
567
|
+
}) {
|
|
568
|
+
const o = ut(Ze, null), t = j(() => e.classPrefix || o?.iconPrefix || Ie());
|
|
569
|
+
return () => {
|
|
570
|
+
const {
|
|
571
|
+
tag: c,
|
|
572
|
+
dot: s,
|
|
573
|
+
name: r,
|
|
574
|
+
size: a,
|
|
575
|
+
badge: i,
|
|
576
|
+
color: d
|
|
577
|
+
} = e, g = tn(r);
|
|
578
|
+
return h(Kt, R({
|
|
579
|
+
dot: s,
|
|
580
|
+
tag: c,
|
|
581
|
+
class: [t.value, g ? "" : `${t.value}-${r}`],
|
|
582
|
+
style: {
|
|
583
|
+
color: d,
|
|
584
|
+
fontSize: O(a)
|
|
585
|
+
},
|
|
586
|
+
content: i
|
|
587
|
+
}, e.badgeProps), {
|
|
588
|
+
default: () => {
|
|
589
|
+
var m;
|
|
590
|
+
return [(m = n.default) == null ? void 0 : m.call(n), g && h("img", {
|
|
591
|
+
class: Ie("image"),
|
|
592
|
+
src: r
|
|
593
|
+
}, null)];
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
const Ge = F(on), [ln, U] = D("loading"), an = Array(12).fill(null).map((e, n) => h("i", {
|
|
600
|
+
class: U("line", String(n + 1))
|
|
601
|
+
}, null)), sn = h("svg", {
|
|
602
|
+
class: U("circular"),
|
|
603
|
+
viewBox: "25 25 50 50"
|
|
604
|
+
}, [h("circle", {
|
|
605
|
+
cx: "50",
|
|
606
|
+
cy: "50",
|
|
607
|
+
r: "20",
|
|
608
|
+
fill: "none"
|
|
609
|
+
}, null)]), un = {
|
|
610
|
+
size: C,
|
|
611
|
+
type: w("circular"),
|
|
612
|
+
color: String,
|
|
613
|
+
vertical: Boolean,
|
|
614
|
+
textSize: C,
|
|
615
|
+
textColor: String
|
|
616
|
+
};
|
|
617
|
+
var cn = S({
|
|
618
|
+
name: ln,
|
|
619
|
+
props: un,
|
|
620
|
+
setup(e, {
|
|
621
|
+
slots: n
|
|
622
|
+
}) {
|
|
623
|
+
const o = j(() => T({
|
|
624
|
+
color: e.color
|
|
625
|
+
}, Pt(e.size))), t = () => {
|
|
626
|
+
const s = e.type === "spinner" ? an : sn;
|
|
627
|
+
return h("span", {
|
|
628
|
+
class: U("spinner", e.type),
|
|
629
|
+
style: o.value
|
|
630
|
+
}, [n.icon ? n.icon() : s]);
|
|
631
|
+
}, c = () => {
|
|
632
|
+
var s;
|
|
633
|
+
if (n.default)
|
|
634
|
+
return h("span", {
|
|
635
|
+
class: U("text"),
|
|
636
|
+
style: {
|
|
637
|
+
fontSize: O(e.textSize),
|
|
638
|
+
color: (s = e.textColor) != null ? s : e.color
|
|
639
|
+
}
|
|
640
|
+
}, [n.default()]);
|
|
641
|
+
};
|
|
642
|
+
return () => {
|
|
643
|
+
const {
|
|
644
|
+
type: s,
|
|
645
|
+
vertical: r
|
|
646
|
+
} = e;
|
|
647
|
+
return h("div", {
|
|
648
|
+
class: U([s, {
|
|
649
|
+
vertical: r
|
|
650
|
+
}]),
|
|
651
|
+
"aria-live": "polite",
|
|
652
|
+
"aria-busy": !0
|
|
653
|
+
}, [t(), c()]);
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
const qe = F(cn), rn = {
|
|
658
|
+
// whether to show popup
|
|
659
|
+
show: Boolean,
|
|
660
|
+
// z-index
|
|
661
|
+
zIndex: C,
|
|
662
|
+
// whether to show overlay
|
|
663
|
+
overlay: A,
|
|
664
|
+
// transition duration
|
|
665
|
+
duration: C,
|
|
666
|
+
// teleport
|
|
667
|
+
teleport: [String, Object],
|
|
668
|
+
// prevent body scroll
|
|
669
|
+
lockScroll: A,
|
|
670
|
+
// whether to lazy render
|
|
671
|
+
lazyRender: A,
|
|
672
|
+
// callback function before close
|
|
673
|
+
beforeClose: Function,
|
|
674
|
+
// overlay props
|
|
675
|
+
overlayProps: Object,
|
|
676
|
+
// overlay custom style
|
|
677
|
+
overlayStyle: Object,
|
|
678
|
+
// overlay custom class name
|
|
679
|
+
overlayClass: Q,
|
|
680
|
+
// Initial rendering animation
|
|
681
|
+
transitionAppear: Boolean,
|
|
682
|
+
// whether to close popup when overlay is clicked
|
|
683
|
+
closeOnClickOverlay: A
|
|
684
|
+
};
|
|
685
|
+
function dn(e, n) {
|
|
686
|
+
return e > n ? "horizontal" : n > e ? "vertical" : "";
|
|
687
|
+
}
|
|
688
|
+
function Je() {
|
|
689
|
+
const e = p(0), n = p(0), o = p(0), t = p(0), c = p(0), s = p(0), r = p(""), a = p(!0), i = () => r.value === "vertical", d = () => r.value === "horizontal", g = () => {
|
|
690
|
+
o.value = 0, t.value = 0, c.value = 0, s.value = 0, r.value = "", a.value = !0;
|
|
691
|
+
};
|
|
692
|
+
return {
|
|
693
|
+
move: (E) => {
|
|
694
|
+
const x = E.touches[0];
|
|
695
|
+
o.value = (x.clientX < 0 ? 0 : x.clientX) - e.value, t.value = x.clientY - n.value, c.value = Math.abs(o.value), s.value = Math.abs(t.value);
|
|
696
|
+
const k = 10;
|
|
697
|
+
(!r.value || c.value < k && s.value < k) && (r.value = dn(c.value, s.value)), a.value && (c.value > ke || s.value > ke) && (a.value = !1);
|
|
698
|
+
},
|
|
699
|
+
start: (E) => {
|
|
700
|
+
g(), e.value = E.touches[0].clientX, n.value = E.touches[0].clientY;
|
|
701
|
+
},
|
|
702
|
+
reset: g,
|
|
703
|
+
startX: e,
|
|
704
|
+
startY: n,
|
|
705
|
+
deltaX: o,
|
|
706
|
+
deltaY: t,
|
|
707
|
+
offsetX: c,
|
|
708
|
+
offsetY: s,
|
|
709
|
+
direction: r,
|
|
710
|
+
isVertical: i,
|
|
711
|
+
isHorizontal: d,
|
|
712
|
+
isTap: a
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
let H = 0;
|
|
716
|
+
const Te = "van-overflow-hidden";
|
|
717
|
+
function fn(e, n) {
|
|
718
|
+
const o = Je(), t = "01", c = "10", s = (g) => {
|
|
719
|
+
o.move(g);
|
|
720
|
+
const m = o.deltaY.value > 0 ? c : t, v = Ye(
|
|
721
|
+
g.target,
|
|
722
|
+
e.value
|
|
723
|
+
), { scrollHeight: E, offsetHeight: x, scrollTop: k } = v;
|
|
724
|
+
let B = "11";
|
|
725
|
+
k === 0 ? B = x >= E ? "00" : "01" : k + x >= E && (B = "10"), B !== "11" && o.isVertical() && !(parseInt(B, 2) & parseInt(m, 2)) && Ce(g, !0);
|
|
726
|
+
}, r = () => {
|
|
727
|
+
document.addEventListener("touchstart", o.start), document.addEventListener("touchmove", s, { passive: !1 }), H || document.body.classList.add(Te), H++;
|
|
728
|
+
}, a = () => {
|
|
729
|
+
H && (document.removeEventListener("touchstart", o.start), document.removeEventListener("touchmove", s), H--, H || document.body.classList.remove(Te));
|
|
730
|
+
}, i = () => n() && r(), d = () => n() && a();
|
|
731
|
+
He(i), ee(d), Ae(d), I(n, (g) => {
|
|
732
|
+
g ? r() : a();
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
function Qe(e) {
|
|
736
|
+
const n = p(!1);
|
|
737
|
+
return I(
|
|
738
|
+
e,
|
|
739
|
+
(o) => {
|
|
740
|
+
o && (n.value = o);
|
|
741
|
+
},
|
|
742
|
+
{ immediate: !0 }
|
|
743
|
+
), (o) => () => n.value ? o() : null;
|
|
744
|
+
}
|
|
745
|
+
const Pe = () => {
|
|
746
|
+
var e;
|
|
747
|
+
const { scopeId: n } = ((e = ye()) == null ? void 0 : e.vnode) || {};
|
|
748
|
+
return n ? { [n]: "" } : null;
|
|
749
|
+
}, [vn, mn] = D("overlay"), hn = {
|
|
750
|
+
show: Boolean,
|
|
751
|
+
zIndex: C,
|
|
752
|
+
duration: C,
|
|
753
|
+
className: Q,
|
|
754
|
+
lockScroll: A,
|
|
755
|
+
lazyRender: A,
|
|
756
|
+
customStyle: Object,
|
|
757
|
+
teleport: [String, Object]
|
|
758
|
+
};
|
|
759
|
+
var gn = S({
|
|
760
|
+
name: vn,
|
|
761
|
+
inheritAttrs: !1,
|
|
762
|
+
props: hn,
|
|
763
|
+
setup(e, {
|
|
764
|
+
attrs: n,
|
|
765
|
+
slots: o
|
|
766
|
+
}) {
|
|
767
|
+
const t = p(), c = Qe(() => e.show || !e.lazyRender), s = (a) => {
|
|
768
|
+
e.lockScroll && Ce(a, !0);
|
|
769
|
+
}, r = c(() => {
|
|
770
|
+
var a;
|
|
771
|
+
const i = T($t(e.zIndex), e.customStyle);
|
|
772
|
+
return $(e.duration) && (i.animationDuration = `${e.duration}s`), Ne(h("div", R({
|
|
773
|
+
ref: t,
|
|
774
|
+
style: i,
|
|
775
|
+
class: [mn(), e.className]
|
|
776
|
+
}, n), [(a = o.default) == null ? void 0 : a.call(o)]), [[Re, e.show]]);
|
|
777
|
+
});
|
|
778
|
+
return Ee("touchmove", s, {
|
|
779
|
+
target: t
|
|
780
|
+
}), () => {
|
|
781
|
+
const a = h(Ve, {
|
|
782
|
+
name: "van-fade",
|
|
783
|
+
appear: !0
|
|
784
|
+
}, {
|
|
785
|
+
default: r
|
|
786
|
+
});
|
|
787
|
+
return e.teleport ? h(Le, {
|
|
788
|
+
to: e.teleport
|
|
789
|
+
}, {
|
|
790
|
+
default: () => [a]
|
|
791
|
+
}) : a;
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
const yn = F(gn), pn = T({}, rn, {
|
|
796
|
+
round: Boolean,
|
|
797
|
+
position: w("center"),
|
|
798
|
+
closeIcon: w("cross"),
|
|
799
|
+
closeable: Boolean,
|
|
800
|
+
transition: String,
|
|
801
|
+
iconPrefix: String,
|
|
802
|
+
closeOnPopstate: Boolean,
|
|
803
|
+
closeIconPosition: w("top-right"),
|
|
804
|
+
destroyOnClose: Boolean,
|
|
805
|
+
safeAreaInsetTop: Boolean,
|
|
806
|
+
safeAreaInsetBottom: Boolean
|
|
807
|
+
}), [bn, $e] = D("popup");
|
|
808
|
+
var En = S({
|
|
809
|
+
name: bn,
|
|
810
|
+
inheritAttrs: !1,
|
|
811
|
+
props: pn,
|
|
812
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
|
813
|
+
setup(e, {
|
|
814
|
+
emit: n,
|
|
815
|
+
attrs: o,
|
|
816
|
+
slots: t
|
|
817
|
+
}) {
|
|
818
|
+
let c, s;
|
|
819
|
+
const r = p(), a = p(), i = Qe(() => e.show || !e.lazyRender), d = j(() => {
|
|
820
|
+
const y = {
|
|
821
|
+
zIndex: r.value
|
|
822
|
+
};
|
|
823
|
+
if ($(e.duration)) {
|
|
824
|
+
const P = e.position === "center" ? "animationDuration" : "transitionDuration";
|
|
825
|
+
y[P] = `${e.duration}s`;
|
|
826
|
+
}
|
|
827
|
+
return y;
|
|
828
|
+
}), g = () => {
|
|
829
|
+
c || (c = !0, r.value = e.zIndex !== void 0 ? +e.zIndex : Xt(), n("open"));
|
|
830
|
+
}, m = () => {
|
|
831
|
+
c && Mt(e.beforeClose, {
|
|
832
|
+
done() {
|
|
833
|
+
c = !1, n("close"), n("update:show", !1);
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
}, v = (y) => {
|
|
837
|
+
n("clickOverlay", y), e.closeOnClickOverlay && m();
|
|
838
|
+
}, E = () => {
|
|
839
|
+
if (e.overlay) {
|
|
840
|
+
const y = T({
|
|
841
|
+
show: e.show,
|
|
842
|
+
class: e.overlayClass,
|
|
843
|
+
zIndex: r.value,
|
|
844
|
+
duration: e.duration,
|
|
845
|
+
customStyle: e.overlayStyle,
|
|
846
|
+
role: e.closeOnClickOverlay ? "button" : void 0,
|
|
847
|
+
tabindex: e.closeOnClickOverlay ? 0 : void 0
|
|
848
|
+
}, e.overlayProps);
|
|
849
|
+
return h(yn, R(y, Pe(), {
|
|
850
|
+
onClick: v
|
|
851
|
+
}), {
|
|
852
|
+
default: t["overlay-content"]
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
}, x = (y) => {
|
|
856
|
+
n("clickCloseIcon", y), m();
|
|
857
|
+
}, k = () => {
|
|
858
|
+
if (e.closeable)
|
|
859
|
+
return h(Ge, {
|
|
860
|
+
role: "button",
|
|
861
|
+
tabindex: 0,
|
|
862
|
+
name: e.closeIcon,
|
|
863
|
+
class: [$e("close-icon", e.closeIconPosition), Ht],
|
|
864
|
+
classPrefix: e.iconPrefix,
|
|
865
|
+
onClick: x
|
|
866
|
+
}, null);
|
|
867
|
+
};
|
|
868
|
+
let B;
|
|
869
|
+
const le = () => {
|
|
870
|
+
B && clearTimeout(B), B = setTimeout(() => {
|
|
871
|
+
n("opened");
|
|
872
|
+
});
|
|
873
|
+
}, ae = () => n("closed"), W = (y) => n("keydown", y), f = i(() => {
|
|
874
|
+
var y;
|
|
875
|
+
const {
|
|
876
|
+
destroyOnClose: P,
|
|
877
|
+
round: se,
|
|
878
|
+
position: K,
|
|
879
|
+
safeAreaInsetTop: nt,
|
|
880
|
+
safeAreaInsetBottom: ot,
|
|
881
|
+
show: we
|
|
882
|
+
} = e;
|
|
883
|
+
if (!(!we && P))
|
|
884
|
+
return Ne(h("div", R({
|
|
885
|
+
ref: a,
|
|
886
|
+
style: d.value,
|
|
887
|
+
role: "dialog",
|
|
888
|
+
tabindex: 0,
|
|
889
|
+
class: [$e({
|
|
890
|
+
round: se,
|
|
891
|
+
[K]: K
|
|
892
|
+
}), {
|
|
893
|
+
"van-safe-area-top": nt,
|
|
894
|
+
"van-safe-area-bottom": ot
|
|
895
|
+
}],
|
|
896
|
+
onKeydown: W
|
|
897
|
+
}, o, Pe()), [(y = t.default) == null ? void 0 : y.call(t), k()]), [[Re, we]]);
|
|
898
|
+
}), b = () => {
|
|
899
|
+
const {
|
|
900
|
+
position: y,
|
|
901
|
+
transition: P,
|
|
902
|
+
transitionAppear: se
|
|
903
|
+
} = e, K = y === "center" ? "van-fade" : `van-popup-slide-${y}`;
|
|
904
|
+
return h(Ve, {
|
|
905
|
+
name: P || K,
|
|
906
|
+
appear: se,
|
|
907
|
+
onAfterEnter: le,
|
|
908
|
+
onAfterLeave: ae
|
|
909
|
+
}, {
|
|
910
|
+
default: f
|
|
911
|
+
});
|
|
912
|
+
};
|
|
913
|
+
return I(() => e.show, (y) => {
|
|
914
|
+
y && !c && (g(), o.tabindex === 0 && me(() => {
|
|
915
|
+
var P;
|
|
916
|
+
(P = a.value) == null || P.focus();
|
|
917
|
+
})), !y && c && (c = !1, n("close"));
|
|
918
|
+
}), We({
|
|
919
|
+
popupRef: a
|
|
920
|
+
}), fn(a, () => e.show && e.lockScroll), Ee("popstate", () => {
|
|
921
|
+
e.closeOnPopstate && (m(), s = !1);
|
|
922
|
+
}), te(() => {
|
|
923
|
+
e.show && g();
|
|
924
|
+
}), he(() => {
|
|
925
|
+
s && (n("update:show", !0), s = !1);
|
|
926
|
+
}), ee(() => {
|
|
927
|
+
e.show && e.teleport && (m(), s = !0);
|
|
928
|
+
}), Fe(Yt, () => e.show), () => e.teleport ? h(Le, {
|
|
929
|
+
to: e.teleport
|
|
930
|
+
}, {
|
|
931
|
+
default: () => [E(), b()]
|
|
932
|
+
}) : h(ct, null, [E(), b()]);
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
const Cn = F(En);
|
|
936
|
+
let M = 0;
|
|
937
|
+
function wn(e) {
|
|
938
|
+
e ? (M || document.body.classList.add("van-toast--unclickable"), M++) : M && (M--, M || document.body.classList.remove("van-toast--unclickable"));
|
|
939
|
+
}
|
|
940
|
+
const [xn, V] = D("toast"), Bn = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay", "zIndex"], Sn = {
|
|
941
|
+
icon: String,
|
|
942
|
+
show: Boolean,
|
|
943
|
+
type: w("text"),
|
|
944
|
+
overlay: Boolean,
|
|
945
|
+
message: C,
|
|
946
|
+
iconSize: C,
|
|
947
|
+
duration: xt(2e3),
|
|
948
|
+
position: w("middle"),
|
|
949
|
+
teleport: [String, Object],
|
|
950
|
+
wordBreak: String,
|
|
951
|
+
className: Q,
|
|
952
|
+
iconPrefix: String,
|
|
953
|
+
transition: w("van-fade"),
|
|
954
|
+
loadingType: String,
|
|
955
|
+
forbidClick: Boolean,
|
|
956
|
+
overlayClass: Q,
|
|
957
|
+
overlayStyle: Object,
|
|
958
|
+
closeOnClick: Boolean,
|
|
959
|
+
closeOnClickOverlay: Boolean,
|
|
960
|
+
zIndex: C
|
|
961
|
+
};
|
|
962
|
+
var et = S({
|
|
963
|
+
name: xn,
|
|
964
|
+
props: Sn,
|
|
965
|
+
emits: ["update:show"],
|
|
966
|
+
setup(e, {
|
|
967
|
+
emit: n,
|
|
968
|
+
slots: o
|
|
969
|
+
}) {
|
|
970
|
+
let t, c = !1;
|
|
971
|
+
const s = () => {
|
|
972
|
+
const m = e.show && e.forbidClick;
|
|
973
|
+
c !== m && (c = m, wn(c));
|
|
974
|
+
}, r = (m) => n("update:show", m), a = () => {
|
|
975
|
+
e.closeOnClick && r(!1);
|
|
976
|
+
}, i = () => clearTimeout(t), d = () => {
|
|
977
|
+
const {
|
|
978
|
+
icon: m,
|
|
979
|
+
type: v,
|
|
980
|
+
iconSize: E,
|
|
981
|
+
iconPrefix: x,
|
|
982
|
+
loadingType: k
|
|
983
|
+
} = e;
|
|
984
|
+
if (m || v === "success" || v === "fail")
|
|
985
|
+
return h(Ge, {
|
|
986
|
+
name: m || v,
|
|
987
|
+
size: E,
|
|
988
|
+
class: V("icon"),
|
|
989
|
+
classPrefix: x
|
|
990
|
+
}, null);
|
|
991
|
+
if (v === "loading")
|
|
992
|
+
return h(qe, {
|
|
993
|
+
class: V("loading"),
|
|
994
|
+
size: E,
|
|
995
|
+
type: k
|
|
996
|
+
}, null);
|
|
997
|
+
}, g = () => {
|
|
998
|
+
const {
|
|
999
|
+
type: m,
|
|
1000
|
+
message: v
|
|
1001
|
+
} = e;
|
|
1002
|
+
if (o.message)
|
|
1003
|
+
return h("div", {
|
|
1004
|
+
class: V("text")
|
|
1005
|
+
}, [o.message()]);
|
|
1006
|
+
if ($(v) && v !== "")
|
|
1007
|
+
return m === "html" ? h("div", {
|
|
1008
|
+
key: 0,
|
|
1009
|
+
class: V("text"),
|
|
1010
|
+
innerHTML: String(v)
|
|
1011
|
+
}, null) : h("div", {
|
|
1012
|
+
class: V("text")
|
|
1013
|
+
}, [v]);
|
|
1014
|
+
};
|
|
1015
|
+
return I(() => [e.show, e.forbidClick], s), I(() => [e.show, e.type, e.message, e.duration], () => {
|
|
1016
|
+
i(), e.show && e.duration > 0 && (t = setTimeout(() => {
|
|
1017
|
+
r(!1);
|
|
1018
|
+
}, e.duration));
|
|
1019
|
+
}), te(s), ze(s), () => h(Cn, R({
|
|
1020
|
+
class: [V([e.position, e.wordBreak === "normal" ? "break-normal" : e.wordBreak, {
|
|
1021
|
+
[e.type]: !e.icon
|
|
1022
|
+
}]), e.className],
|
|
1023
|
+
lockScroll: !1,
|
|
1024
|
+
onClick: a,
|
|
1025
|
+
onClosed: i,
|
|
1026
|
+
"onUpdate:show": r
|
|
1027
|
+
}, wt(e, Bn)), {
|
|
1028
|
+
default: () => [d(), g()]
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
function kn() {
|
|
1033
|
+
const e = ge({
|
|
1034
|
+
show: !1
|
|
1035
|
+
}), n = (c) => {
|
|
1036
|
+
e.show = c;
|
|
1037
|
+
}, o = (c) => {
|
|
1038
|
+
T(e, c, { transitionAppear: !0 }), n(!0);
|
|
1039
|
+
}, t = () => n(!1);
|
|
1040
|
+
return We({ open: o, close: t, toggle: n }), {
|
|
1041
|
+
open: o,
|
|
1042
|
+
close: t,
|
|
1043
|
+
state: e,
|
|
1044
|
+
toggle: n
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
function On(e) {
|
|
1048
|
+
const n = it(e), o = document.createElement("div");
|
|
1049
|
+
return document.body.appendChild(o), {
|
|
1050
|
+
instance: n.mount(o),
|
|
1051
|
+
unmount() {
|
|
1052
|
+
n.unmount(), document.body.removeChild(o);
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
const In = {
|
|
1057
|
+
icon: "",
|
|
1058
|
+
type: "text",
|
|
1059
|
+
message: "",
|
|
1060
|
+
className: "",
|
|
1061
|
+
overlay: !1,
|
|
1062
|
+
onClose: void 0,
|
|
1063
|
+
onOpened: void 0,
|
|
1064
|
+
duration: 2e3,
|
|
1065
|
+
teleport: "body",
|
|
1066
|
+
iconSize: void 0,
|
|
1067
|
+
iconPrefix: void 0,
|
|
1068
|
+
position: "middle",
|
|
1069
|
+
transition: "van-fade",
|
|
1070
|
+
forbidClick: !1,
|
|
1071
|
+
loadingType: void 0,
|
|
1072
|
+
overlayClass: "",
|
|
1073
|
+
overlayStyle: void 0,
|
|
1074
|
+
closeOnClick: !1,
|
|
1075
|
+
closeOnClickOverlay: !1
|
|
1076
|
+
};
|
|
1077
|
+
let q = [], Tn = !1, De = T({}, In);
|
|
1078
|
+
const Pn = /* @__PURE__ */ new Map();
|
|
1079
|
+
function $n(e) {
|
|
1080
|
+
return oe(e) ? e : {
|
|
1081
|
+
message: e
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function Dn() {
|
|
1085
|
+
const {
|
|
1086
|
+
instance: e
|
|
1087
|
+
} = On({
|
|
1088
|
+
setup() {
|
|
1089
|
+
const n = p(""), {
|
|
1090
|
+
open: o,
|
|
1091
|
+
state: t,
|
|
1092
|
+
close: c,
|
|
1093
|
+
toggle: s
|
|
1094
|
+
} = kn(), r = () => {
|
|
1095
|
+
}, a = () => h(et, R(t, {
|
|
1096
|
+
onClosed: r,
|
|
1097
|
+
"onUpdate:show": s
|
|
1098
|
+
}), null);
|
|
1099
|
+
return I(n, (i) => {
|
|
1100
|
+
t.message = i;
|
|
1101
|
+
}), ye().render = a, {
|
|
1102
|
+
open: o,
|
|
1103
|
+
close: c,
|
|
1104
|
+
message: n
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
return e;
|
|
1109
|
+
}
|
|
1110
|
+
function zn() {
|
|
1111
|
+
if (!q.length || Tn) {
|
|
1112
|
+
const e = Dn();
|
|
1113
|
+
q.push(e);
|
|
1114
|
+
}
|
|
1115
|
+
return q[q.length - 1];
|
|
1116
|
+
}
|
|
1117
|
+
function An(e = {}) {
|
|
1118
|
+
if (!pe)
|
|
1119
|
+
return {};
|
|
1120
|
+
const n = zn(), o = $n(e);
|
|
1121
|
+
return n.open(T({}, De, Pn.get(o.type || De.type), o)), n;
|
|
1122
|
+
}
|
|
1123
|
+
F(et);
|
|
1124
|
+
const [Fn, Y, Vn] = D("pull-refresh"), tt = 50, Ln = ["pulling", "loosing", "success"], Nn = {
|
|
1125
|
+
disabled: Boolean,
|
|
1126
|
+
modelValue: Boolean,
|
|
1127
|
+
headHeight: ce(tt),
|
|
1128
|
+
successText: String,
|
|
1129
|
+
pullingText: String,
|
|
1130
|
+
loosingText: String,
|
|
1131
|
+
loadingText: String,
|
|
1132
|
+
pullDistance: C,
|
|
1133
|
+
successDuration: ce(500),
|
|
1134
|
+
animationDuration: ce(300)
|
|
1135
|
+
};
|
|
1136
|
+
var Rn = S({
|
|
1137
|
+
name: Fn,
|
|
1138
|
+
props: Nn,
|
|
1139
|
+
emits: ["change", "refresh", "update:modelValue"],
|
|
1140
|
+
setup(e, {
|
|
1141
|
+
emit: n,
|
|
1142
|
+
slots: o
|
|
1143
|
+
}) {
|
|
1144
|
+
let t;
|
|
1145
|
+
const c = p(), s = p(), r = Ot(c), a = ge({
|
|
1146
|
+
status: "normal",
|
|
1147
|
+
distance: 0,
|
|
1148
|
+
duration: 0
|
|
1149
|
+
}), i = Je(), d = () => {
|
|
1150
|
+
if (e.headHeight !== tt)
|
|
1151
|
+
return {
|
|
1152
|
+
height: `${e.headHeight}px`
|
|
1153
|
+
};
|
|
1154
|
+
}, g = () => a.status !== "loading" && a.status !== "success" && !e.disabled, m = (f) => {
|
|
1155
|
+
const b = +(e.pullDistance || e.headHeight);
|
|
1156
|
+
return f > b && (f < b * 2 ? f = b + (f - b) / 2 : f = b * 1.5 + (f - b * 2) / 4), Math.round(f);
|
|
1157
|
+
}, v = (f, b) => {
|
|
1158
|
+
const y = +(e.pullDistance || e.headHeight);
|
|
1159
|
+
a.distance = f, b ? a.status = "loading" : f === 0 ? a.status = "normal" : f < y ? a.status = "pulling" : a.status = "loosing", n("change", {
|
|
1160
|
+
status: a.status,
|
|
1161
|
+
distance: f
|
|
1162
|
+
});
|
|
1163
|
+
}, E = () => {
|
|
1164
|
+
const {
|
|
1165
|
+
status: f
|
|
1166
|
+
} = a;
|
|
1167
|
+
return f === "normal" ? "" : e[`${f}Text`] || Vn(f);
|
|
1168
|
+
}, x = () => {
|
|
1169
|
+
const {
|
|
1170
|
+
status: f,
|
|
1171
|
+
distance: b
|
|
1172
|
+
} = a;
|
|
1173
|
+
if (o[f])
|
|
1174
|
+
return o[f]({
|
|
1175
|
+
distance: b
|
|
1176
|
+
});
|
|
1177
|
+
const y = [];
|
|
1178
|
+
return Ln.includes(f) && y.push(h("div", {
|
|
1179
|
+
class: Y("text")
|
|
1180
|
+
}, [E()])), f === "loading" && y.push(h(qe, {
|
|
1181
|
+
class: Y("loading")
|
|
1182
|
+
}, {
|
|
1183
|
+
default: E
|
|
1184
|
+
})), y;
|
|
1185
|
+
}, k = () => {
|
|
1186
|
+
a.status = "success", setTimeout(() => {
|
|
1187
|
+
v(0);
|
|
1188
|
+
}, +e.successDuration);
|
|
1189
|
+
}, B = (f) => {
|
|
1190
|
+
t = It(r.value) === 0, t && (a.duration = 0, i.start(f));
|
|
1191
|
+
}, le = (f) => {
|
|
1192
|
+
g() && B(f);
|
|
1193
|
+
}, ae = (f) => {
|
|
1194
|
+
if (g()) {
|
|
1195
|
+
t || B(f);
|
|
1196
|
+
const {
|
|
1197
|
+
deltaY: b
|
|
1198
|
+
} = i;
|
|
1199
|
+
i.move(f), t && b.value >= 0 && i.isVertical() && (Ce(f), v(m(b.value)));
|
|
1200
|
+
}
|
|
1201
|
+
}, W = () => {
|
|
1202
|
+
t && i.deltaY.value && g() && (a.duration = +e.animationDuration, a.status === "loosing" ? (v(+e.headHeight, !0), n("update:modelValue", !0), me(() => n("refresh"))) : v(0));
|
|
1203
|
+
};
|
|
1204
|
+
return I(() => e.modelValue, (f) => {
|
|
1205
|
+
a.duration = +e.animationDuration, f ? v(+e.headHeight, !0) : o.success || e.successText ? k() : v(0, !1);
|
|
1206
|
+
}), Ee("touchmove", ae, {
|
|
1207
|
+
target: s
|
|
1208
|
+
}), () => {
|
|
1209
|
+
var f;
|
|
1210
|
+
const b = {
|
|
1211
|
+
transitionDuration: `${a.duration}ms`,
|
|
1212
|
+
transform: a.distance ? `translate3d(0,${a.distance}px, 0)` : ""
|
|
1213
|
+
};
|
|
1214
|
+
return h("div", {
|
|
1215
|
+
ref: c,
|
|
1216
|
+
class: Y()
|
|
1217
|
+
}, [h("div", {
|
|
1218
|
+
ref: s,
|
|
1219
|
+
class: Y("track"),
|
|
1220
|
+
style: b,
|
|
1221
|
+
onTouchstartPassive: le,
|
|
1222
|
+
onTouchend: W,
|
|
1223
|
+
onTouchcancel: W
|
|
1224
|
+
}, [h("div", {
|
|
1225
|
+
class: Y("head"),
|
|
1226
|
+
style: d()
|
|
1227
|
+
}, [x()]), (f = o.default) == null ? void 0 : f.call(o)])]);
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
const jn = F(Rn), Hn = {
|
|
1232
|
+
key: 0,
|
|
1233
|
+
class: "mx-app-page-header"
|
|
1234
|
+
}, Mn = {
|
|
1235
|
+
key: 0,
|
|
1236
|
+
class: "mx-app-page-header-left"
|
|
1237
|
+
}, Yn = { class: "mx-app-page-header-center" }, Un = { class: "mx-app-page-title" }, _n = { class: "mx-app-page-header-right" }, Wn = {
|
|
1238
|
+
key: 1,
|
|
1239
|
+
class: "mx-app-page-search"
|
|
1240
|
+
}, Kn = { class: "search-content" }, Xn = /* @__PURE__ */ S({
|
|
1241
|
+
__name: "index",
|
|
1242
|
+
props: {
|
|
1243
|
+
title: { default: "" },
|
|
1244
|
+
showBack: { type: Boolean, default: !0 },
|
|
1245
|
+
showHeader: { type: Boolean, default: !0 },
|
|
1246
|
+
enablePullRefresh: { type: Boolean, default: !1 },
|
|
1247
|
+
refreshing: { type: Boolean, default: !1 },
|
|
1248
|
+
showSearch: { type: Boolean, default: !0 },
|
|
1249
|
+
onRefresh: {},
|
|
1250
|
+
onBack: {},
|
|
1251
|
+
id: {},
|
|
1252
|
+
class: {},
|
|
1253
|
+
style: {},
|
|
1254
|
+
disabled: { type: Boolean }
|
|
1255
|
+
},
|
|
1256
|
+
emits: ["back", "refresh"],
|
|
1257
|
+
setup(e, { emit: n }) {
|
|
1258
|
+
const o = n, t = p(0), c = p(!1), s = () => {
|
|
1259
|
+
setTimeout(() => {
|
|
1260
|
+
An("刷新成功"), c.value = !1, t.value++;
|
|
1261
|
+
}, 1e3);
|
|
1262
|
+
}, r = p(), a = () => {
|
|
1263
|
+
o("back");
|
|
1264
|
+
};
|
|
1265
|
+
return (i, d) => (z(), X("div", {
|
|
1266
|
+
id: "id",
|
|
1267
|
+
class: _([
|
|
1268
|
+
"mx-app-page",
|
|
1269
|
+
{
|
|
1270
|
+
"mx-app-page-with-header": e.showHeader
|
|
1271
|
+
}
|
|
1272
|
+
])
|
|
1273
|
+
}, [
|
|
1274
|
+
e.showHeader ? (z(), X("header", Hn, [
|
|
1275
|
+
e.showBack ? (z(), X("div", Mn, [
|
|
1276
|
+
l("div", {
|
|
1277
|
+
class: "mx-app-page-back",
|
|
1278
|
+
onClick: a
|
|
1279
|
+
}, [...d[1] || (d[1] = [
|
|
1280
|
+
l("i", { class: "iconfont icon-fanhui1 icon" }, null, -1)
|
|
1281
|
+
])])
|
|
1282
|
+
])) : ue("", !0),
|
|
1283
|
+
l("div", Yn, [
|
|
1284
|
+
L(i.$slots, "title", {}, () => [
|
|
1285
|
+
l("span", Un, u(e.title), 1)
|
|
1286
|
+
], !0)
|
|
1287
|
+
]),
|
|
1288
|
+
l("div", _n, [
|
|
1289
|
+
L(i.$slots, "header-right", {}, void 0, !0)
|
|
1290
|
+
])
|
|
1291
|
+
])) : ue("", !0),
|
|
1292
|
+
e.showSearch ? (z(), X("div", Wn, [
|
|
1293
|
+
l("div", Kn, [
|
|
1294
|
+
L(i.$slots, "search", {}, void 0, !0)
|
|
1295
|
+
]),
|
|
1296
|
+
d[2] || (d[2] = l("i", { class: "iconfont icon-sousuo icon" }, null, -1))
|
|
1297
|
+
])) : ue("", !0),
|
|
1298
|
+
l("div", {
|
|
1299
|
+
class: _(["mx-app-page-content-wrapper", {
|
|
1300
|
+
"has-search": e.showSearch,
|
|
1301
|
+
"has-header": e.showHeader
|
|
1302
|
+
}]),
|
|
1303
|
+
ref_key: "contentWrapperRef",
|
|
1304
|
+
ref: r
|
|
1305
|
+
}, [
|
|
1306
|
+
h(N(jn), {
|
|
1307
|
+
modelValue: c.value,
|
|
1308
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => c.value = g),
|
|
1309
|
+
onRefresh: s
|
|
1310
|
+
}, {
|
|
1311
|
+
default: J(() => [
|
|
1312
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1313
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1314
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1315
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1316
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1317
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1318
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1319
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1320
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1321
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1322
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1323
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1324
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1325
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1326
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1327
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1328
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1329
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1330
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1331
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1332
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1333
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1334
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1335
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1336
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1337
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1338
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1339
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1340
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1341
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1342
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1343
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1344
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1345
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1346
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1347
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1348
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1349
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1350
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1351
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1352
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1353
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1354
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1355
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1356
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1357
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1358
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1359
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1360
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1361
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1362
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1363
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1364
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1365
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1366
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1367
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1368
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1369
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1370
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1371
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1372
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1373
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1374
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1375
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1376
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1377
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1378
|
+
l("p", null, "刷新次数: " + u(t.value), 1),
|
|
1379
|
+
l("p", null, "刷新次数: " + u(t.value), 1)
|
|
1380
|
+
]),
|
|
1381
|
+
_: 1
|
|
1382
|
+
}, 8, ["modelValue"])
|
|
1383
|
+
], 2)
|
|
1384
|
+
], 2));
|
|
1385
|
+
}
|
|
1386
|
+
}), Zn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-4ad76a0d"]]), Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
148
1387
|
__proto__: null
|
|
149
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
150
|
-
Button:
|
|
151
|
-
Input:
|
|
152
|
-
Card:
|
|
153
|
-
|
|
1388
|
+
}, Symbol.toStringTag, { value: "Module" })), Gn = {
|
|
1389
|
+
Button: mt,
|
|
1390
|
+
Input: gt,
|
|
1391
|
+
Card: pt,
|
|
1392
|
+
AppPage: Zn
|
|
1393
|
+
}, eo = {
|
|
154
1394
|
install: (e) => {
|
|
155
|
-
Object.values(
|
|
156
|
-
e.component(
|
|
1395
|
+
Object.values(Gn).forEach((n) => {
|
|
1396
|
+
e.component(n.name, n);
|
|
157
1397
|
});
|
|
158
1398
|
}
|
|
159
1399
|
};
|
|
160
1400
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
1401
|
+
Zn as AppPage,
|
|
1402
|
+
mt as Button,
|
|
1403
|
+
pt as Card,
|
|
1404
|
+
gt as Input,
|
|
1405
|
+
Gn as components,
|
|
1406
|
+
eo as default,
|
|
1407
|
+
Qn as types
|
|
167
1408
|
};
|