mx-ui-template 0.2.2 → 0.2.4

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