y-design-ssr 1.1.7 → 1.1.9

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.
@@ -68,6 +68,10 @@ declare const Dialog: import("../utils/withInstall").WithInstall<import("vue").D
68
68
  type: StringConstructor;
69
69
  default: string;
70
70
  };
71
+ duration: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
71
75
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:modelValue" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
72
76
  modelValue: {
73
77
  type: BooleanConstructor;
@@ -137,8 +141,13 @@ declare const Dialog: import("../utils/withInstall").WithInstall<import("vue").D
137
141
  type: StringConstructor;
138
142
  default: string;
139
143
  };
144
+ duration: {
145
+ type: NumberConstructor;
146
+ default: number;
147
+ };
140
148
  }>>, {
141
149
  title: string;
150
+ duration: number;
142
151
  modelValue: boolean;
143
152
  message: string;
144
153
  teleport: string;
@@ -1,11 +1,11 @@
1
- import { ref as D, reactive as P, defineComponent as x, onMounted as se, onUnmounted as de, watch as ee, createVNode as r, Transition as O, withDirectives as N, vShow as R, computed as j, Teleport as fe, Fragment as te, createApp as T, h as ne, mergeProps as me, resolveDirective as H, isVNode as pe } from "vue";
2
- const le = (e) => (t) => Object.prototype.toString.call(t) === `[object ${e}]`, ge = le("Function"), ye = le("Promise"), A = (e, t) => t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce((o, a) => o + A(e, a), "") : Object.keys(t).reduce(
1
+ import { ref as D, reactive as P, defineComponent as x, onMounted as de, onUnmounted as fe, watch as ee, createVNode as r, Transition as O, withDirectives as N, vShow as R, computed as j, Teleport as me, Fragment as te, createApp as T, h as ne, mergeProps as pe, resolveDirective as H, isVNode as ge } from "vue";
2
+ const le = (e) => (t) => Object.prototype.toString.call(t) === `[object ${e}]`, ye = le("Function"), be = le("Promise"), A = (e, t) => t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce((o, a) => o + A(e, a), "") : Object.keys(t).reduce(
3
3
  (o, a) => o + (t[a] ? A(e, a) : ""),
4
4
  ""
5
- ) : "", be = (e) => (t, o) => {
6
- let a = t, u = o;
7
- return a && typeof a != "string" && (u = a, a = ""), a = a ? `${e}__${a}` : e, `${a}${A(a, u)}`;
8
- }, Se = () => (e, t) => t ? `${A(`y-${e}`, t)}` : `y-${e}`, ve = {
5
+ ) : "", Se = (e) => (t, o) => {
6
+ let a = t, c = o;
7
+ return a && typeof a != "string" && (c = a, a = ""), a = a ? `${e}__${a}` : e, `${a}${A(a, c)}`;
8
+ }, ve = () => (e, t) => t ? `${A(`y-${e}`, t)}` : `y-${e}`, ke = {
9
9
  "pull-refresh": {
10
10
  pulling: "下拉刷新...",
11
11
  loosing: "释放刷新...",
@@ -19,12 +19,12 @@ const le = (e) => (t) => Object.prototype.toString.call(t) === `[object ${e}]`,
19
19
  };
20
20
  D("zh-CN");
21
21
  P({
22
- "zh-CN": ve
22
+ "zh-CN": ke
23
23
  });
24
24
  const w = (e) => {
25
25
  const t = `y-${e}`;
26
- return [t, be(t), Se()];
27
- }, y = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, ke = (e) => {
26
+ return [t, Se(t), ve()];
27
+ }, y = (e) => isNaN(Number(e)) && typeof e == "string" ? e : `${e}px`, $e = (e) => {
28
28
  switch (e) {
29
29
  case "top":
30
30
  return "column-reverse";
@@ -37,7 +37,7 @@ const w = (e) => {
37
37
  default:
38
38
  return "column";
39
39
  }
40
- }, [$e, Ce, he] = w("mask"), xe = {
40
+ }, [Ce, he, xe] = w("mask"), we = {
41
41
  // 控制显示
42
42
  modelValue: {
43
43
  type: Boolean,
@@ -74,63 +74,63 @@ const w = (e) => {
74
74
  }
75
75
  }, S = P([]);
76
76
  let J = 0;
77
- const we = /* @__PURE__ */ x({
78
- name: $e,
79
- props: xe,
77
+ const Be = /* @__PURE__ */ x({
78
+ name: Ce,
79
+ props: we,
80
80
  emits: ["update:modelValue"],
81
81
  setup(e, {
82
82
  slots: t
83
83
  }) {
84
84
  const o = D("");
85
- se(() => {
85
+ de(() => {
86
86
  o.value = `mask${J}`, J += 1, a(e.modelValue, !0);
87
- }), de(() => {
88
- const l = S.findIndex((c) => c._id === o.value);
87
+ }), fe(() => {
88
+ const l = S.findIndex((u) => u._id === o.value);
89
89
  l >= 0 && S.splice(l, 1);
90
90
  }), ee(() => e.modelValue, (l) => {
91
91
  a(l);
92
92
  });
93
- const a = (l, c) => {
93
+ const a = (l, u) => {
94
94
  l ? (S.unshift({
95
95
  _id: o.value,
96
96
  _state: l
97
- }), S.length > 1 && (S[1]._state = !1)) : c || (S.splice(0, 1), S.length > 0 && (S[0]._state = !0));
98
- }, u = () => {
97
+ }), S.length > 1 && (S[1]._state = !1)) : u || (S.splice(0, 1), S.length > 0 && (S[0]._state = !0));
98
+ }, c = () => {
99
99
  let l = !1;
100
- for (let c = 0; c < S.length; c++)
101
- S[c]._id === o.value && (l = S[c]._state);
100
+ for (let u = 0; u < S.length; u++)
101
+ S[u]._id === o.value && (l = S[u]._state);
102
102
  return {
103
103
  _state: l
104
104
  };
105
105
  }, d = (l) => {
106
106
  const {
107
- lockScroll: c
107
+ lockScroll: u
108
108
  } = e;
109
- c && (l.preventDefault(), l.stopPropagation());
109
+ u && (l.preventDefault(), l.stopPropagation());
110
110
  };
111
111
  return () => {
112
112
  const {
113
113
  customClass: l,
114
- duration: c,
114
+ duration: u,
115
115
  zIndex: p,
116
116
  customStyle: g,
117
117
  onAfterLeave: m
118
118
  } = e, {
119
119
  _state: i
120
- } = u();
120
+ } = c();
121
121
  return r(O, {
122
- name: he("animation", "fade"),
122
+ name: xe("animation", "fade"),
123
123
  onAfterLeave: m
124
124
  }, {
125
125
  default: () => {
126
126
  var n;
127
127
  return [N(r("div", {
128
128
  style: {
129
- animationDuration: `${c}ms`,
129
+ animationDuration: `${u}ms`,
130
130
  zIndex: p,
131
131
  ...g
132
132
  },
133
- class: [Ce(), l],
133
+ class: [he(), l],
134
134
  onTouchmove: d
135
135
  }, [(n = t.default) == null ? void 0 : n.call(t)]), [[R, i]])];
136
136
  }
@@ -145,7 +145,7 @@ function B(e) {
145
145
  a && o.component(a, e);
146
146
  }, t;
147
147
  }
148
- const K = B(we), [Be, Q, X] = w("popup"), _e = {
148
+ const K = B(Be), [_e, Q, X] = w("popup"), Ne = {
149
149
  // 控制显示
150
150
  modelValue: {
151
151
  type: Boolean,
@@ -208,9 +208,9 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
208
208
  type: Number,
209
209
  default: 100
210
210
  }
211
- }, Ne = /* @__PURE__ */ x({
212
- name: Be,
213
- props: _e,
211
+ }, Ve = /* @__PURE__ */ x({
212
+ name: _e,
213
+ props: Ne,
214
214
  emits: ["clickMask", "update:modelValue"],
215
215
  setup(e, {
216
216
  slots: t,
@@ -219,11 +219,11 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
219
219
  const a = j(() => {
220
220
  const {
221
221
  position: l,
222
- borderRadius: c,
222
+ borderRadius: u,
223
223
  customStyle: p,
224
224
  duration: g,
225
225
  zIndex: m
226
- } = e, i = y(c);
226
+ } = e, i = y(u);
227
227
  let n = "0";
228
228
  switch (l) {
229
229
  case "top":
@@ -247,18 +247,18 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
247
247
  ...p,
248
248
  zIndex: m + 1
249
249
  };
250
- }), u = (l) => {
250
+ }), c = (l) => {
251
251
  o("clickMask", l), e.isCloseOnClickMask && (d.value = !1);
252
252
  }, d = j({
253
253
  get: () => e.modelValue,
254
254
  set: (l) => o("update:modelValue", l)
255
255
  });
256
- return ee(() => d.value, (l, c) => {
257
- l !== c && (l && e.lockScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
256
+ return ee(() => d.value, (l, u) => {
257
+ l !== u && (l && e.lockScroll ? document.body.style.overflow = "hidden" : document.body.style.overflow = "");
258
258
  }), () => {
259
259
  const {
260
260
  teleport: l,
261
- position: c,
261
+ position: u,
262
262
  customClass: p,
263
263
  duration: g,
264
264
  onAfterLeave: m,
@@ -267,7 +267,7 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
267
267
  maskCustomClass: f,
268
268
  maskCustomStyle: b
269
269
  } = e;
270
- return l ? r(fe, {
270
+ return l ? r(me, {
271
271
  to: l
272
272
  }, {
273
273
  default: () => [r(K, {
@@ -275,20 +275,20 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
275
275
  "onUpdate:modelValue": (s) => d.value = s,
276
276
  duration: g,
277
277
  lockScroll: i,
278
- onClick: u,
278
+ onClick: c,
279
279
  onAfterLeave: m,
280
280
  zIndex: n,
281
281
  customClass: f,
282
282
  customStyle: b
283
283
  }, null), r(O, {
284
- name: X("animation", `slide-${c}`)
284
+ name: X("animation", `slide-${u}`)
285
285
  }, {
286
286
  default: () => {
287
287
  var s;
288
288
  return [N(r("div", {
289
289
  style: a.value,
290
290
  class: [Q("content", {
291
- [c]: c
291
+ [u]: u
292
292
  }), p]
293
293
  }, [((s = t.default) == null ? void 0 : s.call(t)) || null]), [[R, d.value]])];
294
294
  }
@@ -298,20 +298,20 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
298
298
  "onUpdate:modelValue": (s) => d.value = s,
299
299
  duration: g,
300
300
  lockScroll: i,
301
- onClick: u,
301
+ onClick: c,
302
302
  onAfterLeave: m,
303
303
  zIndex: n,
304
304
  customClass: f,
305
305
  customStyle: b
306
306
  }, null), r(O, {
307
- name: X("animation", `slide-${c}`)
307
+ name: X("animation", `slide-${u}`)
308
308
  }, {
309
309
  default: () => {
310
310
  var s;
311
311
  return [N(r("div", {
312
312
  style: a.value,
313
313
  class: [Q("content", {
314
- [c]: c
314
+ [u]: u
315
315
  }), p]
316
316
  }, [((s = t.default) == null ? void 0 : s.call(t)) || null]), [[R, d.value]])];
317
317
  }
@@ -319,8 +319,8 @@ const K = B(we), [Be, Q, X] = w("popup"), _e = {
319
319
  };
320
320
  }
321
321
  });
322
- const Ve = B(Ne), [Ie, z] = w("icon"), ze = (e) => new RegExp(/\.(https|png|jpg|gif|jpeg|webp|apng)$/).test(e.toLowerCase()), Ae = /* @__PURE__ */ x({
323
- name: Ie,
322
+ const Ie = B(Ve), [ze, z] = w("icon"), Ae = (e) => new RegExp(/\.(https|png|jpg|gif|jpeg|webp|apng)$/).test(e.toLowerCase()), Le = /* @__PURE__ */ x({
323
+ name: ze,
324
324
  props: {
325
325
  dot: {
326
326
  type: Boolean,
@@ -371,7 +371,7 @@ const Ve = B(Ne), [Ie, z] = w("icon"), ze = (e) => new RegExp(/\.(https|png|jpg|
371
371
  slots: t,
372
372
  emit: o
373
373
  }) {
374
- const a = ze(e.name), u = () => ({
374
+ const a = Ae(e.name), c = () => ({
375
375
  fontSize: y(e.size),
376
376
  color: e.color
377
377
  }), d = (l) => {
@@ -380,7 +380,7 @@ const Ve = B(Ne), [Ie, z] = w("icon"), ze = (e) => new RegExp(/\.(https|png|jpg|
380
380
  return () => {
381
381
  const {
382
382
  name: l,
383
- classPrefix: c,
383
+ classPrefix: u,
384
384
  badge: p,
385
385
  dot: g,
386
386
  subColor: m,
@@ -388,8 +388,8 @@ const Ve = B(Ne), [Ie, z] = w("icon"), ze = (e) => new RegExp(/\.(https|png|jpg|
388
388
  tag: n
389
389
  } = e;
390
390
  return r(n, {
391
- class: `${c}${a ? "" : ` y-icon--${l}`}`,
392
- style: u(),
391
+ class: `${u}${a ? "" : ` y-icon--${l}`}`,
392
+ style: c(),
393
393
  onClick: d
394
394
  }, {
395
395
  default: () => {
@@ -417,8 +417,8 @@ const Ve = B(Ne), [Ie, z] = w("icon"), ze = (e) => new RegExp(/\.(https|png|jpg|
417
417
  };
418
418
  }
419
419
  });
420
- const Le = B(Ae), [Me, _, Oe] = w("button"), Re = /* @__PURE__ */ x({
421
- name: Me,
420
+ const Me = B(Le), [Oe, _, Re] = w("button"), je = /* @__PURE__ */ x({
421
+ name: Oe,
422
422
  props: {
423
423
  // 标签
424
424
  tag: {
@@ -486,17 +486,17 @@ const Le = B(Ae), [Me, _, Oe] = w("button"), Re = /* @__PURE__ */ x({
486
486
  slots: t,
487
487
  emit: o
488
488
  }) {
489
- const a = (u) => {
490
- o("click", u);
489
+ const a = (c) => {
490
+ o("click", c);
491
491
  };
492
492
  return () => {
493
493
  let {
494
- tag: u
494
+ tag: c
495
495
  } = e;
496
496
  const {
497
497
  radius: d,
498
498
  type: l,
499
- size: c,
499
+ size: u,
500
500
  disabled: p,
501
501
  shadow: g,
502
502
  block: m,
@@ -506,13 +506,13 @@ const Le = B(Ae), [Me, _, Oe] = w("button"), Re = /* @__PURE__ */ x({
506
506
  text: b,
507
507
  supplementText: s
508
508
  } = e, k = t.default ? t.default() : b;
509
- return u = l === "link" ? "a" : u, r(u, {
510
- class: [_([l, c, {
509
+ return c = l === "link" ? "a" : c, r(c, {
510
+ class: [_([l, u, {
511
511
  block: m,
512
512
  square: i,
513
513
  semicircle: n,
514
- disabled: p && u === "a"
515
- }, (l === "primary" || l === "secondary") && g ? `shadow_${g}` : "", f ? `${l}_danger` : "", p ? `${l}_disabled` : ""]), Oe("el", "clickable")],
514
+ disabled: p && c === "a"
515
+ }, (l === "primary" || l === "secondary") && g ? `shadow_${g}` : "", f ? `${l}_danger` : "", p ? `${l}_disabled` : ""]), Re("el", "clickable")],
516
516
  style: {
517
517
  borderRadius: y(d)
518
518
  },
@@ -535,7 +535,7 @@ const Le = B(Ae), [Me, _, Oe] = w("button"), Re = /* @__PURE__ */ x({
535
535
  };
536
536
  }
537
537
  });
538
- const Y = B(Re), [je, h] = w("loading"), De = {
538
+ const Y = B(je), [De, h] = w("loading"), Pe = {
539
539
  // Loading icon 的颜色
540
540
  color: {
541
541
  type: String,
@@ -595,8 +595,8 @@ const Y = B(Re), [je, h] = w("loading"), De = {
595
595
  default: "relative"
596
596
  }
597
597
  }, ae = /* @__PURE__ */ x({
598
- name: je,
599
- props: De,
598
+ name: De,
599
+ props: Pe,
600
600
  setup(e, {
601
601
  slots: t
602
602
  }) {
@@ -605,10 +605,10 @@ const Y = B(Re), [je, h] = w("loading"), De = {
605
605
  const {
606
606
  position: o,
607
607
  textLocation: a,
608
- bgColor: u,
608
+ bgColor: c,
609
609
  bgBorderRadius: d,
610
610
  size: l,
611
- padding: c,
611
+ padding: u,
612
612
  color: p,
613
613
  thick: g,
614
614
  direction: m,
@@ -625,10 +625,10 @@ const Y = B(Re), [je, h] = w("loading"), De = {
625
625
  [o]: o !== "relative"
626
626
  }),
627
627
  style: {
628
- flexDirection: ke(a),
629
- backgroundColor: u,
628
+ flexDirection: $e(a),
629
+ backgroundColor: c,
630
630
  borderRadius: y(d),
631
- padding: y(c)
631
+ padding: y(u)
632
632
  }
633
633
  }, [r("span", {
634
634
  class: h("icon-wrapper"),
@@ -662,17 +662,17 @@ const Y = B(Re), [je, h] = w("loading"), De = {
662
662
  }, [b])])]);
663
663
  };
664
664
  }
665
- }), Pe = (e, t) => {
665
+ }), Te = (e, t) => {
666
666
  const a = T({
667
667
  render: () => ne(ae, { ...e }, { ...t })
668
- }), u = document.createElement("div");
669
- return a.mount(u);
668
+ }), c = document.createElement("div");
669
+ return a.mount(c);
670
670
  }, Z = (e, t) => {
671
671
  t.value ? (e.classList.add("y-loading__wrap"), e.appendChild(e.instance.$el)) : (e.classList.remove("y-loading__wrap"), e.removeChild(e.instance.$el));
672
- }, Te = {
672
+ }, Fe = {
673
673
  getSSRProps: (e) => ({ ...e }),
674
674
  mounted: (e, t) => {
675
- e.instance = Pe({ ...e.customProps }, { ...e.customSlots }), t.value && Z(e, t);
675
+ e.instance = Te({ ...e.customProps }, { ...e.customSlots }), t.value && Z(e, t);
676
676
  },
677
677
  updated: (e, t) => {
678
678
  t.oldValue !== t.value && Z(e, t);
@@ -682,10 +682,10 @@ const Y = B(Re), [je, h] = w("loading"), De = {
682
682
  }
683
683
  };
684
684
  B(ae);
685
- function Fe(e) {
686
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !pe(e);
685
+ function Ue(e) {
686
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ge(e);
687
687
  }
688
- const [Ue, v] = w("dialog"), Ee = {
688
+ const [Ee, v] = w("dialog"), qe = {
689
689
  // 控制显示
690
690
  modelValue: {
691
691
  type: Boolean,
@@ -755,13 +755,18 @@ const [Ue, v] = w("dialog"), Ee = {
755
755
  teleport: {
756
756
  type: String,
757
757
  default: "body"
758
+ },
759
+ // 动画时长
760
+ duration: {
761
+ type: Number,
762
+ default: 300
758
763
  }
759
764
  }, oe = /* @__PURE__ */ x({
760
- name: Ue,
765
+ name: Ee,
761
766
  directives: {
762
- loading: Te
767
+ loading: Fe
763
768
  },
764
- props: Ee,
769
+ props: qe,
765
770
  emits: ["update:modelValue", "cancel", "confirm"],
766
771
  setup(e, {
767
772
  emit: t,
@@ -770,14 +775,14 @@ const [Ue, v] = w("dialog"), Ee = {
770
775
  const a = P({
771
776
  cancel: !1,
772
777
  confirm: !1
773
- }), u = (n) => {
778
+ }), c = (n) => {
774
779
  i.value = n;
775
780
  }, d = (n) => {
776
781
  var f;
777
- u(!1), (f = e.callback) == null || f.call(e, n);
782
+ c(!1), (f = e.callback) == null || f.call(e, n);
778
783
  }, l = (n) => {
779
784
  t("cancel", n, p("cancel"));
780
- }, c = (n) => {
785
+ }, u = (n) => {
781
786
  t("confirm", n, p("confirm"));
782
787
  }, p = (n) => {
783
788
  const {
@@ -785,10 +790,10 @@ const [Ue, v] = w("dialog"), Ee = {
785
790
  beforeClose: b
786
791
  } = e;
787
792
  if (f)
788
- if (ge(b)) {
793
+ if (ye(b)) {
789
794
  a[n] = !0;
790
795
  const s = b(n);
791
- ye(s) ? s.then(($) => {
796
+ be(s) ? s.then(($) => {
792
797
  g($, n);
793
798
  }).catch(($) => {
794
799
  throw new Error($);
@@ -816,12 +821,13 @@ const [Ue, v] = w("dialog"), Ee = {
816
821
  showCancelBtn: F,
817
822
  cancelButtonText: L,
818
823
  showConfirmBtn: U,
819
- confirmButtonText: ce,
824
+ confirmButtonText: ue,
820
825
  imgSrc: E,
821
826
  circleImg: C,
822
- teleport: ue
827
+ teleport: ce,
828
+ duration: ie
823
829
  } = e;
824
- return r(Ve, me({
830
+ return r(Ie, pe({
825
831
  modelValue: i.value,
826
832
  "onUpdate:modelValue": (I) => i.value = I,
827
833
  customClass: v(),
@@ -829,10 +835,11 @@ const [Ue, v] = w("dialog"), Ee = {
829
835
  width: y(n)
830
836
  }
831
837
  }, {
832
- "onUpdate:modelValue": u
838
+ "onUpdate:modelValue": c
833
839
  }, {
834
840
  isCloseOnClickMask: $,
835
- teleport: ue
841
+ teleport: ce,
842
+ duration: ie
836
843
  }), {
837
844
  default: () => {
838
845
  var I, q, W, G;
@@ -855,7 +862,7 @@ const [Ue, v] = w("dialog"), Ee = {
855
862
  class: v("container")
856
863
  }, [r("div", {
857
864
  style: {
858
- height: C ? m(y(n), 4, (ie) => ie + 20) : "24px"
865
+ height: C ? m(y(n), 4, (se) => se + 20) : "24px"
859
866
  }
860
867
  }, null), ((q = o.title) == null ? void 0 : q.call(o)) || r("div", {
861
868
  class: v("title"),
@@ -878,18 +885,18 @@ const [Ue, v] = w("dialog"), Ee = {
878
885
  type: "secondary",
879
886
  class: v("footer-btn"),
880
887
  onClick: l
881
- }, Fe(L) ? L : {
888
+ }, Ue(L) ? L : {
882
889
  default: () => [L]
883
890
  }), [[H("loading"), a.cancel]]), U && N(r(Y, {
884
891
  type: "primary",
885
892
  class: v("footer-btn"),
886
- onClick: c
893
+ onClick: u
887
894
  }, {
888
- default: () => [a.confirm ? "" : ce]
895
+ default: () => [a.confirm ? "" : ue]
889
896
  }), [[H("loading"), a.confirm]])])]), V && r("div", {
890
897
  class: v("close"),
891
898
  onClick: () => d("close")
892
- }, [r(Le, {
899
+ }, [r(Me, {
893
900
  name: "cross"
894
901
  }, null)])])];
895
902
  }
@@ -897,13 +904,13 @@ const [Ue, v] = w("dialog"), Ee = {
897
904
  };
898
905
  }
899
906
  });
900
- let M = T({}), qe = 0;
901
- const re = [], He = (e, t) => {
902
- const o = `dialog${qe += 1}`;
907
+ let M = T({}), We = 0;
908
+ const re = [], Je = (e, t) => {
909
+ const o = `dialog${We += 1}`;
903
910
  M = T({
904
911
  setup() {
905
- const d = D(!0), l = (c) => {
906
- d.value = c;
912
+ const d = D(!0), l = (u) => {
913
+ d.value = u;
907
914
  };
908
915
  return () => ne(
909
916
  oe,
@@ -912,22 +919,22 @@ const re = [], He = (e, t) => {
912
919
  "onUpdate:modelValue": l,
913
920
  ...e,
914
921
  onAfterLeave: () => {
915
- We(o);
922
+ Ge(o);
916
923
  }
917
924
  },
918
925
  { ...t }
919
926
  );
920
927
  }
921
928
  });
922
- const u = document.createElement("div");
923
- re.push({ id: o, app: M, el: u }), M.mount(u);
924
- }, We = (e) => {
929
+ const c = document.createElement("div");
930
+ re.push({ id: o, app: M, el: c }), M.mount(c);
931
+ }, Ge = (e) => {
925
932
  re.forEach((t) => {
926
933
  e === t.id && t.app.unmount();
927
934
  });
928
935
  };
929
- const Je = B(oe);
936
+ const Ke = B(oe);
930
937
  export {
931
- He as createDialog,
932
- Je as default
938
+ Je as createDialog,
939
+ Ke as default
933
940
  };