mx-ui-template 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 S, createBlock as fe, openBlock as z, unref as N, normalizeStyle as ve, normalizeClass as _, withCtx as J, renderSlot as L, computed as j, createSlots as lt, onUnmounted as ze, onDeactivated as ee, isRef as at, watch as I, onMounted as te, nextTick as me, onActivated as he, ref as p, reactive as ge, getCurrentInstance as ye, createVNode as h, onBeforeUnmount as Ae, provide as Fe, watchEffect as st, inject as ut, mergeProps as R, Transition as Ve, Teleport as Le, withDirectives as Ne, vShow as Re, Fragment as ct, createApp as it, createElementBlock as X, createCommentVNode as ue, createElementVNode as l, toDisplayString as u } from "vue";
2
2
  import { NButton as rt, NInput as dt, NCard as ft } from "naive-ui";
3
- const mt = /* @__PURE__ */ x({
3
+ const vt = /* @__PURE__ */ S({
4
4
  __name: "Button",
5
5
  props: {
6
6
  type: {},
@@ -16,14 +16,14 @@ const mt = /* @__PURE__ */ x({
16
16
  disabled: { type: Boolean }
17
17
  },
18
18
  emits: ["click"],
19
- setup(e, { emit: t }) {
20
- const n = e, o = t, l = (s) => {
21
- !n.disabled && n.onClick && n.onClick(s), o("click", s);
19
+ setup(e, { emit: n }) {
20
+ const o = e, t = n, c = (s) => {
21
+ !o.disabled && o.onClick && o.onClick(s), t("click", s);
22
22
  };
23
- return (s, i) => (D(), de(L(rt), {
23
+ return (s, r) => (z(), fe(N(rt), {
24
24
  id: e.id,
25
- class: U(e.class),
26
- style: fe(e.style),
25
+ class: _(e.class),
26
+ style: ve(e.style),
27
27
  type: e.type,
28
28
  size: e.size,
29
29
  circle: e.circle,
@@ -31,20 +31,20 @@ const 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: J(() => [
37
+ L(s.$slots, "default", {}, void 0, !0)
38
38
  ]),
39
39
  _: 3
40
40
  }, 8, ["id", "class", "style", "type", "size", "circle", "ghost", "dashed", "loading", "disabled"]));
41
41
  }
42
- }), 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
+ }), ne = (e, n) => {
43
+ const o = e.__vccOpts || e;
44
+ for (const [t, c] of n)
45
+ o[t] = c;
46
+ return o;
47
+ }, mt = /* @__PURE__ */ ne(vt, [["__scopeId", "data-v-fdf1cb77"]]), ht = /* @__PURE__ */ S({
48
48
  __name: "Input",
49
49
  props: {
50
50
  modelValue: {},
@@ -65,28 +65,28 @@ const mt = /* @__PURE__ */ x({
65
65
  disabled: { type: Boolean }
66
66
  },
67
67
  emits: ["update:modelValue", "input", "blur", "focus"],
68
- setup(e, { emit: t }) {
69
- const n = e, o = t, l = R({
68
+ setup(e, { emit: n }) {
69
+ const o = e, t = n, c = j({
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
+ t("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
+ t("update:modelValue", i);
78
+ }, r = (i) => {
79
+ t("blur", i);
80
+ }, a = (i) => {
81
+ t("focus", i);
82
82
  };
83
- return (c, u) => (D(), de(L(dt), {
83
+ return (i, d) => (z(), fe(N(dt), {
84
84
  id: e.id,
85
- class: U(e.class),
86
- style: fe(e.style),
87
- value: l.value,
85
+ class: _(e.class),
86
+ style: ve(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__ */ ne(ht, [["__scopeId", "data-v-be9f5c5c"]]), yt = /* @__PURE__ */ S({
106
106
  __name: "Card",
107
107
  props: {
108
108
  title: {},
@@ -116,173 +116,173 @@ const mt = /* @__PURE__ */ x({
116
116
  disabled: { type: Boolean }
117
117
  },
118
118
  emits: ["close"],
119
- setup(e, { emit: t }) {
120
- const n = e, o = t, l = () => {
121
- n.onClose && n.onClose(), o("close");
119
+ setup(e, { emit: n }) {
120
+ const o = e, t = n, c = () => {
121
+ o.onClose && o.onClose(), t("close");
122
122
  };
123
- return (s, i) => (D(), de(L(ft), {
123
+ return (s, r) => (z(), fe(N(ft), {
124
124
  id: e.id,
125
- class: U(e.class),
126
- style: fe(e.style),
125
+ class: _(e.class),
126
+ style: ve(e.style),
127
127
  title: e.title,
128
128
  bordered: e.bordered,
129
129
  size: e.size,
130
130
  closable: e.closable,
131
- onClose: l
132
- }, at({
133
- default: q(() => [
134
- V(s.$slots, "default", {}, void 0, !0)
131
+ onClose: c
132
+ }, lt({
133
+ default: J(() => [
134
+ L(s.$slots, "default", {}, void 0, !0)
135
135
  ]),
136
136
  _: 2
137
137
  }, [
138
138
  s.$slots["header-extra"] ? {
139
139
  name: "header-extra",
140
- fn: q(() => [
141
- V(s.$slots, "header-extra", {}, void 0, !0)
140
+ fn: J(() => [
141
+ L(s.$slots, "header-extra", {}, void 0, !0)
142
142
  ]),
143
143
  key: "0"
144
144
  } : void 0
145
145
  ]), 1032, ["id", "class", "style", "title", "bordered", "size", "closable"]));
146
146
  }
147
- }), bt = /* @__PURE__ */ te(yt, [["__scopeId", "data-v-fdc12dd9"]]);
148
- function pt() {
147
+ }), pt = /* @__PURE__ */ ne(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;
151
- function xe(e, t) {
152
- const n = t.split(".");
153
- let o = e;
154
- return n.forEach((l) => {
150
+ const T = Object.assign, pe = typeof window < "u", oe = (e) => e !== null && typeof e == "object", $ = (e) => e != null, re = (e) => typeof e == "function", Et = (e) => oe(e) && re(e.then) && re(e.catch), je = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), Ct = () => pe ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
151
+ function xe(e, n) {
152
+ const o = n.split(".");
153
+ let t = e;
154
+ return o.forEach((c) => {
155
155
  var s;
156
- o = ne(o) && (s = o[l]) != null ? s : "";
157
- }), o;
156
+ t = oe(t) && (s = t[c]) != null ? s : "";
157
+ }), t;
158
158
  }
159
- function wt(e, t, n) {
160
- return t.reduce(
161
- (o, l) => (o[l] = e[l], o),
159
+ function wt(e, n, o) {
160
+ return n.reduce(
161
+ (t, c) => (t[c] = e[c], t),
162
162
  {}
163
163
  );
164
164
  }
165
- const J = null, p = [Number, String], z = {
165
+ const Q = 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
171
  }), ce = (e) => ({
172
- type: p,
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
- let t;
181
- ee(() => {
180
+ let n;
181
+ te(() => {
182
182
  e(), me(() => {
183
- t = !0;
183
+ n = !0;
184
184
  });
185
- }), ve(() => {
186
- t && e();
185
+ }), he(() => {
186
+ n && e();
187
187
  });
188
188
  }
189
- function pe(e, t, n = {}) {
189
+ function Ee(e, n, 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: t = 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 = N(m);
198
+ v && !a && (v.addEventListener(e, n, {
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 = N(m);
206
+ v && a && (v.removeEventListener(e, n, 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(t)), ee(() => d(t)), He(() => i(t));
209
+ let g;
210
+ return at(t) && (g = I(t, (m, v) => {
211
+ d(v), i(m);
212
212
  })), () => {
213
- v?.(), u(o), i = !0;
213
+ g?.(), d(t), r = !0;
214
214
  };
215
215
  }
216
- var X, ie;
216
+ var Z, ie;
217
217
  function Bt() {
218
- if (!X && (X = g(0), ie = g(0), be)) {
218
+ if (!Z && (Z = p(0), ie = p(0), be)) {
219
219
  const e = () => {
220
- X.value = window.innerWidth, ie.value = window.innerHeight;
220
+ Z.value = window.innerWidth, ie.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: Z, height: ie };
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 Ye(e, n = Me) {
231
+ let o = e;
232
+ for (; o && o !== n && kt(o); ) {
233
+ const { overflowY: t } = window.getComputedStyle(o);
234
+ if (St.test(t))
235
+ return o;
236
+ o = o.parentNode;
237
237
  }
238
- return t;
238
+ return n;
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 Ot(e, n = Me) {
241
+ const o = p();
242
+ return te(() => {
243
+ e.value && (o.value = Ye(e.value, n));
244
+ }), o;
245
245
  }
246
246
  function It(e) {
247
- const t = "scrollTop" in e ? e.scrollTop : e.pageYOffset;
248
- return Math.max(t, 0);
247
+ const n = "scrollTop" in e ? e.scrollTop : e.pageYOffset;
248
+ return Math.max(n, 0);
249
249
  }
250
250
  Ct();
251
251
  const Tt = (e) => e.stopPropagation();
252
- function Ee(e, t) {
253
- (typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(), t && Tt(e);
252
+ function Ce(e, n) {
253
+ (typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(), n && Tt(e);
254
254
  }
255
255
  Bt();
256
- function S(e) {
257
- if (P(e))
256
+ function O(e) {
257
+ if ($(e))
258
258
  return je(e) ? `${e}px` : String(e);
259
259
  }
260
260
  function Pt(e) {
261
- if (P(e)) {
261
+ if ($(e)) {
262
262
  if (Array.isArray(e))
263
263
  return {
264
- width: S(e[0]),
265
- height: S(e[1])
264
+ width: O(e[0]),
265
+ height: O(e[1])
266
266
  };
267
- const t = S(e);
267
+ const n = O(e);
268
268
  return {
269
- width: t,
270
- height: t
269
+ width: n,
270
+ height: n
271
271
  };
272
272
  }
273
273
  }
274
274
  function $t(e) {
275
- const t = {};
276
- return e !== void 0 && (t.zIndex = +e), t;
275
+ const n = {};
276
+ return e !== void 0 && (n.zIndex = +e), n;
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, Ue = (e) => e.replace(Dt, (n, o) => o.toUpperCase()), zt = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), { hasOwnProperty: At } = Object.prototype;
279
+ function Ft(e, n, o) {
280
+ const t = n[o];
281
+ $(t) && (!At.call(e, o) || !oe(t) ? e[o] = t : e[o] = _e(Object(e[o]), t));
282
282
  }
283
- function _e(e, t) {
284
- return Object.keys(t).forEach((n) => {
285
- Ft(e, t, n);
283
+ function _e(e, n) {
284
+ return Object.keys(n).forEach((o) => {
285
+ Ft(e, n, o);
286
286
  }), e;
287
287
  }
288
288
  var Vt = {
@@ -303,7 +303,7 @@ var Vt = {
303
303
  start: "开始",
304
304
  title: "日期选择",
305
305
  weekdays: ["日", "一", "二", "三", "四", "五", "六"],
306
- monthTitle: (e, t) => `${e}年${t}月`,
306
+ monthTitle: (e, n) => `${e}年${n}月`,
307
307
  rangePrompt: (e) => `最多选择 ${e} 天`
308
308
  },
309
309
  vanCascader: {
@@ -347,14 +347,14 @@ var Vt = {
347
347
  add: "新增地址"
348
348
  }
349
349
  };
350
- const Be = g("zh-CN"), Se = he({
350
+ const Be = p("zh-CN"), Se = ge({
351
351
  "zh-CN": Vt
352
352
  }), Lt = {
353
353
  messages() {
354
354
  return Se[Be.value];
355
355
  },
356
- use(e, t) {
357
- Be.value = e, this.add({ [e]: t });
356
+ use(e, n) {
357
+ Be.value = e, this.add({ [e]: n });
358
358
  },
359
359
  add(e = {}) {
360
360
  _e(Se, e);
@@ -362,313 +362,313 @@ const Be = g("zh-CN"), Se = he({
362
362
  };
363
363
  var Nt = Lt;
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 n = Ue(e) + ".";
366
+ return (o, ...t) => {
367
+ const c = Nt.messages(), s = xe(c, n + o) || xe(c, o);
368
+ return re(s) ? s(...t) : s;
369
369
  };
370
370
  }
371
- function re(e, t) {
372
- return t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce(
373
- (n, o) => n + re(e, o),
371
+ function de(e, n) {
372
+ return n ? typeof n == "string" ? ` ${e}--${n}` : Array.isArray(n) ? n.reduce(
373
+ (o, t) => o + de(e, t),
374
374
  ""
375
- ) : Object.keys(t).reduce(
376
- (n, o) => n + (t[o] ? re(e, o) : ""),
375
+ ) : Object.keys(n).reduce(
376
+ (o, t) => o + (n[t] ? de(e, t) : ""),
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 (n, o) => (n && typeof n != "string" && (o = n, n = ""), n = n ? `${e}__${n}` : e, `${n}${de(n, o)}`);
382
382
  }
383
- function $(e) {
384
- const t = `van-${e}`;
383
+ function D(e) {
384
+ const n = `van-${e}`;
385
385
  return [
386
- t,
387
- jt(t),
388
- Rt(t)
386
+ n,
387
+ jt(n),
388
+ Rt(n)
389
389
  ];
390
390
  }
391
391
  const Ht = "van-haptics-feedback", ke = 5;
392
392
  function Mt(e, {
393
- args: t = [],
394
- done: n,
395
- canceled: o,
396
- error: l
393
+ args: n = [],
394
+ done: o,
395
+ canceled: t,
396
+ error: c
397
397
  }) {
398
398
  if (e) {
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();
399
+ const s = e.apply(null, n);
400
+ Et(s) ? s.then((r) => {
401
+ r ? o() : t && t();
402
+ }).catch(c || bt) : s ? o() : t && t();
403
403
  } else
404
- n();
404
+ o();
405
405
  }
406
- function A(e) {
407
- return e.install = (t) => {
408
- const { name: n } = e;
409
- n && (t.component(n, e), t.component(Ue(`-${n}`), e));
406
+ function F(e) {
407
+ return e.install = (n) => {
408
+ const { name: o } = e;
409
+ o && (n.component(o, e), n.component(Ue(`-${o}`), e));
410
410
  }, e;
411
411
  }
412
412
  const Yt = Symbol();
413
413
  function We(e) {
414
- const t = ge();
415
- t && I(t.proxy, e);
414
+ const n = ye();
415
+ n && T(n.proxy, e);
416
416
  }
417
- const [Ut, Oe] = $("badge"), _t = {
417
+ const [Ut, Oe] = D("badge"), _t = {
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
- var Wt = x({
427
+ var Wt = S({
428
428
  name: Ut,
429
429
  props: _t,
430
430
  setup(e, {
431
- slots: t
431
+ slots: n
432
432
  }) {
433
- const n = () => {
434
- if (t.content)
433
+ const o = () => {
434
+ if (n.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 $(a) && a !== "" && (i || a !== 0 && a !== "0");
441
+ }, t = () => {
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 n.content ? n.content() : $(i) && je(d) && +d > +i ? `${i}+` : d;
449
+ }, c = (a) => a.startsWith("-") ? a.replace("-", "") : `-${a}`, s = j(() => {
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
+ n.default ? (typeof d == "number" ? a[m] = O(m === "top" ? d : -d) : a[m] = m === "top" ? O(d) : c(d), typeof i == "number" ? a[v] = O(v === "left" ? i : -i) : a[v] = v === "left" ? O(i) : c(i)) : (a.marginTop = O(d), a.marginLeft = O(i));
458
458
  }
459
459
  return a;
460
- }), i = () => {
461
- if (n() || e.dot)
462
- return m("div", {
460
+ }), r = () => {
461
+ if (o() || e.dot)
462
+ return h("div", {
463
463
  class: Oe([e.position, {
464
464
  dot: e.dot,
465
- fixed: !!t.default
465
+ fixed: !!n.default
466
466
  }]),
467
467
  style: s.value
468
- }, [o()]);
468
+ }, [t()]);
469
469
  };
470
470
  return () => {
471
- if (t.default) {
471
+ if (n.default) {
472
472
  const {
473
473
  tag: a
474
474
  } = e;
475
- return m(a, {
475
+ return h(a, {
476
476
  class: Oe("wrapper")
477
477
  }, {
478
- default: () => [t.default(), i()]
478
+ default: () => [n.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 = F(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] = D("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) {
500
500
  return e.replace(/([a-zA-Z])(\d)/g, "$1-$2");
501
501
  }
502
502
  function Qt(e) {
503
- const t = {};
504
- return Object.keys(e).forEach((n) => {
505
- const o = Jt(zt(n));
506
- t[`--van-${o}`] = e[n];
507
- }), t;
503
+ const n = {};
504
+ return Object.keys(e).forEach((o) => {
505
+ const t = Jt(zt(o));
506
+ n[`--van-${t}`] = e[o];
507
+ }), n;
508
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 G(e = {}, n = {}) {
510
+ Object.keys(e).forEach((o) => {
511
+ e[o] !== n[o] && document.documentElement.style.setProperty(o, e[o]);
512
+ }), Object.keys(n).forEach((o) => {
513
+ e[o] || document.documentElement.style.removeProperty(o);
514
514
  });
515
515
  }
516
- x({
516
+ S({
517
517
  name: Xe,
518
518
  props: qt,
519
519
  setup(e, {
520
- slots: t
520
+ slots: n
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 = j(() => Qt(T({}, e.themeVars, e.theme === "dark" ? e.themeVarsDark : e.themeVarsLight)));
523
+ if (pe) {
524
+ const t = () => {
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
+ I(() => e.theme, (s, r) => {
530
+ r && c(r), t();
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(t), ee(c), Ae(c), I(o, (s, r) => {
534
+ e.themeVarsScope === "global" && G(s, r);
535
+ }), I(() => e.themeVarsScope, (s, r) => {
536
+ r === "global" && G({}, o.value), s === "global" && G(o.value, {});
537
+ }), e.themeVarsScope === "global" && G(o.value, {});
538
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 t;
547
+ return [(t = n.default) == null ? void 0 : t.call(n)];
548
548
  }
549
549
  });
550
550
  }
551
551
  });
552
- const [en, Ie] = $("icon"), tn = (e) => e?.includes("/"), nn = {
552
+ const [en, Ie] = D("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
561
561
  };
562
- var on = x({
562
+ var on = S({
563
563
  name: en,
564
564
  props: nn,
565
565
  setup(e, {
566
- slots: t
566
+ slots: n
567
567
  }) {
568
- const n = ct(Ze, null), o = R(() => e.classPrefix || n?.iconPrefix || Ie());
568
+ const o = ut(Ze, null), t = j(() => e.classPrefix || o?.iconPrefix || Ie());
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, R({
579
579
  dot: s,
580
- tag: l,
581
- class: [o.value, v ? "" : `${o.value}-${i}`],
580
+ tag: c,
581
+ class: [t.value, g ? "" : `${t.value}-${r}`],
582
582
  style: {
583
- color: u,
584
- fontSize: S(a)
583
+ color: d,
584
+ fontSize: O(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", {
589
+ var m;
590
+ return [(m = n.default) == null ? void 0 : m.call(n), g && h("img", {
591
591
  class: Ie("image"),
592
- src: i
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 = F(on), [ln, U] = D("loading"), an = Array(12).fill(null).map((e, n) => h("i", {
600
+ class: U("line", String(n + 1))
601
+ }, null)), sn = h("svg", {
602
+ class: U("circular"),
603
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 = S({
618
+ name: ln,
619
+ props: un,
620
620
  setup(e, {
621
- slots: t
621
+ slots: n
622
622
  }) {
623
- const n = R(() => I({
623
+ const o = j(() => T({
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
630
- }, [t.icon ? t.icon() : s]);
631
- }, l = () => {
625
+ }, Pt(e.size))), t = () => {
626
+ const s = e.type === "spinner" ? an : sn;
627
+ return h("span", {
628
+ class: U("spinner", e.type),
629
+ style: o.value
630
+ }, [n.icon ? n.icon() : s]);
631
+ }, c = () => {
632
632
  var s;
633
- if (t.default)
634
- return m("span", {
635
- class: Y("text"),
633
+ if (n.default)
634
+ return h("span", {
635
+ class: U("text"),
636
636
  style: {
637
- fontSize: S(e.textSize),
637
+ fontSize: O(e.textSize),
638
638
  color: (s = e.textColor) != null ? s : e.color
639
639
  }
640
- }, [t.default()]);
640
+ }, [n.default()]);
641
641
  };
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
+ }, [t(), c()]);
654
654
  };
655
655
  }
656
656
  });
657
- const qe = A(un), rn = {
657
+ const qe = F(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: Q,
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
- function dn(e, t) {
686
- return e > t ? "horizontal" : t > e ? "vertical" : "";
685
+ function dn(e, n) {
686
+ return e > n ? "horizontal" : n > 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), n = p(0), o = p(0), t = p(0), c = p(0), s = p(0), r = p(""), a = p(!0), i = () => r.value === "vertical", d = () => r.value === "horizontal", g = () => {
690
+ o.value = 0, t.value = 0, c.value = 0, s.value = 0, r.value = "", a.value = !0;
691
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 x = E.touches[0];
695
+ o.value = (x.clientX < 0 ? 0 : x.clientX) - e.value, t.value = x.clientY - n.value, c.value = Math.abs(o.value), s.value = Math.abs(t.value);
696
+ const k = 10;
697
+ (!r.value || c.value < k && s.value < k) && (r.value = dn(c.value, s.value)), a.value && (c.value > ke || s.value > ke) && (a.value = !1);
698
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, n.value = E.touches[0].clientY;
701
701
  },
702
- reset: v,
702
+ reset: g,
703
703
  startX: e,
704
- startY: t,
705
- deltaX: n,
706
- deltaY: o,
707
- offsetX: l,
704
+ startY: n,
705
+ deltaX: o,
706
+ deltaY: t,
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;
715
+ let H = 0;
716
716
  const Te = "van-overflow-hidden";
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,
717
+ function fn(e, n) {
718
+ const o = Je(), t = "01", c = "10", s = (g) => {
719
+ o.move(g);
720
+ const m = o.deltaY.value > 0 ? c : t, v = Ye(
721
+ g.target,
722
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: x, scrollTop: k } = v;
724
+ let B = "11";
725
+ k === 0 ? B = x >= E ? "00" : "01" : k + x >= E && (B = "10"), B !== "11" && o.isVertical() && !(parseInt(B, 2) & parseInt(m, 2)) && Ce(g, !0);
726
+ }, r = () => {
727
+ document.addEventListener("touchstart", o.start), document.addEventListener("touchmove", s, { passive: !1 }), H || document.body.classList.add(Te), H++;
728
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(Te));
730
+ }, i = () => n() && r(), d = () => n() && a();
731
+ He(i), ee(d), Ae(d), I(n, (g) => {
732
+ g ? r() : a();
733
733
  });
734
734
  }
735
735
  function Qe(e) {
736
- const t = g(!1);
737
- return k(
736
+ const n = p(!1);
737
+ return I(
738
738
  e,
739
- (n) => {
740
- n && (t.value = n);
739
+ (o) => {
740
+ o && (n.value = o);
741
741
  },
742
742
  { immediate: !0 }
743
- ), (n) => () => t.value ? n() : null;
743
+ ), (o) => () => n.value ? o() : null;
744
744
  }
745
745
  const Pe = () => {
746
746
  var e;
747
- const { scopeId: t } = ((e = ge()) == null ? void 0 : e.vnode) || {};
748
- return t ? { [t]: "" } : null;
749
- }, [mn, vn] = $("overlay"), hn = {
747
+ const { scopeId: n } = ((e = ye()) == null ? void 0 : e.vnode) || {};
748
+ return n ? { [n]: "" } : null;
749
+ }, [vn, mn] = D("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: Q,
754
+ lockScroll: A,
755
+ lazyRender: A,
756
756
  customStyle: Object,
757
757
  teleport: [String, Object]
758
758
  };
759
- var gn = x({
760
- name: mn,
759
+ var gn = S({
760
+ name: vn,
761
761
  inheritAttrs: !1,
762
762
  props: hn,
763
763
  setup(e, {
764
- attrs: t,
765
- slots: n
764
+ attrs: 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 t = 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 = T($t(e.zIndex), e.customStyle);
772
+ return $(e.duration) && (i.animationDuration = `${e.duration}s`), Ne(h("div", R({
773
+ ref: t,
774
+ style: i,
775
+ class: [mn(), e.className]
776
+ }, n), [(a = o.default) == null ? void 0 : a.call(o)]), [[Re, e.show]]);
777
777
  });
778
- return pe("touchmove", s, {
779
- target: o
778
+ return Ee("touchmove", s, {
779
+ target: t
780
780
  }), () => {
781
- const a = m(Ve, {
781
+ const a = h(Ve, {
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(Le, {
788
788
  to: e.teleport
789
789
  }, {
790
790
  default: () => [a]
@@ -792,264 +792,264 @@ var gn = x({
792
792
  };
793
793
  }
794
794
  });
795
- const yn = A(gn), bn = I({}, rn, {
795
+ const yn = F(gn), pn = T({}, 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");
808
- var En = x({
809
- name: pn,
807
+ }), [bn, $e] = D("popup");
808
+ var En = S({
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
- emit: t,
815
- attrs: n,
816
- slots: o
814
+ emit: n,
815
+ attrs: o,
816
+ slots: t
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 = j(() => {
820
+ const y = {
821
+ zIndex: r.value
822
822
  };
823
- if (P(e.duration)) {
824
- const T = e.position === "center" ? "animationDuration" : "transitionDuration";
825
- h[T] = `${e.duration}s`;
823
+ if ($(e.duration)) {
824
+ const P = e.position === "center" ? "animationDuration" : "transitionDuration";
825
+ y[P] = `${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(), n("open"));
830
+ }, m = () => {
831
+ c && Mt(e.beforeClose, {
832
832
  done() {
833
- l = !1, t("close"), t("update:show", !1);
833
+ c = !1, n("close"), n("update:show", !1);
834
834
  }
835
835
  });
836
- }, d = (h) => {
837
- t("clickOverlay", h), e.closeOnClickOverlay && f();
838
- }, b = () => {
836
+ }, v = (y) => {
837
+ n("clickOverlay", y), e.closeOnClickOverlay && m();
838
+ }, E = () => {
839
839
  if (e.overlay) {
840
- const h = I({
840
+ const y = T({
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, R(y, Pe(), {
850
+ onClick: v
851
851
  }), {
852
- default: o["overlay-content"]
852
+ default: t["overlay-content"]
853
853
  });
854
854
  }
855
- }, C = (h) => {
856
- t("clickCloseIcon", h), f();
857
- }, B = () => {
855
+ }, x = (y) => {
856
+ n("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: x
866
866
  }, null);
867
867
  };
868
- let w;
869
- const oe = () => {
870
- w && clearTimeout(w), w = setTimeout(() => {
871
- t("opened");
868
+ let B;
869
+ const le = () => {
870
+ B && clearTimeout(B), B = setTimeout(() => {
871
+ n("opened");
872
872
  });
873
- }, ae = () => t("closed"), _ = (h) => t("keydown", h), r = c(() => {
874
- var h;
873
+ }, ae = () => n("closed"), W = (y) => n("keydown", y), f = i(() => {
874
+ var y;
875
875
  const {
876
- destroyOnClose: T,
876
+ destroyOnClose: P,
877
877
  round: se,
878
- position: W,
878
+ position: K,
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 && P))
884
+ return Ne(h("div", R({
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
890
  round: se,
891
- [W]: W
891
+ [K]: K
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: W
897
+ }, o, Pe()), [(y = t.default) == null ? void 0 : y.call(t), k()]), [[Re, we]]);
898
+ }), b = () => {
899
899
  const {
900
- position: h,
901
- transition: T,
900
+ position: y,
901
+ transition: P,
902
902
  transitionAppear: se
903
- } = e, W = h === "center" ? "van-fade" : `van-popup-slide-${h}`;
904
- return m(Ve, {
905
- name: T || W,
903
+ } = e, K = y === "center" ? "van-fade" : `van-popup-slide-${y}`;
904
+ return h(Ve, {
905
+ name: P || K,
906
906
  appear: se,
907
- onAfterEnter: oe,
907
+ onAfterEnter: le,
908
908
  onAfterLeave: ae
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(() => {
915
- var T;
916
- (T = a.value) == null || T.focus();
917
- })), !h && l && (l = !1, t("close"));
913
+ return I(() => e.show, (y) => {
914
+ y && !c && (g(), o.tabindex === 0 && me(() => {
915
+ var P;
916
+ (P = a.value) == null || P.focus();
917
+ })), !y && c && (c = !1, n("close"));
918
918
  }), We({
919
919
  popupRef: a
920
- }), fn(a, () => e.show && e.lockScroll), pe("popstate", () => {
921
- e.closeOnPopstate && (f(), s = !1);
920
+ }), fn(a, () => e.show && e.lockScroll), Ee("popstate", () => {
921
+ e.closeOnPopstate && (m(), s = !1);
922
+ }), te(() => {
923
+ e.show && g();
924
+ }), he(() => {
925
+ s && (n("update:show", !0), s = !1);
922
926
  }), ee(() => {
923
- e.show && v();
924
- }), ve(() => {
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, {
927
+ e.show && e.teleport && (m(), s = !0);
928
+ }), Fe(Yt, () => e.show), () => e.teleport ? h(Le, {
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 = F(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] = D("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: Q,
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: Q,
957
957
  overlayStyle: Object,
958
958
  closeOnClick: Boolean,
959
959
  closeOnClickOverlay: Boolean,
960
- zIndex: p
960
+ zIndex: C
961
961
  };
962
- var et = x({
962
+ var et = S({
963
963
  name: xn,
964
964
  props: Sn,
965
965
  emits: ["update:show"],
966
966
  setup(e, {
967
- emit: t,
968
- slots: n
967
+ emit: n,
968
+ slots: o
969
969
  }) {
970
- let o, l = !1;
970
+ let t, 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) => n("update:show", m), a = () => {
975
+ e.closeOnClick && r(!1);
976
+ }, i = () => clearTimeout(t), 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: x,
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: x
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 ($(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 I(() => [e.show, e.forbidClick], s), I(() => [e.show, e.type, e.message, e.duration], () => {
1016
+ i(), e.show && e.duration > 0 && (t = setTimeout(() => {
1017
+ r(!1);
1018
1018
  }, e.duration));
1019
- }), ee(s), ze(s), () => m(Cn, N({
1020
- class: [F([e.position, e.wordBreak === "normal" ? "break-normal" : e.wordBreak, {
1019
+ }), te(s), ze(s), () => h(Cn, R({
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
+ }), n = (c) => {
1036
+ e.show = c;
1037
+ }, o = (c) => {
1038
+ T(e, c, { transitionAppear: !0 }), n(!0);
1039
+ }, t = () => n(!1);
1040
+ return We({ open: o, close: t, toggle: n }), {
1041
+ open: o,
1042
+ close: t,
1043
1043
  state: e,
1044
- toggle: t
1044
+ toggle: n
1045
1045
  };
1046
1046
  }
1047
1047
  function On(e) {
1048
- const t = ut(e), n = document.createElement("div");
1049
- return document.body.appendChild(n), {
1050
- instance: t.mount(n),
1048
+ const n = it(e), o = document.createElement("div");
1049
+ return document.body.appendChild(o), {
1050
+ instance: n.mount(o),
1051
1051
  unmount() {
1052
- t.unmount(), document.body.removeChild(n);
1052
+ n.unmount(), document.body.removeChild(o);
1053
1053
  }
1054
1054
  };
1055
1055
  }
@@ -1074,10 +1074,10 @@ const In = {
1074
1074
  closeOnClick: !1,
1075
1075
  closeOnClickOverlay: !1
1076
1076
  };
1077
- let G = [], Tn = !1, De = I({}, In);
1077
+ let q = [], Tn = !1, De = T({}, In);
1078
1078
  const Pn = /* @__PURE__ */ new Map();
1079
1079
  function $n(e) {
1080
- return ne(e) ? e : {
1080
+ return oe(e) ? e : {
1081
1081
  message: e
1082
1082
  };
1083
1083
  }
@@ -1086,42 +1086,42 @@ function Dn() {
1086
1086
  instance: e
1087
1087
  } = On({
1088
1088
  setup() {
1089
- const t = g(""), {
1090
- open: n,
1091
- state: o,
1092
- close: l,
1089
+ const n = p(""), {
1090
+ open: o,
1091
+ state: t,
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, R(t, {
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,
1104
- message: t
1099
+ return I(n, (i) => {
1100
+ t.message = i;
1101
+ }), ye().render = a, {
1102
+ open: o,
1103
+ close: c,
1104
+ message: n
1105
1105
  };
1106
1106
  }
1107
1107
  });
1108
1108
  return e;
1109
1109
  }
1110
1110
  function zn() {
1111
- if (!G.length || Tn) {
1111
+ if (!q.length || Tn) {
1112
1112
  const e = Dn();
1113
- G.push(e);
1113
+ q.push(e);
1114
1114
  }
1115
- return G[G.length - 1];
1115
+ return q[q.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 n = zn(), o = $n(e);
1121
+ return n.open(T({}, De, Pn.get(o.type || De.type), o)), n;
1122
1122
  }
1123
- A(et);
1124
- const [Fn, M, Vn] = $("pull-refresh"), tt = 50, Ln = ["pulling", "loosing", "success"], Nn = {
1123
+ F(et);
1124
+ const [Fn, Y, Vn] = D("pull-refresh"), tt = 50, Ln = ["pulling", "loosing", "success"], Nn = {
1125
1125
  disabled: Boolean,
1126
1126
  modelValue: Boolean,
1127
1127
  headHeight: ce(tt),
@@ -1129,106 +1129,106 @@ const [Fn, M, Vn] = $("pull-refresh"), tt = 50, Ln = ["pulling", "loosing", "suc
1129
1129
  pullingText: String,
1130
1130
  loosingText: String,
1131
1131
  loadingText: String,
1132
- pullDistance: p,
1132
+ pullDistance: C,
1133
1133
  successDuration: ce(500),
1134
1134
  animationDuration: ce(300)
1135
1135
  };
1136
- var Rn = x({
1136
+ var Rn = S({
1137
1137
  name: Fn,
1138
1138
  props: Nn,
1139
1139
  emits: ["change", "refresh", "update:modelValue"],
1140
1140
  setup(e, {
1141
- emit: t,
1142
- slots: n
1141
+ emit: n,
1142
+ slots: o
1143
1143
  }) {
1144
- let o;
1145
- const l = g(), s = g(), i = Ot(l), a = he({
1144
+ let t;
1145
+ const c = p(), s = p(), r = Ot(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", n("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`] || Vn(f);
1168
+ }, x = () => {
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 Ln.includes(f) && y.push(h("div", {
1179
+ class: Y("text")
1180
+ }, [E()])), f === "loading" && y.push(h(qe, {
1181
+ class: Y("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
+ }, B = (f) => {
1190
+ t = It(r.value) === 0, t && (a.duration = 0, i.start(f));
1191
+ }, le = (f) => {
1192
+ g() && B(f);
1193
+ }, ae = (f) => {
1194
+ if (g()) {
1195
+ t || B(f);
1196
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), t && 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
+ }, W = () => {
1202
+ t && i.deltaY.value && g() && (a.duration = +e.animationDuration, a.status === "loosing" ? (v(+e.headHeight, !0), n("update:modelValue", !0), me(() => n("refresh"))) : v(0));
1203
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 I(() => e.modelValue, (f) => {
1205
+ a.duration = +e.animationDuration, f ? v(+e.headHeight, !0) : o.success || e.successText ? k() : v(0, !1);
1206
+ }), Ee("touchmove", ae, {
1207
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: Y()
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: Y("track"),
1220
+ style: b,
1221
+ onTouchstartPassive: le,
1222
+ onTouchend: W,
1223
+ onTouchcancel: W
1224
+ }, [h("div", {
1225
+ class: Y("head"),
1226
+ style: d()
1227
+ }, [x()]), (f = o.default) == null ? void 0 : f.call(o)])]);
1228
1228
  };
1229
1229
  }
1230
1230
  });
1231
- const jn = A(Rn), Hn = {
1231
+ const jn = F(Rn), Hn = {
1232
1232
  key: 0,
1233
1233
  class: "mx-app-page-header"
1234
1234
  }, Mn = {
@@ -1237,7 +1237,7 @@ const jn = A(Rn), Hn = {
1237
1237
  }, Yn = { class: "mx-app-page-header-center" }, Un = { class: "mx-app-page-title" }, _n = { class: "mx-app-page-header-right" }, Wn = {
1238
1238
  key: 1,
1239
1239
  class: "mx-app-page-search"
1240
- }, Kn = { class: "search-content" }, Xn = /* @__PURE__ */ x({
1240
+ }, Kn = { class: "search-content" }, Xn = /* @__PURE__ */ S({
1241
1241
  __name: "index",
1242
1242
  props: {
1243
1243
  title: { default: "" },
@@ -1254,86 +1254,153 @@ const jn = A(Rn), Hn = {
1254
1254
  disabled: { type: Boolean }
1255
1255
  },
1256
1256
  emits: ["back", "refresh"],
1257
- setup(e, { emit: t }) {
1258
- const n = t, o = g(0), l = g(!1), s = () => {
1257
+ setup(e, { emit: n }) {
1258
+ const o = n, t = p(0), c = p(!1), s = () => {
1259
1259
  setTimeout(() => {
1260
- An("刷新成功"), l.value = !1, o.value++;
1260
+ An("刷新成功"), c.value = !1, t.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) => (z(), X("div", {
1266
1266
  id: "id",
1267
- class: U([
1267
+ class: _([
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 ? (z(), X("header", Hn, [
1275
+ e.showBack ? (z(), X("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
+ ])) : ue("", !0),
1283
+ l("div", Yn, [
1284
+ L(i.$slots, "title", {}, () => [
1285
+ l("span", Un, 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", _n, [
1289
+ L(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
+ ])) : ue("", !0),
1292
+ e.showSearch ? (z(), X("div", Wn, [
1293
+ l("div", Kn, [
1294
+ L(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
+ ])) : ue("", !0),
1298
+ l("div", {
1299
+ class: _(["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(N(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: J(() => [
1312
+ l("p", null, "刷新次数: " + u(t.value), 1),
1313
+ l("p", null, "刷新次数: " + u(t.value), 1),
1314
+ l("p", null, "刷新次数: " + u(t.value), 1),
1315
+ l("p", null, "刷新次数: " + u(t.value), 1),
1316
+ l("p", null, "刷新次数: " + u(t.value), 1),
1317
+ l("p", null, "刷新次数: " + u(t.value), 1),
1318
+ l("p", null, "刷新次数: " + u(t.value), 1),
1319
+ l("p", null, "刷新次数: " + u(t.value), 1),
1320
+ l("p", null, "刷新次数: " + u(t.value), 1),
1321
+ l("p", null, "刷新次数: " + u(t.value), 1),
1322
+ l("p", null, "刷新次数: " + u(t.value), 1),
1323
+ l("p", null, "刷新次数: " + u(t.value), 1),
1324
+ l("p", null, "刷新次数: " + u(t.value), 1),
1325
+ l("p", null, "刷新次数: " + u(t.value), 1),
1326
+ l("p", null, "刷新次数: " + u(t.value), 1),
1327
+ l("p", null, "刷新次数: " + u(t.value), 1),
1328
+ l("p", null, "刷新次数: " + u(t.value), 1),
1329
+ l("p", null, "刷新次数: " + u(t.value), 1),
1330
+ l("p", null, "刷新次数: " + u(t.value), 1),
1331
+ l("p", null, "刷新次数: " + u(t.value), 1),
1332
+ l("p", null, "刷新次数: " + u(t.value), 1),
1333
+ l("p", null, "刷新次数: " + u(t.value), 1),
1334
+ l("p", null, "刷新次数: " + u(t.value), 1),
1335
+ l("p", null, "刷新次数: " + u(t.value), 1),
1336
+ l("p", null, "刷新次数: " + u(t.value), 1),
1337
+ l("p", null, "刷新次数: " + u(t.value), 1),
1338
+ l("p", null, "刷新次数: " + u(t.value), 1),
1339
+ l("p", null, "刷新次数: " + u(t.value), 1),
1340
+ l("p", null, "刷新次数: " + u(t.value), 1),
1341
+ l("p", null, "刷新次数: " + u(t.value), 1),
1342
+ l("p", null, "刷新次数: " + u(t.value), 1),
1343
+ l("p", null, "刷新次数: " + u(t.value), 1),
1344
+ l("p", null, "刷新次数: " + u(t.value), 1),
1345
+ l("p", null, "刷新次数: " + u(t.value), 1),
1346
+ l("p", null, "刷新次数: " + u(t.value), 1),
1347
+ l("p", null, "刷新次数: " + u(t.value), 1),
1348
+ l("p", null, "刷新次数: " + u(t.value), 1),
1349
+ l("p", null, "刷新次数: " + u(t.value), 1),
1350
+ l("p", null, "刷新次数: " + u(t.value), 1),
1351
+ l("p", null, "刷新次数: " + u(t.value), 1),
1352
+ l("p", null, "刷新次数: " + u(t.value), 1),
1353
+ l("p", null, "刷新次数: " + u(t.value), 1),
1354
+ l("p", null, "刷新次数: " + u(t.value), 1),
1355
+ l("p", null, "刷新次数: " + u(t.value), 1),
1356
+ l("p", null, "刷新次数: " + u(t.value), 1),
1357
+ l("p", null, "刷新次数: " + u(t.value), 1),
1358
+ l("p", null, "刷新次数: " + u(t.value), 1),
1359
+ l("p", null, "刷新次数: " + u(t.value), 1),
1360
+ l("p", null, "刷新次数: " + u(t.value), 1),
1361
+ l("p", null, "刷新次数: " + u(t.value), 1),
1362
+ l("p", null, "刷新次数: " + u(t.value), 1),
1363
+ l("p", null, "刷新次数: " + u(t.value), 1),
1364
+ l("p", null, "刷新次数: " + u(t.value), 1),
1365
+ l("p", null, "刷新次数: " + u(t.value), 1),
1366
+ l("p", null, "刷新次数: " + u(t.value), 1),
1367
+ l("p", null, "刷新次数: " + u(t.value), 1),
1368
+ l("p", null, "刷新次数: " + u(t.value), 1),
1369
+ l("p", null, "刷新次数: " + u(t.value), 1),
1370
+ l("p", null, "刷新次数: " + u(t.value), 1),
1371
+ l("p", null, "刷新次数: " + u(t.value), 1),
1372
+ l("p", null, "刷新次数: " + u(t.value), 1),
1373
+ l("p", null, "刷新次数: " + u(t.value), 1),
1374
+ l("p", null, "刷新次数: " + u(t.value), 1),
1375
+ l("p", null, "刷新次数: " + u(t.value), 1),
1376
+ l("p", null, "刷新次数: " + u(t.value), 1),
1377
+ l("p", null, "刷新次数: " + u(t.value), 1),
1378
+ l("p", null, "刷新次数: " + u(t.value), 1),
1379
+ l("p", null, "刷新次数: " + u(t.value), 1)
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__ */ ne(Xn, [["__scopeId", "data-v-4ad76a0d"]]), Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1320
1387
  __proto__: null
1321
1388
  }, Symbol.toStringTag, { value: "Module" })), Gn = {
1322
- Button: vt,
1389
+ Button: mt,
1323
1390
  Input: gt,
1324
- Card: bt,
1391
+ Card: pt,
1325
1392
  AppPage: Zn
1326
1393
  }, eo = {
1327
1394
  install: (e) => {
1328
- Object.values(Gn).forEach((t) => {
1329
- e.component(t.name, t);
1395
+ Object.values(Gn).forEach((n) => {
1396
+ e.component(n.name, n);
1330
1397
  });
1331
1398
  }
1332
1399
  };
1333
1400
  export {
1334
1401
  Zn as AppPage,
1335
- vt as Button,
1336
- bt as Card,
1402
+ mt as Button,
1403
+ pt as Card,
1337
1404
  gt as Input,
1338
1405
  Gn as components,
1339
1406
  eo as default,