little-dizzy 2.4.0 → 2.5.0

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,10 +1,10 @@
1
- import { createElementBlock as p, openBlock as c, normalizeClass as w, renderSlot as f, createCommentVNode as h, createElementVNode as l, toDisplayString as _, normalizeStyle as S, ref as b, createBlock as L, Teleport as I, createVNode as E, TransitionGroup as V, withCtx as T, Fragment as j, renderList as O, createTextVNode as A, createStaticVNode as z, watch as D } from "vue";
2
- const v = (e, t) => {
3
- const s = e.__vccOpts || e;
4
- for (const [d, i] of t)
5
- s[d] = i;
6
- return s;
7
- }, N = ["disabled"], H = {
1
+ import { createElementBlock as a, openBlock as s, normalizeClass as $, renderSlot as z, createCommentVNode as g, createElementVNode as o, toDisplayString as T, normalizeStyle as x, ref as I, createBlock as X, Teleport as K, createVNode as J, TransitionGroup as Q, withCtx as Z, Fragment as _, renderList as B, computed as A, onMounted as F, onUnmounted as ee, watch as Y, createStaticVNode as R, createTextVNode as U } from "vue";
2
+ const C = (e, t) => {
3
+ const n = e.__vccOpts || e;
4
+ for (const [r, d] of t)
5
+ n[r] = d;
6
+ return n;
7
+ }, te = ["disabled"], se = {
8
8
  __name: "Button",
9
9
  props: {
10
10
  // 按钮类型
@@ -32,29 +32,29 @@ const v = (e, t) => {
32
32
  },
33
33
  emits: ["click"],
34
34
  setup(e, { emit: t }) {
35
- return (s, d) => (c(), p("button", {
36
- class: w(["btn", [
35
+ return (n, r) => (s(), a("button", {
36
+ class: $(["btn", [
37
37
  `btn-${e.type}`,
38
38
  `btn-${e.size}`,
39
39
  { "btn-block": e.block },
40
40
  { "btn-disabled": e.disabled }
41
41
  ]]),
42
42
  disabled: e.disabled,
43
- onClick: d[0] || (d[0] = (i) => s.$emit("click", i))
43
+ onClick: r[0] || (r[0] = (d) => n.$emit("click", d))
44
44
  }, [
45
- f(s.$slots, "default", {}, void 0, !0)
46
- ], 10, N));
45
+ z(n.$slots, "default", {}, void 0, !0)
46
+ ], 10, te));
47
47
  }
48
- }, F = /* @__PURE__ */ v(H, [["__scopeId", "data-v-75f082b2"]]), R = {
48
+ }, ae = /* @__PURE__ */ C(se, [["__scopeId", "data-v-75f082b2"]]), ne = {
49
49
  key: 0,
50
50
  class: "card-header"
51
- }, Y = {
51
+ }, oe = {
52
52
  key: 0,
53
53
  class: "card-header-title"
54
- }, G = { class: "card-body" }, P = {
54
+ }, le = { class: "card-body" }, re = {
55
55
  key: 1,
56
56
  class: "card-footer"
57
- }, U = {
57
+ }, ie = {
58
58
  __name: "Card",
59
59
  props: {
60
60
  // 卡片标题
@@ -69,31 +69,31 @@ const v = (e, t) => {
69
69
  }
70
70
  },
71
71
  setup(e) {
72
- return (t, s) => (c(), p("div", {
73
- class: w(["card", { "card-shadow": e.shadow }])
72
+ return (t, n) => (s(), a("div", {
73
+ class: $(["card", { "card-shadow": e.shadow }])
74
74
  }, [
75
- t.$slots.header || e.title ? (c(), p("div", R, [
76
- e.title ? (c(), p("h3", Y, _(e.title), 1)) : h("", !0),
77
- f(t.$slots, "header", {}, void 0, !0)
78
- ])) : h("", !0),
79
- l("div", G, [
80
- f(t.$slots, "default", {}, void 0, !0)
75
+ t.$slots.header || e.title ? (s(), a("div", ne, [
76
+ e.title ? (s(), a("h3", oe, T(e.title), 1)) : g("", !0),
77
+ z(t.$slots, "header", {}, void 0, !0)
78
+ ])) : g("", !0),
79
+ o("div", le, [
80
+ z(t.$slots, "default", {}, void 0, !0)
81
81
  ]),
82
- t.$slots.footer ? (c(), p("div", P, [
83
- f(t.$slots, "footer", {}, void 0, !0)
84
- ])) : h("", !0)
82
+ t.$slots.footer ? (s(), a("div", re, [
83
+ z(t.$slots, "footer", {}, void 0, !0)
84
+ ])) : g("", !0)
85
85
  ], 2));
86
86
  }
87
- }, W = /* @__PURE__ */ v(U, [["__scopeId", "data-v-1e2b2467"]]), q = { class: "modal-dialog" }, X = { class: "modal-header" }, J = {
87
+ }, ce = /* @__PURE__ */ C(ie, [["__scopeId", "data-v-1e2b2467"]]), de = { class: "modal-dialog" }, ue = { class: "modal-header" }, pe = {
88
88
  key: 0,
89
89
  class: "modal-header-title"
90
- }, K = { class: "modal-body" }, Q = {
90
+ }, me = { class: "modal-body" }, ge = {
91
91
  key: 0,
92
92
  class: "modal-footer"
93
- }, Z = {
93
+ }, ve = {
94
94
  key: 1,
95
95
  class: "modal-footer"
96
- }, ee = {
96
+ }, he = {
97
97
  __name: "Modal",
98
98
  props: {
99
99
  // 是否显示模态框
@@ -118,59 +118,59 @@ const v = (e, t) => {
118
118
  },
119
119
  emits: ["close", "cancel", "confirm"],
120
120
  setup(e, { emit: t }) {
121
- const s = t, d = () => {
122
- s("close");
123
- }, i = () => {
124
- s("cancel");
125
- }, m = () => {
126
- s("confirm");
121
+ const n = t, r = () => {
122
+ n("close");
123
+ }, d = () => {
124
+ n("cancel");
125
+ }, c = () => {
126
+ n("confirm");
127
127
  };
128
- return (o, u) => e.visible ? (c(), p("div", {
128
+ return (l, v) => e.visible ? (s(), a("div", {
129
129
  key: 0,
130
- class: w(["modal", { "modal-show": e.visible }])
130
+ class: $(["modal", { "modal-show": e.visible }])
131
131
  }, [
132
- l("div", q, [
133
- l("div", {
132
+ o("div", de, [
133
+ o("div", {
134
134
  class: "modal-content",
135
- style: S({ width: e.width })
135
+ style: x({ width: e.width })
136
136
  }, [
137
- l("div", X, [
138
- e.title ? (c(), p("h3", J, _(e.title), 1)) : h("", !0),
139
- l("button", {
137
+ o("div", ue, [
138
+ e.title ? (s(), a("h3", pe, T(e.title), 1)) : g("", !0),
139
+ o("button", {
140
140
  class: "modal-header-close",
141
- onClick: d
141
+ onClick: r
142
142
  }, "×")
143
143
  ]),
144
- l("div", K, [
145
- f(o.$slots, "default", {}, void 0, !0)
144
+ o("div", me, [
145
+ z(l.$slots, "default", {}, void 0, !0)
146
146
  ]),
147
- o.$slots.footer ? (c(), p("div", Q, [
148
- f(o.$slots, "footer", {}, void 0, !0)
149
- ])) : e.showFooter ? (c(), p("div", Z, [
150
- l("button", {
147
+ l.$slots.footer ? (s(), a("div", ge, [
148
+ z(l.$slots, "footer", {}, void 0, !0)
149
+ ])) : e.showFooter ? (s(), a("div", ve, [
150
+ o("button", {
151
151
  class: "btn btn-secondary",
152
- onClick: i
152
+ onClick: d
153
153
  }, "取消"),
154
- l("button", {
154
+ o("button", {
155
155
  class: "btn btn-primary",
156
- onClick: m
156
+ onClick: c
157
157
  }, "确定")
158
- ])) : h("", !0)
158
+ ])) : g("", !0)
159
159
  ], 4)
160
160
  ])
161
- ], 2)) : h("", !0);
161
+ ], 2)) : g("", !0);
162
162
  }
163
- }, te = /* @__PURE__ */ v(ee, [["__scopeId", "data-v-39af2dcd"]]), se = ["innerHTML"], ae = { class: "text-sm font-medium" }, oe = ["onClick"], ne = /* @__PURE__ */ Object.assign({
163
+ }, fe = /* @__PURE__ */ C(he, [["__scopeId", "data-v-39af2dcd"]]), ye = ["innerHTML"], be = { class: "text-sm font-medium" }, ke = ["onClick"], we = /* @__PURE__ */ Object.assign({
164
164
  name: "Message"
165
165
  }, {
166
166
  __name: "Message",
167
167
  setup(e, { expose: t }) {
168
- const s = b([]), d = {
168
+ const n = I([]), r = {
169
169
  success: "bg-emerald-500/95 text-white",
170
170
  warning: "bg-amber-500/95 text-white",
171
171
  error: "bg-rose-500/95 text-white",
172
172
  info: "bg-sky-500/95 text-white"
173
- }, i = {
173
+ }, d = {
174
174
  success: `<svg class="w-5 h-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
175
175
  <path d="M20 6L9 17l-5-5" stroke-linecap="round" stroke-linejoin="round"/>
176
176
  </svg>`,
@@ -185,77 +185,464 @@ const v = (e, t) => {
185
185
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
186
186
  </svg>`
187
187
  };
188
- let m = 0;
189
- const o = (r) => {
190
- const a = ++m, n = {
191
- id: a,
192
- type: r.type || "info",
193
- content: r.content || "",
194
- duration: r.duration ?? 3e3,
195
- closable: r.closable ?? !1
188
+ let c = 0;
189
+ const l = (p) => {
190
+ const i = ++c, u = {
191
+ id: i,
192
+ type: p.type || "info",
193
+ content: p.content || "",
194
+ duration: p.duration ?? 3e3,
195
+ closable: p.closable ?? !1
196
196
  };
197
- return s.value.push(n), n.duration > 0 && setTimeout(() => {
198
- u(a);
199
- }, n.duration), a;
200
- }, u = (r) => {
201
- const a = s.value.findIndex((n) => n.id === r);
202
- a > -1 && s.value.splice(a, 1);
197
+ return n.value.push(u), u.duration > 0 && setTimeout(() => {
198
+ v(i);
199
+ }, u.duration), i;
200
+ }, v = (p) => {
201
+ const i = n.value.findIndex((u) => u.id === p);
202
+ i > -1 && n.value.splice(i, 1);
203
203
  };
204
204
  return t({
205
- addMessage: o,
206
- removeMessage: u,
205
+ addMessage: l,
206
+ removeMessage: v,
207
207
  clearAll: () => {
208
- s.value = [];
208
+ n.value = [];
209
209
  },
210
210
  // Shorthand methods
211
- success: (r, a = {}) => o({ ...a, type: "success", content: r }),
212
- warning: (r, a = {}) => o({ ...a, type: "warning", content: r }),
213
- error: (r, a = {}) => o({ ...a, type: "error", content: r }),
214
- info: (r, a = {}) => o({ ...a, type: "info", content: r })
215
- }), (r, a) => (c(), L(I, { to: "body" }, [
216
- E(V, {
211
+ success: (p, i = {}) => l({ ...i, type: "success", content: p }),
212
+ warning: (p, i = {}) => l({ ...i, type: "warning", content: p }),
213
+ error: (p, i = {}) => l({ ...i, type: "error", content: p }),
214
+ info: (p, i = {}) => l({ ...i, type: "info", content: p })
215
+ }), (p, i) => (s(), X(K, { to: "body" }, [
216
+ J(Q, {
217
217
  name: "message",
218
218
  tag: "div",
219
219
  class: "fixed top-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col items-center gap-3 pointer-events-none"
220
220
  }, {
221
- default: T(() => [
222
- (c(!0), p(j, null, O(s.value, (n) => (c(), p("div", {
223
- key: n.id,
224
- class: w(["pointer-events-auto flex items-center gap-3 px-5 py-3 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300", d[n.type]])
221
+ default: Z(() => [
222
+ (s(!0), a(_, null, B(n.value, (u) => (s(), a("div", {
223
+ key: u.id,
224
+ class: $(["pointer-events-auto flex items-center gap-3 px-5 py-3 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300", r[u.type]])
225
225
  }, [
226
- l("span", {
226
+ o("span", {
227
227
  class: "flex-shrink-0",
228
- innerHTML: i[n.type]
229
- }, null, 8, se),
230
- l("span", ae, _(n.content), 1),
231
- n.closable ? (c(), p("button", {
228
+ innerHTML: d[u.type]
229
+ }, null, 8, ye),
230
+ o("span", be, T(u.content), 1),
231
+ u.closable ? (s(), a("button", {
232
232
  key: 0,
233
- onClick: (Ie) => u(n.id),
233
+ onClick: (V) => v(u.id),
234
234
  class: "flex-shrink-0 ml-2 p-1 rounded-full hover:bg-black/10 transition-colors"
235
- }, [...a[0] || (a[0] = [
236
- l("svg", {
235
+ }, [...i[0] || (i[0] = [
236
+ o("svg", {
237
237
  class: "w-4 h-4",
238
238
  viewBox: "0 0 24 24",
239
239
  fill: "none",
240
240
  stroke: "currentColor",
241
241
  "stroke-width": "2"
242
242
  }, [
243
- l("path", { d: "M18 6L6 18M6 6l12 12" })
243
+ o("path", { d: "M18 6L6 18M6 6l12 12" })
244
244
  ], -1)
245
- ])], 8, oe)) : h("", !0)
245
+ ])], 8, ke)) : g("", !0)
246
246
  ], 2))), 128))
247
247
  ]),
248
248
  _: 1
249
249
  })
250
250
  ]));
251
251
  }
252
- }), le = /* @__PURE__ */ v(ne, [["__scopeId", "data-v-d727fd6c"]]);
253
- b([]);
254
- let re = 0;
255
- const de = (e) => {
256
- const t = ++re, s = e.type || "info", d = e.content || "", i = e.duration ?? 3e3, m = e.closable ?? !1, o = document.createElement("div");
257
- o.className = `ld-message ld-message--${s}`, o.setAttribute("data-id", t);
258
- let g = `${{
252
+ }), xe = /* @__PURE__ */ C(we, [["__scopeId", "data-v-d727fd6c"]]), _e = ["src", "alt"], $e = {
253
+ key: 1,
254
+ class: "slide-title"
255
+ }, ze = {
256
+ key: 0,
257
+ class: "carousel-indicators"
258
+ }, Be = ["onClick"], Ce = {
259
+ viewBox: "0 0 24 24",
260
+ width: "24",
261
+ height: "24"
262
+ }, Se = ["d"], Me = {
263
+ viewBox: "0 0 24 24",
264
+ width: "24",
265
+ height: "24"
266
+ }, Le = ["d"], Ie = /* @__PURE__ */ Object.assign({
267
+ name: "Carousel"
268
+ }, {
269
+ __name: "Carousel",
270
+ props: {
271
+ items: {
272
+ type: Array,
273
+ default: () => []
274
+ },
275
+ height: {
276
+ type: String,
277
+ default: "300px"
278
+ },
279
+ direction: {
280
+ type: String,
281
+ default: "horizontal",
282
+ validator: (e) => ["horizontal", "vertical"].includes(e)
283
+ },
284
+ autoplay: {
285
+ type: Boolean,
286
+ default: !0
287
+ },
288
+ interval: {
289
+ type: Number,
290
+ default: 3e3
291
+ },
292
+ showIndicators: {
293
+ type: Boolean,
294
+ default: !0
295
+ },
296
+ showArrows: {
297
+ type: Boolean,
298
+ default: !0
299
+ }
300
+ },
301
+ emits: ["change"],
302
+ setup(e, { expose: t, emit: n }) {
303
+ const r = e, d = n, c = I(0);
304
+ let l = null;
305
+ const v = A(() => {
306
+ const y = c.value * 100;
307
+ return r.direction === "vertical" ? { transform: `translateY(-${y}%)` } : { transform: `translateX(-${y}%)` };
308
+ }), f = () => {
309
+ c.value = (c.value + 1) % r.items.length, d("change", c.value);
310
+ }, p = () => {
311
+ c.value = (c.value - 1 + r.items.length) % r.items.length, d("change", c.value);
312
+ }, i = (y) => {
313
+ c.value = y, d("change", c.value);
314
+ }, u = () => {
315
+ r.autoplay && r.items.length > 1 && (l = setInterval(f, r.interval));
316
+ }, V = () => {
317
+ l && (clearInterval(l), l = null);
318
+ };
319
+ return F(() => {
320
+ u();
321
+ }), ee(() => {
322
+ V();
323
+ }), t({
324
+ next: f,
325
+ prev: p,
326
+ goTo: i,
327
+ currentIndex: c
328
+ }), (y, k) => (s(), a("div", {
329
+ class: $(["ld-carousel", { "ld-carousel--vertical": e.direction === "vertical" }]),
330
+ style: x({ height: e.height })
331
+ }, [
332
+ o("div", {
333
+ class: "carousel-container",
334
+ style: x(v.value)
335
+ }, [
336
+ (s(!0), a(_, null, B(e.items, (S, M) => (s(), a("div", {
337
+ key: M,
338
+ class: $(["carousel-slide", { active: M === c.value }])
339
+ }, [
340
+ z(y.$slots, "item", {
341
+ item: S,
342
+ index: M
343
+ }, () => [
344
+ S.image ? (s(), a("img", {
345
+ key: 0,
346
+ src: S.image,
347
+ alt: S.title || ""
348
+ }, null, 8, _e)) : g("", !0),
349
+ S.title ? (s(), a("div", $e, T(S.title), 1)) : g("", !0)
350
+ ], !0)
351
+ ], 2))), 128))
352
+ ], 4),
353
+ e.showIndicators ? (s(), a("div", ze, [
354
+ (s(!0), a(_, null, B(e.items, (S, M) => (s(), a("span", {
355
+ key: M,
356
+ class: $(["indicator", { active: M === c.value }]),
357
+ onClick: (O) => i(M)
358
+ }, null, 10, Be))), 128))
359
+ ])) : g("", !0),
360
+ e.showArrows ? (s(), a(_, { key: 1 }, [
361
+ o("button", {
362
+ class: "carousel-arrow prev",
363
+ onClick: p
364
+ }, [
365
+ (s(), a("svg", Ce, [
366
+ o("path", {
367
+ fill: "currentColor",
368
+ d: e.direction === "vertical" ? "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" : "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
369
+ }, null, 8, Se)
370
+ ]))
371
+ ]),
372
+ o("button", {
373
+ class: "carousel-arrow next",
374
+ onClick: f
375
+ }, [
376
+ (s(), a("svg", Me, [
377
+ o("path", {
378
+ fill: "currentColor",
379
+ d: e.direction === "vertical" ? "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z" : "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
380
+ }, null, 8, Le)
381
+ ]))
382
+ ])
383
+ ], 64)) : g("", !0)
384
+ ], 6));
385
+ }
386
+ }), Te = /* @__PURE__ */ C(Ie, [["__scopeId", "data-v-42bf1623"]]), Ae = {
387
+ key: 1,
388
+ class: "dots"
389
+ }, Ve = {
390
+ key: 4,
391
+ class: "bars"
392
+ }, Ee = {
393
+ key: 5,
394
+ class: "loading-text"
395
+ }, Oe = /* @__PURE__ */ Object.assign({
396
+ name: "Loading"
397
+ }, {
398
+ __name: "Loading",
399
+ props: {
400
+ type: {
401
+ type: String,
402
+ default: "spinner",
403
+ validator: (e) => ["spinner", "dots", "ring", "pulse", "bars"].includes(e)
404
+ },
405
+ size: {
406
+ type: String,
407
+ default: "40px"
408
+ },
409
+ color: {
410
+ type: String,
411
+ default: "var(--ld-color-primary, #6366f1)"
412
+ },
413
+ text: {
414
+ type: String,
415
+ default: ""
416
+ },
417
+ fullscreen: {
418
+ type: Boolean,
419
+ default: !1
420
+ }
421
+ },
422
+ setup(e) {
423
+ const t = e, n = A(() => ({
424
+ width: t.size,
425
+ height: t.size,
426
+ "--spinner-color": t.color
427
+ })), r = A(() => ({
428
+ width: t.size,
429
+ height: t.size,
430
+ "--ring-color": t.color
431
+ }));
432
+ return (d, c) => (s(), a("div", {
433
+ class: $(["ld-loading", [`ld-loading--${e.type}`, { "ld-loading--fullscreen": e.fullscreen }]])
434
+ }, [
435
+ e.type === "spinner" ? (s(), a("div", {
436
+ key: 0,
437
+ class: "spinner",
438
+ style: x(n.value)
439
+ }, [
440
+ (s(), a(_, null, B(12, (l) => o("div", {
441
+ key: l,
442
+ class: "spinner-blade"
443
+ })), 64))
444
+ ], 4)) : e.type === "dots" ? (s(), a("div", Ae, [
445
+ (s(), a(_, null, B(3, (l) => o("span", {
446
+ key: l,
447
+ class: "dot",
448
+ style: x({ background: e.color })
449
+ }, null, 4)), 64))
450
+ ])) : e.type === "ring" ? (s(), a("div", {
451
+ key: 2,
452
+ class: "ring",
453
+ style: x(r.value)
454
+ }, [...c[0] || (c[0] = [
455
+ o("div", { class: "ring-inner" }, null, -1)
456
+ ])], 4)) : e.type === "pulse" ? (s(), a("div", {
457
+ key: 3,
458
+ class: "pulse",
459
+ style: x({ background: e.color, width: e.size, height: e.size })
460
+ }, null, 4)) : e.type === "bars" ? (s(), a("div", Ve, [
461
+ (s(), a(_, null, B(5, (l) => o("span", {
462
+ key: l,
463
+ class: "bar",
464
+ style: x({ background: e.color })
465
+ }, null, 4)), 64))
466
+ ])) : g("", !0),
467
+ e.text ? (s(), a("div", Ee, T(e.text), 1)) : g("", !0)
468
+ ], 2));
469
+ }
470
+ }), je = /* @__PURE__ */ C(Oe, [["__scopeId", "data-v-5052ea89"]]), De = {
471
+ key: 0,
472
+ class: "ld-table-loading"
473
+ }, He = {
474
+ key: 0,
475
+ class: "loading-text"
476
+ }, Pe = { class: "ld-table" }, Ne = ["onClick"], Fe = { class: "th-content" }, Ye = { key: 0 }, Re = ["colspan"], Ue = ["onClick"], qe = /* @__PURE__ */ Object.assign({
477
+ name: "ldTable"
478
+ }, {
479
+ __name: "Table",
480
+ props: {
481
+ columns: {
482
+ type: Array,
483
+ required: !0
484
+ },
485
+ data: {
486
+ type: Array,
487
+ default: () => []
488
+ },
489
+ bordered: {
490
+ type: Boolean,
491
+ default: !1
492
+ },
493
+ striped: {
494
+ type: Boolean,
495
+ default: !1
496
+ },
497
+ loading: {
498
+ type: Boolean,
499
+ default: !1
500
+ },
501
+ loadingText: {
502
+ type: String,
503
+ default: ""
504
+ },
505
+ // API 相关
506
+ api: {
507
+ type: Function,
508
+ default: null
509
+ },
510
+ autoLoad: {
511
+ type: Boolean,
512
+ default: !0
513
+ },
514
+ loadParams: {
515
+ type: Object,
516
+ default: () => ({})
517
+ }
518
+ },
519
+ emits: ["row-click", "load-success", "load-error"],
520
+ setup(e, { expose: t, emit: n }) {
521
+ const r = e, d = n, c = I(!1), l = I([]), v = A(() => typeof r.api == "function"), f = A(() => r.loading || c.value), p = A(() => v.value ? l.value : r.data), i = async (h = {}) => {
522
+ if (v.value) {
523
+ c.value = !0;
524
+ try {
525
+ const b = { ...r.loadParams, ...h }, m = await r.api(b);
526
+ return l.value = Array.isArray(m) ? m : m?.data || m?.list || [], d("load-success", l.value), l.value;
527
+ } catch (b) {
528
+ throw console.error("[ld-table] Load error:", b), d("load-error", b), b;
529
+ } finally {
530
+ c.value = !1;
531
+ }
532
+ }
533
+ }, u = (h = {}) => i(h), V = () => {
534
+ l.value = [];
535
+ };
536
+ Y(() => r.loadParams, (h) => {
537
+ v.value && r.autoLoad && i();
538
+ }, { deep: !0 }), F(() => {
539
+ v.value && r.autoLoad && i();
540
+ });
541
+ const y = I(""), k = I(""), S = (h) => {
542
+ y.value === h ? (k.value = k.value === "asc" ? "desc" : k.value === "desc" ? "" : "asc", k.value || (y.value = "")) : (y.value = h, k.value = "asc");
543
+ }, M = (h) => y.value !== h ? "" : k.value === "asc" ? "sort-asc" : k.value === "desc" ? "sort-desc" : "", O = A(() => {
544
+ const h = p.value;
545
+ return !y.value || !k.value ? h : [...h].sort((b, m) => {
546
+ const L = b[y.value], w = m[y.value];
547
+ if (typeof L == "number" && typeof w == "number")
548
+ return k.value === "asc" ? L - w : w - L;
549
+ const H = String(L || ""), P = String(w || "");
550
+ return k.value === "asc" ? H.localeCompare(P) : P.localeCompare(H);
551
+ });
552
+ });
553
+ return t({
554
+ load: i,
555
+ reload: u,
556
+ clear: V,
557
+ getData: () => l.value
558
+ }), (h, b) => (s(), a("div", {
559
+ class: $(["ld-table-wrapper", { "ld-table--bordered": e.bordered, "ld-table--striped": e.striped }])
560
+ }, [
561
+ f.value ? (s(), a("div", De, [
562
+ b[0] || (b[0] = o("div", { class: "loading-spinner" }, [
563
+ o("svg", {
564
+ class: "circular",
565
+ viewBox: "0 0 50 50"
566
+ }, [
567
+ o("circle", {
568
+ class: "path",
569
+ cx: "25",
570
+ cy: "25",
571
+ r: "20",
572
+ fill: "none"
573
+ })
574
+ ])
575
+ ], -1)),
576
+ e.loadingText ? (s(), a("span", He, T(e.loadingText), 1)) : g("", !0)
577
+ ])) : g("", !0),
578
+ o("table", Pe, [
579
+ o("thead", null, [
580
+ o("tr", null, [
581
+ (s(!0), a(_, null, B(e.columns, (m) => (s(), a("th", {
582
+ key: m.key,
583
+ style: x({ width: m.width, textAlign: m.align || "left" }),
584
+ onClick: (L) => m.sortable && S(m.key)
585
+ }, [
586
+ o("div", Fe, [
587
+ o("span", null, T(m.title), 1),
588
+ m.sortable ? (s(), a("span", {
589
+ key: 0,
590
+ class: $(["sort-icon", M(m.key)])
591
+ }, [...b[1] || (b[1] = [
592
+ o("svg", {
593
+ viewBox: "0 0 24 24",
594
+ width: "14",
595
+ height: "14"
596
+ }, [
597
+ o("path", {
598
+ fill: "currentColor",
599
+ d: "M7 10l5-5 5 5H7zm0 4l5 5 5-5H7z"
600
+ })
601
+ ], -1)
602
+ ])], 2)) : g("", !0)
603
+ ])
604
+ ], 12, Ne))), 128))
605
+ ])
606
+ ]),
607
+ o("tbody", null, [
608
+ !O.value.length && !f.value ? (s(), a("tr", Ye, [
609
+ o("td", {
610
+ colspan: e.columns.length,
611
+ class: "empty-cell"
612
+ }, [
613
+ z(h.$slots, "empty", {}, () => [
614
+ b[2] || (b[2] = R('<div class="empty-content" data-v-567f3024><svg viewBox="0 0 64 41" width="64" height="41" data-v-567f3024><g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-567f3024><ellipse fill="var(--ld-color-bg-secondary, #f5f5f5)" cx="32" cy="33" rx="32" ry="7" data-v-567f3024></ellipse><g fill-rule="nonzero" stroke="var(--ld-color-border, #d9d9d9)" data-v-567f3024><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-567f3024></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="var(--ld-color-bg, #fafafa)" data-v-567f3024></path></g></g></svg><span data-v-567f3024>暂无数据</span></div>', 1))
615
+ ], !0)
616
+ ], 8, Re)
617
+ ])) : g("", !0),
618
+ (s(!0), a(_, null, B(O.value, (m, L) => (s(), a("tr", {
619
+ key: L,
620
+ onClick: (w) => h.$emit("row-click", m, L)
621
+ }, [
622
+ (s(!0), a(_, null, B(e.columns, (w) => (s(), a("td", {
623
+ key: w.key,
624
+ style: x({ textAlign: w.align || "left" })
625
+ }, [
626
+ z(h.$slots, w.key, {
627
+ row: m,
628
+ index: L,
629
+ value: m[w.key]
630
+ }, () => [
631
+ U(T(m[w.key]), 1)
632
+ ], !0)
633
+ ], 4))), 128))
634
+ ], 8, Ue))), 128))
635
+ ])
636
+ ])
637
+ ], 2));
638
+ }
639
+ }), Ge = /* @__PURE__ */ C(qe, [["__scopeId", "data-v-567f3024"]]);
640
+ I([]);
641
+ let We = 0;
642
+ const Xe = (e) => {
643
+ const t = ++We, n = e.type || "info", r = e.content || "", d = e.duration ?? 3e3, c = e.closable ?? !1, l = document.createElement("div");
644
+ l.className = `ld-message ld-message--${n}`, l.setAttribute("data-id", t);
645
+ let f = `${{
259
646
  success: `<svg class="ld-message-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
260
647
  <path d="M20 6L9 17l-5-5" stroke-linecap="round" stroke-linejoin="round"/>
261
648
  </svg>`,
@@ -269,13 +656,13 @@ const de = (e) => {
269
656
  info: `<svg class="ld-message-icon" viewBox="0 0 24 24" fill="currentColor">
270
657
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
271
658
  </svg>`
272
- }[s]}<span class="ld-message-content">${d}</span>`;
273
- return m && (g += `<button class="ld-message-close" onclick="window.__ldMessageClose(${t})">
659
+ }[n]}<span class="ld-message-content">${r}</span>`;
660
+ return c && (f += `<button class="ld-message-close" onclick="window.__ldMessageClose(${t})">
274
661
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
275
662
  <path d="M18 6L6 18M6 6l12 12"/>
276
663
  </svg>
277
- </button>`), o.innerHTML = g, { id: t, element: o, duration: i };
278
- }, ce = () => {
664
+ </button>`), l.innerHTML = f, { id: t, element: l, duration: d };
665
+ }, Ke = () => {
279
666
  let e = document.getElementById("ld-message-root");
280
667
  if (!e) {
281
668
  e = document.createElement("div"), e.id = "ld-message-root", document.body.appendChild(e);
@@ -344,59 +731,76 @@ const de = (e) => {
344
731
  `, document.head.appendChild(t);
345
732
  }
346
733
  return e;
347
- }, k = (e) => {
734
+ }, j = (e) => {
348
735
  const t = document.getElementById("ld-message-root");
349
736
  if (!t) return;
350
- const s = t.querySelector(`[data-id="${e}"]`);
351
- s && (s.classList.add("ld-message--closing"), setTimeout(() => {
352
- s.remove();
737
+ const n = t.querySelector(`[data-id="${e}"]`);
738
+ n && (n.classList.add("ld-message--closing"), setTimeout(() => {
739
+ n.remove();
353
740
  }, 200));
354
741
  };
355
- typeof window < "u" && (window.__ldMessageClose = k);
356
- const y = (e) => {
357
- const t = ce(), { id: s, element: d, duration: i } = de(e);
358
- return t.appendChild(d), i > 0 && setTimeout(() => {
359
- k(s);
360
- }, i), s;
361
- }, B = {
362
- success: (e, t = {}) => y({ ...t, type: "success", content: e }),
363
- warning: (e, t = {}) => y({ ...t, type: "warning", content: e }),
364
- error: (e, t = {}) => y({ ...t, type: "error", content: e }),
365
- info: (e, t = {}) => y({ ...t, type: "info", content: e }),
366
- close: k,
742
+ typeof window < "u" && (window.__ldMessageClose = j);
743
+ const E = (e) => {
744
+ const t = Ke(), { id: n, element: r, duration: d } = Xe(e);
745
+ return t.appendChild(r), d > 0 && setTimeout(() => {
746
+ j(n);
747
+ }, d), n;
748
+ }, N = {
749
+ success: (e, t = {}) => E({ ...t, type: "success", content: e }),
750
+ warning: (e, t = {}) => E({ ...t, type: "warning", content: e }),
751
+ error: (e, t = {}) => E({ ...t, type: "error", content: e }),
752
+ info: (e, t = {}) => E({ ...t, type: "info", content: e }),
753
+ close: j,
367
754
  closeAll: () => {
368
755
  const e = document.getElementById("ld-message-root");
369
756
  e && (e.innerHTML = "");
370
757
  }
371
- }, ie = { class: "lzbutton-wrapper" }, pe = { class: "button" }, ue = /* @__PURE__ */ Object.assign({
758
+ }, Je = { class: "lzbutton-wrapper" }, Qe = { class: "button" }, Ze = /* @__PURE__ */ Object.assign({
372
759
  name: "Lzbutton"
373
760
  }, {
374
761
  __name: "lzbutton",
375
762
  setup(e) {
376
- return (t, s) => (c(), p("div", ie, [
377
- l("button", pe, [
378
- s[1] || (s[1] = l("svg", {
763
+ return (t, n) => (s(), a("div", Je, [
764
+ o("button", Qe, [
765
+ n[1] || (n[1] = o("svg", {
379
766
  xmlns: "http://www.w3.org/2000/svg",
380
767
  viewBox: "0 0 36 24"
381
768
  }, [
382
- l("path", { d: "m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z" })
769
+ o("path", { d: "m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z" })
383
770
  ], -1)),
384
- f(t.$slots, "default", {}, () => [
385
- s[0] || (s[0] = A("Unlock Pro", -1))
771
+ z(t.$slots, "default", {}, () => [
772
+ n[0] || (n[0] = U("Unlock Pro", -1))
386
773
  ], !0)
387
774
  ])
388
775
  ]));
389
776
  }
390
- }), me = /* @__PURE__ */ v(ue, [["__scopeId", "data-v-7124b716"]]), ge = { class: "Lztext-wrapper" }, fe = /* @__PURE__ */ Object.assign({
777
+ }), et = /* @__PURE__ */ C(Ze, [["__scopeId", "data-v-7124b716"]]), tt = { class: "Lztext-wrapper" }, st = { class: "loader-wrapper" }, at = /* @__PURE__ */ Object.assign({
391
778
  name: "Lztext"
392
779
  }, {
393
780
  __name: "Lztext",
781
+ props: {
782
+ /**
783
+ * 显示的文字内容
784
+ */
785
+ text: {
786
+ type: String,
787
+ default: "Generating"
788
+ }
789
+ },
394
790
  setup(e) {
395
- return (t, s) => (c(), p("div", ge, [...s[0] || (s[0] = [
396
- z('<div class="loader-wrapper" data-v-f22456dd><span class="loader-letter" data-v-f22456dd>G</span><span class="loader-letter" data-v-f22456dd>e</span><span class="loader-letter" data-v-f22456dd>n</span><span class="loader-letter" data-v-f22456dd>e</span><span class="loader-letter" data-v-f22456dd>r</span><span class="loader-letter" data-v-f22456dd>a</span><span class="loader-letter" data-v-f22456dd>t</span><span class="loader-letter" data-v-f22456dd>i</span><span class="loader-letter" data-v-f22456dd>n</span><span class="loader-letter" data-v-f22456dd>g</span><div class="loader" data-v-f22456dd></div></div>', 1)
397
- ])]));
791
+ const t = e, n = A(() => t.text.split(""));
792
+ return (r, d) => (s(), a("div", tt, [
793
+ o("div", st, [
794
+ (s(!0), a(_, null, B(n.value, (c, l) => (s(), a("span", {
795
+ key: l,
796
+ class: "loader-letter",
797
+ style: x({ animationDelay: `${0.1 + l * 0.105}s` })
798
+ }, T(c === " " ? " " : c), 5))), 128)),
799
+ d[0] || (d[0] = o("div", { class: "loader" }, null, -1))
800
+ ])
801
+ ]));
398
802
  }
399
- }), he = /* @__PURE__ */ v(fe, [["__scopeId", "data-v-f22456dd"]]), ve = { class: "lztheme-wrapper" }, ye = { class: "theme__toggle-wrap" }, be = ["checked"], we = /* @__PURE__ */ Object.assign({
803
+ }), nt = /* @__PURE__ */ C(at, [["__scopeId", "data-v-2cca50b0"]]), ot = { class: "lztheme-wrapper" }, lt = { class: "theme__toggle-wrap" }, rt = ["checked"], it = /* @__PURE__ */ Object.assign({
400
804
  name: "Lztheme"
401
805
  }, {
402
806
  __name: "lztheme",
@@ -408,51 +812,51 @@ const y = (e) => {
408
812
  }
409
813
  },
410
814
  emits: ["update:modelValue", "change"],
411
- setup(e, { expose: t, emit: s }) {
412
- let d = 0;
413
- const i = `lztheme-toggle-${++d}-${Date.now()}`, m = e, o = s, u = b(null), g = b(m.modelValue);
414
- D(() => m.modelValue, (a) => {
415
- g.value = a;
815
+ setup(e, { expose: t, emit: n }) {
816
+ let r = 0;
817
+ const d = `lztheme-toggle-${++r}-${Date.now()}`, c = e, l = n, v = I(null), f = I(c.modelValue);
818
+ Y(() => c.modelValue, (i) => {
819
+ f.value = i;
416
820
  });
417
- const r = (a) => {
418
- const n = a.target.checked;
419
- g.value = n, o("update:modelValue", n), o("change", n);
821
+ const p = (i) => {
822
+ const u = i.target.checked;
823
+ f.value = u, l("update:modelValue", u), l("change", u);
420
824
  };
421
825
  return t({
422
826
  toggle: () => {
423
- u.value && u.value.click();
827
+ v.value && v.value.click();
424
828
  },
425
- setDark: (a) => {
426
- g.value = a, o("update:modelValue", a), o("change", a);
829
+ setDark: (i) => {
830
+ f.value = i, l("update:modelValue", i), l("change", i);
427
831
  }
428
- }), (a, n) => (c(), p("div", ve, [
429
- l("label", {
430
- for: i,
832
+ }), (i, u) => (s(), a("div", ot, [
833
+ o("label", {
834
+ for: d,
431
835
  class: "theme"
432
836
  }, [
433
- l("span", ye, [
434
- l("input", {
435
- id: i,
837
+ o("span", lt, [
838
+ o("input", {
839
+ id: d,
436
840
  ref_key: "toggleRef",
437
- ref: u,
841
+ ref: v,
438
842
  class: "theme__toggle",
439
843
  type: "checkbox",
440
844
  role: "switch",
441
845
  name: "theme",
442
846
  value: "dark",
443
- checked: g.value,
444
- onChange: r
445
- }, null, 40, be),
446
- n[0] || (n[0] = z('<span class="theme__icon" data-v-e887d581><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span></span>', 1))
847
+ checked: f.value,
848
+ onChange: p
849
+ }, null, 40, rt),
850
+ u[0] || (u[0] = R('<span class="theme__icon" data-v-e887d581><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span></span>', 1))
447
851
  ])
448
852
  ])
449
853
  ]));
450
854
  }
451
- }), _e = /* @__PURE__ */ v(we, [["__scopeId", "data-v-e887d581"]]), ke = {
452
- Lzbutton: me,
453
- Lztext: he,
454
- Lztheme: _e
455
- }, xe = {
855
+ }), ct = /* @__PURE__ */ C(it, [["__scopeId", "data-v-e887d581"]]), dt = {
856
+ Lzbutton: et,
857
+ Lztext: nt,
858
+ Lztheme: ct
859
+ }, ut = {
456
860
  name: "Button",
457
861
  type: "vue",
458
862
  label: "Button 按钮",
@@ -466,7 +870,7 @@ const y = (e) => {
466
870
  <script setup>
467
871
  import { Button } from 'little-dizzy'
468
872
  <\/script>`
469
- }, Be = {
873
+ }, pt = {
470
874
  name: "Card",
471
875
  type: "vue",
472
876
  label: "Card 卡片",
@@ -486,7 +890,7 @@ import { Button } from 'little-dizzy'
486
890
  <script setup>
487
891
  import { Card, Button } from 'little-dizzy'
488
892
  <\/script>`
489
- }, ze = {
893
+ }, mt = {
490
894
  name: "Modal",
491
895
  type: "vue",
492
896
  label: "Modal 模态框",
@@ -511,7 +915,7 @@ import { Modal, Button } from 'little-dizzy'
511
915
 
512
916
  const visible = ref(false)
513
917
  <\/script>`
514
- }, Ce = {
918
+ }, gt = {
515
919
  name: "Message",
516
920
  type: "vue",
517
921
  label: "Message 消息提示",
@@ -551,14 +955,93 @@ const showInfo = () => {
551
955
  flex-wrap: wrap;
552
956
  }
553
957
  </style>`
554
- }, $e = [
555
- xe,
556
- Be,
557
- ze,
558
- Ce
559
- ], x = /* @__PURE__ */ new Map();
560
- function C(e) {
561
- return !e || !e.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (x.set(e.name, {
958
+ }, vt = {
959
+ name: "Carousel",
960
+ type: "vue",
961
+ label: "Carousel 轮播图",
962
+ code: `<template>
963
+ <Carousel :items="items" height="300px" />
964
+ </template>
965
+
966
+ <script setup>
967
+ import { Carousel } from 'little-dizzy'
968
+
969
+ const items = [
970
+ { image: 'https://picsum.photos/800/300?random=1', title: '图片 1' },
971
+ { image: 'https://picsum.photos/800/300?random=2', title: '图片 2' },
972
+ { image: 'https://picsum.photos/800/300?random=3', title: '图片 3' }
973
+ ]
974
+ <\/script>`
975
+ }, ht = {
976
+ name: "Loading",
977
+ type: "vue",
978
+ label: "Loading 加载",
979
+ code: `<template>
980
+ <Loading type="spinner" />
981
+ <Loading type="dots" />
982
+ <Loading type="ring" />
983
+ <Loading type="pulse" />
984
+ <Loading type="bars" />
985
+ </template>
986
+
987
+ <script setup>
988
+ import { Loading } from 'little-dizzy'
989
+ <\/script>`
990
+ }, ft = {
991
+ name: "Table",
992
+ type: "vue",
993
+ label: "Table 表格",
994
+ code: `<template>
995
+ <Table :columns="columns" :data="data" bordered striped />
996
+ </template>
997
+
998
+ <script setup>
999
+ import { Table } from 'little-dizzy'
1000
+
1001
+ const columns = [
1002
+ { key: 'name', title: '姓名', width: '120px' },
1003
+ { key: 'age', title: '年龄', width: '80px' },
1004
+ { key: 'address', title: '地址' }
1005
+ ]
1006
+
1007
+ const data = [
1008
+ { name: '张三', age: 28, address: '北京市朝阳区' },
1009
+ { name: '李四', age: 32, address: '上海市浦东新区' },
1010
+ { name: '王五', age: 25, address: '广州市天河区' }
1011
+ ]
1012
+ <\/script>`
1013
+ }, yt = {
1014
+ name: "Backtop",
1015
+ type: "vue",
1016
+ label: "Backtop 回到顶部",
1017
+ code: `<template>
1018
+ <!-- 基础用法 -->
1019
+ <Backtop />
1020
+
1021
+ <!-- 指定滚动容器 -->
1022
+ <Backtop target=".my-container" :visibility-height="100" />
1023
+
1024
+ <!-- 自定义内容 -->
1025
+ <Backtop>
1026
+ <span style="font-size: 12px;">UP</span>
1027
+ </Backtop>
1028
+ </template>
1029
+
1030
+ <script setup>
1031
+ import { Backtop } from 'little-dizzy'
1032
+ <\/script>`
1033
+ }, bt = [
1034
+ ut,
1035
+ pt,
1036
+ mt,
1037
+ gt,
1038
+ vt,
1039
+ ht,
1040
+ ft,
1041
+ yt
1042
+ ], D = /* @__PURE__ */ new Map();
1043
+ function q(e) {
1044
+ return !e || !e.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (D.set(e.name, {
562
1045
  name: e.name,
563
1046
  type: e.type || "html",
564
1047
  label: e.label || e.name,
@@ -567,51 +1050,57 @@ function C(e) {
567
1050
  ...e
568
1051
  }), !0);
569
1052
  }
570
- function $(e) {
1053
+ function G(e) {
571
1054
  if (!Array.isArray(e))
572
1055
  return console.warn("[LittleDizzy] registerSnippets expects an array"), 0;
573
1056
  let t = 0;
574
- return e.forEach((s) => {
575
- C(s) && t++;
1057
+ return e.forEach((n) => {
1058
+ q(n) && t++;
576
1059
  }), t;
577
1060
  }
578
- function Me() {
1061
+ function kt() {
579
1062
  const e = {};
580
- return x.forEach((t, s) => {
581
- e[s] = t;
1063
+ return D.forEach((t, n) => {
1064
+ e[n] = t;
582
1065
  }), e;
583
1066
  }
584
- function Se(e) {
585
- return x.get(e);
1067
+ function wt(e) {
1068
+ return D.get(e);
586
1069
  }
587
- $($e);
588
- const M = {
589
- Button: F,
590
- Card: W,
591
- Modal: te,
592
- Message: le,
593
- ...ke
594
- }, Le = (e, t = {}) => {
595
- Object.entries(M).forEach(([s, d]) => {
596
- e.component(t.prefix ? `${t.prefix}${s}` : s, d);
597
- }), e.config.globalProperties.$message = B, e.provide("message", B);
598
- }, Ve = Me, Te = C, je = $, Oe = Se, Ae = {
599
- install: Le,
600
- ...M
1070
+ G(bt);
1071
+ const W = {
1072
+ Button: ae,
1073
+ Card: ce,
1074
+ Modal: fe,
1075
+ Message: xe,
1076
+ Carousel: Te,
1077
+ Loading: je,
1078
+ Table: Ge,
1079
+ ...dt
1080
+ }, xt = (e, t = {}) => {
1081
+ Object.entries(W).forEach(([n, r]) => {
1082
+ e.component(t.prefix ? `${t.prefix}${n}` : n, r);
1083
+ }), e.config.globalProperties.$message = N, e.provide("message", N);
1084
+ }, $t = kt, zt = q, Bt = G, Ct = wt, St = {
1085
+ install: xt,
1086
+ ...W
601
1087
  };
602
1088
  export {
603
- F as Button,
604
- W as Card,
605
- me as Lzbutton,
606
- he as Lztext,
607
- _e as Lztheme,
608
- le as Message,
609
- te as Modal,
610
- ke as customComponents,
611
- Ae as default,
612
- Oe as getSnippet,
613
- B as message,
614
- Te as registerSnippet,
615
- je as registerSnippets,
616
- Ve as snippets
1089
+ ae as Button,
1090
+ ce as Card,
1091
+ Te as Carousel,
1092
+ je as Loading,
1093
+ et as Lzbutton,
1094
+ nt as Lztext,
1095
+ ct as Lztheme,
1096
+ xe as Message,
1097
+ fe as Modal,
1098
+ Ge as Table,
1099
+ dt as customComponents,
1100
+ St as default,
1101
+ Ct as getSnippet,
1102
+ N as message,
1103
+ zt as registerSnippet,
1104
+ Bt as registerSnippets,
1105
+ $t as snippets
617
1106
  };