mx-ui-template 0.2.5 → 0.2.7

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