@mc-markets/ui 1.0.69 → 1.0.72

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.
Files changed (41) hide show
  1. package/dist/components/Alert/Alert.vue.d.ts +8 -3
  2. package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
  3. package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts +30 -0
  4. package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts.map +1 -0
  5. package/dist/components/Notification/Notification.vue.d.ts +1 -6
  6. package/dist/components/Notification/Notification.vue.d.ts.map +1 -1
  7. package/dist/images/alert/alert-error.png +0 -0
  8. package/dist/images/alert/alert-success.png +0 -0
  9. package/dist/images/alert/alert-warning.png +0 -0
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +7 -2
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.mjs +485 -352
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/style.css +1 -1
  17. package/package.json +1 -1
  18. package/packages/components/Alert/Alert.vue +117 -3
  19. package/packages/components/DatePicker/DatePicker.vue +1 -1
  20. package/packages/components/NotifiMessage/NotifiMessage.vue +292 -0
  21. package/packages/components/Notification/Notification.vue +11 -5
  22. package/packages/styles/index.scss +1 -1
  23. package/dist/components/Card/Card.vue.d.ts +0 -8
  24. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  25. package/packages/components/Card/Card.vue +0 -20
  26. package/packages/styles/images/empty/404.png +0 -0
  27. package/packages/styles/images/empty/billing.png +0 -0
  28. package/packages/styles/images/empty/cart.png +0 -0
  29. package/packages/styles/images/empty/comments.png +0 -0
  30. package/packages/styles/images/empty/dashboard.png +0 -0
  31. package/packages/styles/images/empty/files.png +0 -0
  32. package/packages/styles/images/empty/inbox.png +0 -0
  33. package/packages/styles/images/empty/location.png +0 -0
  34. package/packages/styles/images/empty/network.png +0 -0
  35. package/packages/styles/images/empty/notifications.png +0 -0
  36. package/packages/styles/images/empty/orders.png +0 -0
  37. package/packages/styles/images/empty/records.png +0 -0
  38. package/packages/styles/images/empty/session.png +0 -0
  39. package/packages/styles/images/empty/subscription.png +0 -0
  40. package/packages/styles/images/empty/todo.png +0 -0
  41. package/packages/styles/images/empty/wishlist.png +0 -0
package/dist/index.mjs CHANGED
@@ -1,46 +1,45 @@
1
- var ee = Object.defineProperty, te = Object.defineProperties;
2
- var se = Object.getOwnPropertyDescriptors;
3
- var N = Object.getOwnPropertySymbols;
4
- var W = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
5
- var q = (t, e, o) => e in t ? ee(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, j = (t, e) => {
1
+ var se = Object.defineProperty, oe = Object.defineProperties;
2
+ var ne = Object.getOwnPropertyDescriptors;
3
+ var j = Object.getOwnPropertySymbols;
4
+ var Q = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
+ var J = (t, e, o) => e in t ? se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, T = (t, e) => {
6
6
  for (var o in e || (e = {}))
7
- W.call(e, o) && q(t, o, e[o]);
8
- if (N)
9
- for (var o of N(e))
10
- Z.call(e, o) && q(t, o, e[o]);
7
+ Q.call(e, o) && J(t, o, e[o]);
8
+ if (j)
9
+ for (var o of j(e))
10
+ X.call(e, o) && J(t, o, e[o]);
11
11
  return t;
12
- }, H = (t, e) => te(t, se(e));
13
- var V = (t, e) => {
12
+ }, A = (t, e) => oe(t, ne(e));
13
+ var z = (t, e) => {
14
14
  var o = {};
15
15
  for (var s in t)
16
- W.call(t, s) && e.indexOf(s) < 0 && (o[s] = t[s]);
17
- if (t != null && N)
18
- for (var s of N(t))
19
- e.indexOf(s) < 0 && Z.call(t, s) && (o[s] = t[s]);
16
+ Q.call(t, s) && e.indexOf(s) < 0 && (o[s] = t[s]);
17
+ if (t != null && j)
18
+ for (var s of j(t))
19
+ e.indexOf(s) < 0 && X.call(t, s) && (o[s] = t[s]);
20
20
  return o;
21
21
  };
22
- var J = (t, e, o) => new Promise((s, a) => {
23
- var n = (g) => {
22
+ var Y = (t, e, o) => new Promise((s, a) => {
23
+ var n = (d) => {
24
24
  try {
25
- l(o.next(g));
26
- } catch ($) {
27
- a($);
25
+ l(o.next(d));
26
+ } catch (v) {
27
+ a(v);
28
28
  }
29
- }, r = (g) => {
29
+ }, r = (d) => {
30
30
  try {
31
- l(o.throw(g));
32
- } catch ($) {
33
- a($);
31
+ l(o.throw(d));
32
+ } catch (v) {
33
+ a(v);
34
34
  }
35
- }, l = (g) => g.done ? s(g.value) : Promise.resolve(g.value).then(n, r);
35
+ }, l = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(n, r);
36
36
  l((o = o.apply(t, e)).next());
37
37
  });
38
- import * as D from "element-plus";
39
- import { computed as y, createElementBlock as h, openBlock as c, mergeProps as M, renderSlot as m, createBlock as b, createSlots as _, renderList as f, withCtx as p, useAttrs as F, unref as C, normalizeProps as T, guardReactiveProps as B, mergeModels as Q, useModel as oe, createVNode as O, createTextVNode as X, useSlots as G, ref as R, watch as A, createCommentVNode as E, normalizeStyle as ne, normalizeClass as z, createElementVNode as k, toDisplayString as Y, provide as ae, Fragment as re, withModifiers as le, inject as ie, onMounted as ce, onUnmounted as ue, withDirectives as me, vShow as pe } from "vue";
40
- import { ElButton as de, ElCard as _e, ElInput as fe, ElForm as be, ElFormItem as ge, ElTooltip as Me, ElSelect as $e, ElOption as ve, ElOptionGroup as he, ElPagination as ye, ElRadio as Ce, ElRadioGroup as Se, ElRadioButton as ke, ElSwitch as Te, ElTag as Be, ElAlert as Ee, ElDialog as Oe, ElNotification as Pe, ElDatePicker as we, ElEmpty as Ie, ElTable as Ne, ElTableColumn as je } from "element-plus/es";
38
+ import * as q from "element-plus";
39
+ import { computed as h, createElementBlock as M, openBlock as i, mergeProps as $, renderSlot as m, createBlock as _, createSlots as g, renderList as b, withCtx as p, useAttrs as G, unref as k, normalizeProps as F, guardReactiveProps as U, createElementVNode as C, mergeModels as K, useModel as ae, createVNode as O, createTextVNode as x, ref as L, Teleport as re, TransitionGroup as le, Fragment as ee, normalizeClass as I, createCommentVNode as w, toDisplayString as V, resolveDynamicComponent as ie, useSlots as W, watch as R, normalizeStyle as ce, provide as ue, withModifiers as me, inject as pe, onMounted as de, onUnmounted as fe, withDirectives as _e, vShow as be } from "vue";
40
+ import { ElButton as ge, ElInput as $e, ElForm as Me, ElFormItem as ve, ElTooltip as he, ElSelect as ye, ElOption as Ce, ElOptionGroup as ke, ElPagination as Se, ElRadio as Te, ElRadioGroup as Be, ElRadioButton as we, ElSwitch as Ee, ElTag as Oe, ElAlert as Ie, ElDialog as Pe, ElNotification as Ne, ElDatePicker as je, ElEmpty as Ae, ElTable as ze, ElTableColumn as Le } from "element-plus/es";
41
41
  import "element-plus/es/components/base/style/index";
42
42
  import "element-plus/es/components/button/style/index";
43
- import "element-plus/es/components/card/style/index";
44
43
  import "element-plus/es/components/input/style/index";
45
44
  import "element-plus/es/components/form/style/index";
46
45
  import "element-plus/es/components/form-item/style/index";
@@ -61,12 +60,12 @@ import "element-plus/es/components/date-picker/style/index";
61
60
  import "element-plus/es/components/empty/style/index";
62
61
  import "element-plus/es/components/table/style/index";
63
62
  import "element-plus/es/components/table-column/style/index";
64
- const w = (t, e) => {
63
+ const E = (t, e) => {
65
64
  const o = t.__vccOpts || t;
66
65
  for (const [s, a] of e)
67
66
  o[s] = a;
68
67
  return o;
69
- }, Ae = /* @__PURE__ */ Object.assign({
68
+ }, Ve = /* @__PURE__ */ Object.assign({
70
69
  name: "MIcon"
71
70
  }, {
72
71
  __name: "Icon",
@@ -106,31 +105,31 @@ const w = (t, e) => {
106
105
  },
107
106
  emits: ["click"],
108
107
  setup(t, { emit: e }) {
109
- const o = t, s = e, a = y(() => {
108
+ const o = t, s = e, a = h(() => {
110
109
  const l = ["iconfont"];
111
110
  return o.name && l.push(`${o.prefix}-${o.name}`), o.spin && l.push("icon-spin"), o.pulse && l.push("icon-pulse"), o.flip && l.push(`icon-flip-${o.flip}`), l;
112
- }), n = y(() => {
111
+ }), n = h(() => {
113
112
  const l = {};
114
113
  return o.size && (typeof o.size == "number" ? l.fontSize = `${o.size}px` : l.fontSize = o.size), o.color && (l.color = o.color), o.rotate !== 0 && (l.transform = `rotate(${o.rotate}deg)`), l;
115
114
  }), r = (l) => {
116
115
  s("click", l);
117
116
  };
118
- return (l, g) => (c(), h("i", M({
117
+ return (l, d) => (i(), M("i", $({
119
118
  class: a.value,
120
119
  style: n.value
121
120
  }, l.$attrs, { onClick: r }), [
122
121
  m(l.$slots, "default", {}, void 0, !0)
123
122
  ], 16));
124
123
  }
125
- }), P = /* @__PURE__ */ w(Ae, [["__scopeId", "data-v-90f84c9e"]]), ze = /* @__PURE__ */ Object.assign({
124
+ }), P = /* @__PURE__ */ E(Ve, [["__scopeId", "data-v-90f84c9e"]]), Re = /* @__PURE__ */ Object.assign({
126
125
  name: "MButton"
127
126
  }, {
128
127
  __name: "Button",
129
128
  setup(t) {
130
129
  return (e, o) => {
131
- const s = de;
132
- return c(), b(s, M(e.$attrs, { class: "m-button" }), _({ _: 2 }, [
133
- f(e.$slots, (a, n) => ({
130
+ const s = ge;
131
+ return i(), _(s, $(e.$attrs, { class: "m-button" }), g({ _: 2 }, [
132
+ b(e.$slots, (a, n) => ({
134
133
  name: n,
135
134
  fn: p(() => [
136
135
  m(e.$slots, n, {}, void 0, !0)
@@ -139,34 +138,17 @@ const w = (t, e) => {
139
138
  ]), 1040);
140
139
  };
141
140
  }
142
- }), Le = /* @__PURE__ */ w(ze, [["__scopeId", "data-v-9c99add1"]]), Ve = /* @__PURE__ */ Object.assign({
143
- name: "MCard"
144
- }, {
145
- __name: "Card",
146
- setup(t) {
147
- return (e, o) => {
148
- const s = _e;
149
- return c(), b(s, M(e.$attrs, { class: "m-card" }), _({ _: 2 }, [
150
- f(e.$slots, (a, n) => ({
151
- name: n,
152
- fn: p(() => [
153
- m(e.$slots, n)
154
- ])
155
- }))
156
- ]), 1040);
157
- };
158
- }
159
- }), Re = /* @__PURE__ */ Object.assign({
141
+ }), De = /* @__PURE__ */ E(Re, [["__scopeId", "data-v-9c99add1"]]), Ge = /* @__PURE__ */ Object.assign({
160
142
  name: "MInput"
161
143
  }, {
162
144
  __name: "Input",
163
145
  setup(t) {
164
146
  return (e, o) => {
165
- const s = fe;
166
- return c(), b(s, M(e.$attrs, {
147
+ const s = $e;
148
+ return i(), _(s, $(e.$attrs, {
167
149
  class: ["m-input", { solid: e.$attrs.styleType === "solid" }]
168
- }), _({ _: 2 }, [
169
- f(e.$slots, (a, n) => ({
150
+ }), g({ _: 2 }, [
151
+ b(e.$slots, (a, n) => ({
170
152
  name: n,
171
153
  fn: p(() => [
172
154
  m(e.$slots, n)
@@ -175,15 +157,15 @@ const w = (t, e) => {
175
157
  ]), 1040, ["class"]);
176
158
  };
177
159
  }
178
- }), De = /* @__PURE__ */ Object.assign({
160
+ }), Fe = /* @__PURE__ */ Object.assign({
179
161
  name: "MForm"
180
162
  }, {
181
163
  __name: "Form",
182
164
  setup(t) {
183
165
  return (e, o) => {
184
- const s = be;
185
- return c(), b(s, M(e.$attrs, { class: "m-form" }), _({ _: 2 }, [
186
- f(e.$slots, (a, n) => ({
166
+ const s = Me;
167
+ return i(), _(s, $(e.$attrs, { class: "m-form" }), g({ _: 2 }, [
168
+ b(e.$slots, (a, n) => ({
187
169
  name: n,
188
170
  fn: p(() => [
189
171
  m(e.$slots, n)
@@ -192,15 +174,15 @@ const w = (t, e) => {
192
174
  ]), 1040);
193
175
  };
194
176
  }
195
- }), Fe = /* @__PURE__ */ Object.assign({
177
+ }), Ue = /* @__PURE__ */ Object.assign({
196
178
  name: "MFormItem"
197
179
  }, {
198
180
  __name: "FormItem",
199
181
  setup(t) {
200
182
  return (e, o) => {
201
- const s = ge;
202
- return c(), b(s, M(e.$attrs, { class: "m-form-item" }), _({ _: 2 }, [
203
- f(e.$slots, (a, n) => ({
183
+ const s = ve;
184
+ return i(), _(s, $(e.$attrs, { class: "m-form-item" }), g({ _: 2 }, [
185
+ b(e.$slots, (a, n) => ({
204
186
  name: n,
205
187
  fn: p(() => [
206
188
  m(e.$slots, n)
@@ -209,20 +191,20 @@ const w = (t, e) => {
209
191
  ]), 1040);
210
192
  };
211
193
  }
212
- }), Ge = (...t) => t.filter(Boolean).join(" "), Ue = (t, ...e) => {
213
- const o = j({}, t);
194
+ }), qe = (...t) => t.filter(Boolean).join(" "), We = (t, ...e) => {
195
+ const o = T({}, t);
214
196
  return e.forEach((s) => {
215
197
  delete o[s];
216
198
  }), o;
217
199
  };
218
- function I(t, e = "popperClass") {
219
- const o = F(), s = y(() => Ue(o, e)), a = y(() => Ge(t, o[e]));
200
+ function N(t, e = "popperClass") {
201
+ const o = G(), s = h(() => We(o, e)), a = h(() => qe(t, o[e]));
220
202
  return {
221
203
  mergedAttrs: s,
222
204
  className: a
223
205
  };
224
206
  }
225
- const qe = /* @__PURE__ */ Object.assign({
207
+ const Ze = /* @__PURE__ */ Object.assign({
226
208
  name: "MTooltip"
227
209
  }, {
228
210
  __name: "Tooltip",
@@ -233,11 +215,11 @@ const qe = /* @__PURE__ */ Object.assign({
233
215
  }
234
216
  },
235
217
  setup(t) {
236
- const { mergedAttrs: e, className: o } = I("mc-tooltip-popper");
218
+ const { mergedAttrs: e, className: o } = N("mc-tooltip-popper");
237
219
  return (s, a) => {
238
- const n = Me;
239
- return c(), b(n, M(C(e), { "popper-class": C(o) }), _({ _: 2 }, [
240
- f(s.$slots, (r, l) => ({
220
+ const n = he;
221
+ return i(), _(n, $(k(e), { "popper-class": k(o) }), g({ _: 2 }, [
222
+ b(s.$slots, (r, l) => ({
241
223
  name: l,
242
224
  fn: p(() => [
243
225
  m(s.$slots, l)
@@ -246,18 +228,18 @@ const qe = /* @__PURE__ */ Object.assign({
246
228
  ]), 1040, ["popper-class"]);
247
229
  };
248
230
  }
249
- }), We = /* @__PURE__ */ Object.assign({
231
+ }), He = /* @__PURE__ */ Object.assign({
250
232
  name: "MSelect"
251
233
  }, {
252
234
  __name: "Select",
253
235
  setup(t) {
254
236
  return (e, o) => {
255
- const s = $e;
256
- return c(), b(s, M({
237
+ const s = ye;
238
+ return i(), _(s, $({
257
239
  class: ["m-select2", { solid: e.$attrs.styleType === "solid" }],
258
240
  "show-arrow": !1
259
- }, e.$attrs), _({ _: 2 }, [
260
- f(e.$slots, (a, n) => ({
241
+ }, e.$attrs), g({ _: 2 }, [
242
+ b(e.$slots, (a, n) => ({
261
243
  name: n,
262
244
  fn: p(() => [
263
245
  m(e.$slots, n)
@@ -266,15 +248,15 @@ const qe = /* @__PURE__ */ Object.assign({
266
248
  ]), 1040, ["class"]);
267
249
  };
268
250
  }
269
- }), Ze = /* @__PURE__ */ Object.assign({
251
+ }), Je = /* @__PURE__ */ Object.assign({
270
252
  name: "MOption"
271
253
  }, {
272
254
  __name: "Option",
273
255
  setup(t) {
274
256
  return (e, o) => {
275
- const s = ve;
276
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
277
- f(e.$slots, (a, n) => ({
257
+ const s = Ce;
258
+ return i(), _(s, F(U(e.$attrs)), g({ _: 2 }, [
259
+ b(e.$slots, (a, n) => ({
278
260
  name: n,
279
261
  fn: p(() => [
280
262
  m(e.$slots, n)
@@ -283,15 +265,15 @@ const qe = /* @__PURE__ */ Object.assign({
283
265
  ]), 1040);
284
266
  };
285
267
  }
286
- }), He = /* @__PURE__ */ Object.assign({
268
+ }), Qe = /* @__PURE__ */ Object.assign({
287
269
  name: "MOptionGroup"
288
270
  }, {
289
271
  __name: "OptionGroup",
290
272
  setup(t) {
291
273
  return (e, o) => {
292
- const s = he;
293
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
294
- f(e.$slots, (a, n) => ({
274
+ const s = ke;
275
+ return i(), _(s, F(U(e.$attrs)), g({ _: 2 }, [
276
+ b(e.$slots, (a, n) => ({
295
277
  name: n,
296
278
  fn: p(() => [
297
279
  m(e.$slots, n)
@@ -300,15 +282,15 @@ const qe = /* @__PURE__ */ Object.assign({
300
282
  ]), 1040);
301
283
  };
302
284
  }
303
- }), Je = /* @__PURE__ */ Object.assign({
285
+ }), Xe = /* @__PURE__ */ Object.assign({
304
286
  name: "MPagination"
305
287
  }, {
306
288
  __name: "Pagination",
307
289
  setup(t) {
308
290
  return (e, o) => {
309
- const s = ye;
310
- return c(), b(s, M(e.$attrs, { class: "m-pagination" }), _({ _: 2 }, [
311
- f(e.$slots, (a, n) => ({
291
+ const s = Se;
292
+ return i(), _(s, $(e.$attrs, { class: "m-pagination" }), g({ _: 2 }, [
293
+ b(e.$slots, (a, n) => ({
312
294
  name: n,
313
295
  fn: p(() => [
314
296
  m(e.$slots, n)
@@ -317,7 +299,7 @@ const qe = /* @__PURE__ */ Object.assign({
317
299
  ]), 1040);
318
300
  };
319
301
  }
320
- }), Qe = /* @__PURE__ */ Object.assign({
302
+ }), Ye = /* @__PURE__ */ Object.assign({
321
303
  name: "MRadio"
322
304
  }, {
323
305
  __name: "Radio",
@@ -328,11 +310,11 @@ const qe = /* @__PURE__ */ Object.assign({
328
310
  }
329
311
  },
330
312
  setup(t) {
331
- const { mergedAttrs: e } = I("mc-radio-popper");
313
+ const { mergedAttrs: e } = N("mc-radio-popper");
332
314
  return (o, s) => {
333
- const a = Ce;
334
- return c(), b(a, M(C(e), { class: "m-radio" }), _({ _: 2 }, [
335
- f(o.$slots, (n, r) => ({
315
+ const a = Te;
316
+ return i(), _(a, $(k(e), { class: "m-radio" }), g({ _: 2 }, [
317
+ b(o.$slots, (n, r) => ({
336
318
  name: r,
337
319
  fn: p(() => [
338
320
  m(o.$slots, r)
@@ -341,7 +323,7 @@ const qe = /* @__PURE__ */ Object.assign({
341
323
  ]), 1040);
342
324
  };
343
325
  }
344
- }), Xe = /* @__PURE__ */ Object.assign({
326
+ }), Ke = /* @__PURE__ */ Object.assign({
345
327
  name: "MRadioGroup"
346
328
  }, {
347
329
  __name: "RadioGroup",
@@ -352,29 +334,29 @@ const qe = /* @__PURE__ */ Object.assign({
352
334
  }
353
335
  },
354
336
  setup(t) {
355
- const e = F(), o = y(() => {
337
+ const e = G(), o = h(() => {
356
338
  const a = "mc-radio-group-popper";
357
339
  return e.popperClass ? `${a} ${e.popperClass}`.trim() : a;
358
- }), s = y(() => {
340
+ }), s = h(() => {
359
341
  const r = e, { popperClass: a } = r;
360
- return V(r, ["popperClass"]);
342
+ return z(r, ["popperClass"]);
361
343
  });
362
344
  return (a, n) => {
363
- const r = Se;
364
- return c(), b(r, M(s.value, {
345
+ const r = Be;
346
+ return i(), _(r, $(s.value, {
365
347
  "popper-class": o.value,
366
348
  class: "m-radio-group"
367
- }), _({ _: 2 }, [
368
- f(a.$slots, (l, g) => ({
369
- name: g,
349
+ }), g({ _: 2 }, [
350
+ b(a.$slots, (l, d) => ({
351
+ name: d,
370
352
  fn: p(() => [
371
- m(a.$slots, g)
353
+ m(a.$slots, d)
372
354
  ])
373
355
  }))
374
356
  ]), 1040, ["popper-class"]);
375
357
  };
376
358
  }
377
- }), Ye = /* @__PURE__ */ Object.assign({
359
+ }), xe = /* @__PURE__ */ Object.assign({
378
360
  name: "MRadioButton"
379
361
  }, {
380
362
  __name: "RadioButton",
@@ -385,11 +367,11 @@ const qe = /* @__PURE__ */ Object.assign({
385
367
  }
386
368
  },
387
369
  setup(t) {
388
- const { mergedAttrs: e } = I("mc-radio-button-popper");
370
+ const { mergedAttrs: e } = N("mc-radio-button-popper");
389
371
  return (o, s) => {
390
- const a = ke;
391
- return c(), b(a, M(C(e), { class: "m-radio-button" }), _({ _: 2 }, [
392
- f(o.$slots, (n, r) => ({
372
+ const a = we;
373
+ return i(), _(a, $(k(e), { class: "m-radio-button" }), g({ _: 2 }, [
374
+ b(o.$slots, (n, r) => ({
393
375
  name: r,
394
376
  fn: p(() => [
395
377
  m(o.$slots, r)
@@ -398,7 +380,7 @@ const qe = /* @__PURE__ */ Object.assign({
398
380
  ]), 1040);
399
381
  };
400
382
  }
401
- }), Ke = /* @__PURE__ */ Object.assign({
383
+ }), et = /* @__PURE__ */ Object.assign({
402
384
  name: "MSwitch"
403
385
  }, {
404
386
  __name: "Switch",
@@ -409,14 +391,14 @@ const qe = /* @__PURE__ */ Object.assign({
409
391
  }
410
392
  },
411
393
  setup(t) {
412
- const { mergedAttrs: e, className: o } = I("mc-switch-popper");
394
+ const { mergedAttrs: e, className: o } = N("mc-switch-popper");
413
395
  return (s, a) => {
414
- const n = Te;
415
- return c(), b(n, M(C(e), {
416
- "popper-class": C(o),
396
+ const n = Ee;
397
+ return i(), _(n, $(k(e), {
398
+ "popper-class": k(o),
417
399
  class: "m-switch"
418
- }), _({ _: 2 }, [
419
- f(s.$slots, (r, l) => ({
400
+ }), g({ _: 2 }, [
401
+ b(s.$slots, (r, l) => ({
420
402
  name: l,
421
403
  fn: p(() => [
422
404
  m(s.$slots, l)
@@ -425,15 +407,15 @@ const qe = /* @__PURE__ */ Object.assign({
425
407
  ]), 1040, ["popper-class"]);
426
408
  };
427
409
  }
428
- }), xe = /* @__PURE__ */ Object.assign({
410
+ }), tt = /* @__PURE__ */ Object.assign({
429
411
  name: "MTag"
430
412
  }, {
431
413
  __name: "Tag",
432
414
  setup(t) {
433
415
  return (e, o) => {
434
- const s = Be;
435
- return c(), b(s, M(e.$attrs, { class: "m-tag" }), _({ _: 2 }, [
436
- f(e.$slots, (a, n) => ({
416
+ const s = Oe;
417
+ return i(), _(s, $(e.$attrs, { class: "m-tag" }), g({ _: 2 }, [
418
+ b(e.$slots, (a, n) => ({
437
419
  name: n,
438
420
  fn: p(() => [
439
421
  m(e.$slots, n)
@@ -442,26 +424,54 @@ const qe = /* @__PURE__ */ Object.assign({
442
424
  ]), 1040);
443
425
  };
444
426
  }
445
- }), et = /* @__PURE__ */ Object.assign({
427
+ }), st = ["src", "alt"], ot = ["success", "warning", "error"], nt = {
446
428
  name: "MAlert"
447
- }, {
448
- __name: "Alert",
429
+ }, at = /* @__PURE__ */ Object.assign(nt, {
430
+ props: {
431
+ type: {
432
+ type: String,
433
+ default: "success",
434
+ validator: (t) => ot.includes(t)
435
+ },
436
+ useCustomIcon: {
437
+ type: Boolean,
438
+ default: !0
439
+ }
440
+ },
449
441
  setup(t) {
450
- return (e, o) => {
451
- const s = Ee;
452
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
453
- f(e.$slots, (a, n) => ({
454
- name: n,
442
+ const e = t, o = G(), s = h(() => {
443
+ const l = o, { useCustomIcon: n } = l, r = z(l, ["useCustomIcon"]);
444
+ return A(T({}, r), {
445
+ type: e.type
446
+ // 确保 type 属性正确传递给 el-alert
447
+ });
448
+ }), a = h(() => e.useCustomIcon ? `/images/alert/alert-${e.type}.png` : null);
449
+ return (n, r) => {
450
+ const l = Ie;
451
+ return i(), _(l, $(s.value, { class: "mc-alert" }), g({ _: 2 }, [
452
+ a.value ? {
453
+ name: "icon",
455
454
  fn: p(() => [
456
- m(e.$slots, n)
455
+ C("img", {
456
+ src: a.value,
457
+ alt: `${t.type} icon`,
458
+ class: "mc-alert-icon"
459
+ }, null, 8, st)
460
+ ]),
461
+ key: "0"
462
+ } : void 0,
463
+ b(n.$slots, (d, v) => ({
464
+ name: v,
465
+ fn: p(() => [
466
+ m(n.$slots, v)
457
467
  ])
458
468
  }))
459
469
  ]), 1040);
460
470
  };
461
471
  }
462
- }), tt = {
472
+ }), rt = {
463
473
  __name: "Dialog",
464
- props: /* @__PURE__ */ Q({
474
+ props: /* @__PURE__ */ K({
465
475
  width: {
466
476
  type: String,
467
477
  default: "440px"
@@ -489,13 +499,13 @@ const qe = /* @__PURE__ */ Object.assign({
489
499
  },
490
500
  modelModifiers: {}
491
501
  }),
492
- emits: /* @__PURE__ */ Q(["close"], ["update:modelValue"]),
502
+ emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
493
503
  setup(t, { emit: e }) {
494
- const o = oe(t, "modelValue");
504
+ const o = ae(t, "modelValue");
495
505
  return (s, a) => {
496
- const n = Oe;
497
- return c(), h("div", null, [
498
- O(n, M({
506
+ const n = Pe;
507
+ return i(), M("div", null, [
508
+ O(n, $({
499
509
  modelValue: o.value,
500
510
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
501
511
  width: t.width,
@@ -506,17 +516,17 @@ const qe = /* @__PURE__ */ Object.assign({
506
516
  }, s.$attrs, {
507
517
  class: "m-dialog",
508
518
  "header-class": "m-header"
509
- }), _({
519
+ }), g({
510
520
  default: p(() => [
511
- a[1] || (a[1] = X("测试组 ", -1)),
521
+ a[1] || (a[1] = x("测试组 ", -1)),
512
522
  m(s.$slots, "default")
513
523
  ]),
514
524
  _: 2
515
525
  }, [
516
526
  s.$slots.header ? {
517
527
  name: "header",
518
- fn: p(({ close: r, titleId: l, titleClass: g }) => [
519
- m(s.$slots, "header", T(B({ close: r, titleId: l, titleClass: g })))
528
+ fn: p(({ close: r, titleId: l, titleClass: d }) => [
529
+ m(s.$slots, "header", F(U({ close: r, titleId: l, titleClass: d })))
520
530
  ]),
521
531
  key: "0"
522
532
  } : void 0,
@@ -531,24 +541,117 @@ const qe = /* @__PURE__ */ Object.assign({
531
541
  ]);
532
542
  };
533
543
  }
534
- }, st = /* @__PURE__ */ Object.assign({
544
+ }, lt = {
535
545
  name: "MNotification"
536
- }, {
537
- __name: "Notification",
538
- setup(t) {
539
- return (e, o) => {
540
- const s = Pe;
541
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
542
- f(e.$slots, (a, n) => ({
543
- name: n,
544
- fn: p(() => [
545
- m(e.$slots, n)
546
- ])
547
- }))
548
- ]), 1040);
546
+ };
547
+ function it(t, e, o, s, a, n) {
548
+ const r = Ne;
549
+ return i(), _(r, $(t.$attrs, { class: "mc-notification" }), g({ _: 2 }, [
550
+ b(t.$slots, (l, d) => ({
551
+ name: d,
552
+ fn: p(() => [
553
+ m(t.$slots, d)
554
+ ])
555
+ }))
556
+ ]), 1040);
557
+ }
558
+ const ct = /* @__PURE__ */ E(lt, [["render", it]]), B = L([]);
559
+ let ut = 0;
560
+ const vs = {
561
+ // 默认配置
562
+ defaultOptions: {
563
+ title: "",
564
+ message: "",
565
+ duration: 4500,
566
+ position: "top-right",
567
+ showClose: !0,
568
+ offset: 20
569
+ },
570
+ // 显示通知
571
+ show(t = {}) {
572
+ const e = A(T(T({}, this.defaultOptions), t), {
573
+ id: ++ut
574
+ });
575
+ return B.value.push(e), e.duration > 0 && setTimeout(() => {
576
+ this.close(e.id);
577
+ }, e.duration), {
578
+ close: () => this.close(e.id)
579
+ };
580
+ },
581
+ // 关闭指定通知
582
+ close(t) {
583
+ const e = B.value.findIndex((o) => o.id === t);
584
+ e > -1 && B.value.splice(e, 1);
585
+ },
586
+ // 关闭所有通知
587
+ closeAll() {
588
+ B.value = [];
589
+ },
590
+ // 便捷方法
591
+ success(t = {}) {
592
+ return this.show(t);
593
+ },
594
+ warning(t = {}) {
595
+ return this.show(t);
596
+ },
597
+ error(t = {}) {
598
+ return this.show(t);
599
+ }
600
+ }, mt = (t) => {
601
+ const e = B.value.findIndex((o) => o.id === t);
602
+ e > -1 && B.value.splice(e, 1);
603
+ }, pt = {
604
+ name: "MNotifiMessage",
605
+ setup() {
606
+ return {
607
+ notifications: B,
608
+ closeNotification: mt
549
609
  };
550
610
  }
551
- }), ot = /* @__PURE__ */ Object.assign({
611
+ }, dt = { class: "notification-content" }, ft = { class: "notification-title" }, _t = { class: "notification-message" }, bt = {
612
+ key: 0,
613
+ class: "notification-action"
614
+ }, gt = ["onClick"];
615
+ function $t(t, e, o, s, a, n) {
616
+ return i(), _(re, { to: "body" }, [
617
+ O(le, {
618
+ name: "notification",
619
+ tag: "div",
620
+ class: "notification-container"
621
+ }, {
622
+ default: p(() => [
623
+ (i(!0), M(ee, null, b(s.notifications, (r) => (i(), M("div", {
624
+ key: r.id,
625
+ class: I([
626
+ "custom-notification",
627
+ `notification-${r.position}`
628
+ ])
629
+ }, [
630
+ e[0] || (e[0] = C("div", { class: "notification-icon" }, [
631
+ C("img", {
632
+ src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
633
+ alt: "notification icon"
634
+ })
635
+ ], -1)),
636
+ C("div", dt, [
637
+ C("div", ft, V(r.title), 1),
638
+ C("div", _t, V(r.message), 1),
639
+ r.slotContent ? (i(), M("div", bt, [
640
+ (i(), _(ie(r.slotContent)))
641
+ ])) : w("", !0)
642
+ ]),
643
+ r.showClose ? (i(), M("button", {
644
+ key: 0,
645
+ class: "notification-close",
646
+ onClick: (l) => s.closeNotification(r.id)
647
+ }, " × ", 8, gt)) : w("", !0)
648
+ ], 2))), 128))
649
+ ]),
650
+ _: 1
651
+ })
652
+ ]);
653
+ }
654
+ const Mt = /* @__PURE__ */ E(pt, [["render", $t]]), vt = /* @__PURE__ */ Object.assign({
552
655
  name: "MDatePicker"
553
656
  }, {
554
657
  __name: "DatePicker",
@@ -559,14 +662,14 @@ const qe = /* @__PURE__ */ Object.assign({
559
662
  }
560
663
  },
561
664
  setup(t) {
562
- const { mergedAttrs: e, className: o } = I(
665
+ const { mergedAttrs: e, className: o } = N(
563
666
  "mc-datepicker-popper",
564
667
  "popperClass"
565
668
  );
566
669
  return (s, a) => {
567
- const n = we;
568
- return c(), b(n, M(C(e), { "popper-class": C(o) }), _({ _: 2 }, [
569
- f(s.$slots, (r, l) => ({
670
+ const n = je;
671
+ return i(), _(n, $(k(e), { "popper-class": k(o) }), g({ _: 2 }, [
672
+ b(s.$slots, (r, l) => ({
570
673
  name: l,
571
674
  fn: p(() => [
572
675
  m(s.$slots, l)
@@ -575,7 +678,7 @@ const qe = /* @__PURE__ */ Object.assign({
575
678
  ]), 1040, ["popper-class"]);
576
679
  };
577
680
  }
578
- }), nt = [
681
+ }), ht = [
579
682
  "404",
580
683
  "billing",
581
684
  "cart",
@@ -592,45 +695,45 @@ const qe = /* @__PURE__ */ Object.assign({
592
695
  "subscription",
593
696
  "todo",
594
697
  "wishlist"
595
- ], at = {
698
+ ], yt = {
596
699
  name: "MEmpty"
597
- }, rt = /* @__PURE__ */ Object.assign(at, {
700
+ }, Ct = /* @__PURE__ */ Object.assign(yt, {
598
701
  props: {
599
702
  image: {
600
703
  type: String,
601
704
  default: "orders",
602
- validator: (t) => t.includes("/") || t.includes("http") ? !0 : nt.includes(t)
705
+ validator: (t) => t.includes("/") || t.includes("http") ? !0 : ht.includes(t)
603
706
  }
604
707
  },
605
708
  setup(t) {
606
- const e = t, o = F(), s = y(() => {
709
+ const e = t, o = G(), s = h(() => {
607
710
  const l = o, { image: n } = l;
608
- return V(l, ["image"]);
609
- }), a = y(() => {
711
+ return z(l, ["image"]);
712
+ }), a = h(() => {
610
713
  const { image: n } = e;
611
714
  return n.includes("/") || n.includes("http") ? n : `/images/empty/${n}.png`;
612
715
  });
613
716
  return (n, r) => {
614
- const l = Ie;
615
- return c(), b(l, M(s.value, { image: a.value }), _({ _: 2 }, [
616
- f(n.$slots, (g, $) => ({
617
- name: $,
717
+ const l = Ae;
718
+ return i(), _(l, $(s.value, { image: a.value }), g({ _: 2 }, [
719
+ b(n.$slots, (d, v) => ({
720
+ name: v,
618
721
  fn: p(() => [
619
- m(n.$slots, $)
722
+ m(n.$slots, v)
620
723
  ])
621
724
  }))
622
725
  ]), 1040, ["image"]);
623
726
  };
624
727
  }
625
- }), lt = /* @__PURE__ */ Object.assign({
728
+ }), kt = /* @__PURE__ */ Object.assign({
626
729
  name: "MTable"
627
730
  }, {
628
731
  __name: "Table",
629
732
  setup(t) {
630
733
  return (e, o) => {
631
- const s = Ne;
632
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
633
- f(e.$slots, (a, n) => ({
734
+ const s = ze;
735
+ return i(), _(s, F(U(e.$attrs)), g({ _: 2 }, [
736
+ b(e.$slots, (a, n) => ({
634
737
  name: n,
635
738
  fn: p(() => [
636
739
  m(e.$slots, n)
@@ -639,15 +742,15 @@ const qe = /* @__PURE__ */ Object.assign({
639
742
  ]), 1040);
640
743
  };
641
744
  }
642
- }), it = /* @__PURE__ */ Object.assign({
745
+ }), St = /* @__PURE__ */ Object.assign({
643
746
  name: "MTableColumn"
644
747
  }, {
645
748
  __name: "TableColumn",
646
749
  setup(t) {
647
750
  return (e, o) => {
648
- const s = je;
649
- return c(), b(s, M(e.$attrs, { class: "m-table-column" }), _({ _: 2 }, [
650
- f(e.$slots, (a, n) => ({
751
+ const s = Le;
752
+ return i(), _(s, $(e.$attrs, { class: "m-table-column" }), g({ _: 2 }, [
753
+ b(e.$slots, (a, n) => ({
651
754
  name: n,
652
755
  fn: p(() => [
653
756
  m(e.$slots, n)
@@ -656,10 +759,10 @@ const qe = /* @__PURE__ */ Object.assign({
656
759
  ]), 1040);
657
760
  };
658
761
  }
659
- }), ct = { class: "m-banner__content" }, ut = {
762
+ }), Tt = { class: "m-banner__content" }, Bt = {
660
763
  key: 0,
661
764
  class: "m-banner__icon"
662
- }, mt = { class: "m-banner__text" }, pt = /* @__PURE__ */ Object.assign({
765
+ }, wt = { class: "m-banner__text" }, Et = /* @__PURE__ */ Object.assign({
663
766
  name: "MBanner"
664
767
  }, {
665
768
  __name: "Banner",
@@ -723,68 +826,68 @@ const qe = /* @__PURE__ */ Object.assign({
723
826
  },
724
827
  emits: ["close", "update:visible"],
725
828
  setup(t, { expose: e, emit: o }) {
726
- const s = G(), a = t, n = o, r = R(a.visible);
727
- A(() => a.visible, (u) => {
829
+ const s = W(), a = t, n = o, r = L(a.visible);
830
+ R(() => a.visible, (u) => {
728
831
  r.value = u;
729
832
  });
730
- const l = y(() => {
833
+ const l = h(() => {
731
834
  const u = {};
732
835
  return a.backgroundColor && (u.backgroundColor = a.backgroundColor), a.textColor && (u.color = a.textColor), a.borderColor && (u.borderColor = a.borderColor), u;
733
- }), g = {
836
+ }), d = {
734
837
  info: "info",
735
838
  success: "check-circle",
736
839
  warning: "warning",
737
840
  error: "close-circle"
738
841
  };
739
- y(() => a.icon || g[a.type]);
740
- const $ = () => {
842
+ h(() => a.icon || d[a.type]);
843
+ const v = () => {
741
844
  r.value = !1, n("update:visible", !1), n("close");
742
845
  };
743
- return A(r, (u) => {
846
+ return R(r, (u) => {
744
847
  u && a.duration > 0 && setTimeout(() => {
745
- $();
848
+ v();
746
849
  }, a.duration);
747
850
  }), e({
748
- close: $
749
- }), (u, v) => t.visible ? (c(), h("div", {
851
+ close: v
852
+ }), (u, y) => t.visible ? (i(), M("div", {
750
853
  key: 0,
751
- class: z(["m-banner", [
854
+ class: I(["m-banner", [
752
855
  `m-banner--${t.type}`,
753
856
  {
754
857
  "m-banner--closable": t.closable,
755
- "m-banner--with-icon": t.icon || C(s).icon
858
+ "m-banner--with-icon": t.icon || k(s).icon
756
859
  }
757
860
  ]]),
758
- style: ne(l.value)
861
+ style: ce(l.value)
759
862
  }, [
760
- k("div", ct, [
761
- t.icon || C(s).icon ? (c(), h("div", ut, [
863
+ C("div", Tt, [
864
+ t.icon || k(s).icon ? (i(), M("div", Bt, [
762
865
  m(u.$slots, "icon", {}, () => [
763
866
  O(P, {
764
867
  name: t.icon,
765
868
  size: t.iconSize
766
869
  }, null, 8, ["name", "size"])
767
870
  ], !0)
768
- ])) : E("", !0),
769
- k("div", mt, [
871
+ ])) : w("", !0),
872
+ C("div", wt, [
770
873
  m(u.$slots, "default", {}, () => [
771
- X(Y(t.content), 1)
874
+ x(V(t.content), 1)
772
875
  ], !0)
773
876
  ]),
774
- t.closable ? (c(), h("div", {
877
+ t.closable ? (i(), M("div", {
775
878
  key: 1,
776
879
  class: "m-banner__close",
777
- onClick: $
880
+ onClick: v
778
881
  }, [
779
882
  O(P, {
780
883
  name: "lucide-x",
781
884
  size: t.closeIconSize
782
885
  }, null, 8, ["size"])
783
- ])) : E("", !0)
886
+ ])) : w("", !0)
784
887
  ])
785
- ], 6)) : E("", !0);
888
+ ], 6)) : w("", !0);
786
889
  }
787
- }), dt = /* @__PURE__ */ w(pt, [["__scopeId", "data-v-00c80323"]]), _t = { class: "m-tabs__header" }, ft = { class: "m-tabs__nav" }, bt = ["onClick"], gt = { class: "m-tabs__item-text" }, Mt = { key: 1 }, $t = ["onClick"], vt = { class: "m-tabs__content" }, ht = {
890
+ }), Ot = /* @__PURE__ */ E(Et, [["__scopeId", "data-v-00c80323"]]), It = { class: "m-tabs__header" }, Pt = { class: "m-tabs__nav" }, Nt = ["onClick"], jt = { class: "m-tabs__item-text" }, At = { key: 1 }, zt = ["onClick"], Lt = { class: "m-tabs__content" }, Vt = {
788
891
  __name: "Tabs",
789
892
  props: {
790
893
  // 当前激活的标签页
@@ -833,94 +936,94 @@ const qe = /* @__PURE__ */ Object.assign({
833
936
  emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
834
937
  setup(t, { expose: e, emit: o }) {
835
938
  const s = t, a = o;
836
- G();
837
- const n = R([]), r = R(s.modelValue);
838
- A(() => s.modelValue, (u) => {
939
+ W();
940
+ const n = L([]), r = L(s.modelValue);
941
+ R(() => s.modelValue, (u) => {
839
942
  r.value = u;
840
- }), A(r, (u) => {
943
+ }), R(r, (u) => {
841
944
  a("update:modelValue", u), a("tab-change", u);
842
- }), ae("tabsContext", {
945
+ }), ue("tabsContext", {
843
946
  registerTab: (u) => {
844
- const v = n.value.findIndex((d) => d.name === u.name);
845
- v >= 0 ? n.value[v] = u : n.value.push(u), !r.value && n.value.length > 0 && (r.value = n.value[0].name || 0);
947
+ const y = n.value.findIndex((f) => f.name === u.name);
948
+ y >= 0 ? n.value[y] = u : n.value.push(u), !r.value && n.value.length > 0 && (r.value = n.value[0].name || 0);
846
949
  },
847
950
  unregisterTab: (u) => {
848
- const v = n.value.findIndex((d) => d.name === u);
849
- v >= 0 && n.value.splice(v, 1);
951
+ const y = n.value.findIndex((f) => f.name === u);
952
+ y >= 0 && n.value.splice(y, 1);
850
953
  }
851
954
  });
852
- const l = (u, v) => J(this, null, function* () {
955
+ const l = (u, y) => Y(this, null, function* () {
853
956
  if (u.disabled) return;
854
- const d = u.name || v;
855
- if (r.value !== d) {
957
+ const f = u.name || y;
958
+ if (r.value !== f) {
856
959
  if (s.beforeLeave)
857
960
  try {
858
- if ((yield s.beforeLeave(r.value, d)) === !1) return;
961
+ if ((yield s.beforeLeave(r.value, f)) === !1) return;
859
962
  } catch (S) {
860
963
  return;
861
964
  }
862
- r.value = d, a("tab-click", { name: d, index: v, disabled: u.disabled });
965
+ r.value = f, a("tab-click", { name: f, index: y, disabled: u.disabled });
863
966
  }
864
- }), g = (u, v) => {
865
- const d = u.name || v;
866
- a("tab-remove", d), a("edit", d, "remove");
867
- }, $ = () => {
967
+ }), d = (u, y) => {
968
+ const f = u.name || y;
969
+ a("tab-remove", f), a("edit", f, "remove");
970
+ }, v = () => {
868
971
  a("tab-add"), a("edit", "", "add");
869
972
  };
870
973
  return e({
871
- activeName: y(() => r.value)
872
- }), (u, v) => (c(), h("div", {
873
- class: z(["m-tabs", [`m-tabs--${t.type}`, `m-tabs--${t.tabPosition}`]])
974
+ activeName: h(() => r.value)
975
+ }), (u, y) => (i(), M("div", {
976
+ class: I(["m-tabs", [`m-tabs--${t.type}`, `m-tabs--${t.tabPosition}`]])
874
977
  }, [
875
- k("div", _t, [
876
- k("div", ft, [
877
- (c(!0), h(re, null, f(n.value, (d, S) => {
878
- var U;
879
- return c(), h("div", {
880
- key: d.name || S,
881
- class: z([
978
+ C("div", It, [
979
+ C("div", Pt, [
980
+ (i(!0), M(ee, null, b(n.value, (f, S) => {
981
+ var H;
982
+ return i(), M("div", {
983
+ key: f.name || S,
984
+ class: I([
882
985
  "m-tabs__item",
883
986
  {
884
- "m-tabs__item--active": r.value === (d.name || S),
885
- "m-tabs__item--disabled": d.disabled,
886
- "m-tabs__item--closable": d.closable
987
+ "m-tabs__item--active": r.value === (f.name || S),
988
+ "m-tabs__item--disabled": f.disabled,
989
+ "m-tabs__item--closable": f.closable
887
990
  }
888
991
  ]),
889
- onClick: (x) => l(d, S)
992
+ onClick: (te) => l(f, S)
890
993
  }, [
891
- k("span", gt, [
892
- (U = d.$slots) != null && U.label ? m(u.$slots, `tab-${d.name || S}`, { key: 0 }, void 0, !0) : (c(), h("span", Mt, Y(d.label), 1))
994
+ C("span", jt, [
995
+ (H = f.$slots) != null && H.label ? m(u.$slots, `tab-${f.name || S}`, { key: 0 }, void 0, !0) : (i(), M("span", At, V(f.label), 1))
893
996
  ]),
894
- d.closable ? (c(), h("span", {
997
+ f.closable ? (i(), M("span", {
895
998
  key: 0,
896
999
  class: "m-tabs__item-close",
897
- onClick: le((x) => g(d, S), ["stop"])
1000
+ onClick: me((te) => d(f, S), ["stop"])
898
1001
  }, [
899
1002
  O(P, {
900
1003
  name: "lucide-x",
901
1004
  size: 12
902
1005
  })
903
- ], 8, $t)) : E("", !0)
904
- ], 10, bt);
1006
+ ], 8, zt)) : w("", !0)
1007
+ ], 10, Nt);
905
1008
  }), 128)),
906
- t.addable || t.editable ? (c(), h("div", {
1009
+ t.addable || t.editable ? (i(), M("div", {
907
1010
  key: 0,
908
1011
  class: "m-tabs__item m-tabs__item--add",
909
- onClick: $
1012
+ onClick: v
910
1013
  }, [
911
1014
  O(P, {
912
1015
  name: "plus",
913
1016
  size: 12
914
1017
  })
915
- ])) : E("", !0)
1018
+ ])) : w("", !0)
916
1019
  ])
917
1020
  ]),
918
- k("div", vt, [
1021
+ C("div", Lt, [
919
1022
  m(u.$slots, "default", {}, void 0, !0)
920
1023
  ])
921
1024
  ], 2));
922
1025
  }
923
- }, yt = /* @__PURE__ */ w(ht, [["__scopeId", "data-v-23508d30"]]), Ct = /* @__PURE__ */ Object.assign({
1026
+ }, Rt = /* @__PURE__ */ E(Vt, [["__scopeId", "data-v-23508d30"]]), Dt = /* @__PURE__ */ Object.assign({
924
1027
  name: "MTabPane"
925
1028
  }, {
926
1029
  __name: "TabPane",
@@ -952,8 +1055,8 @@ const qe = /* @__PURE__ */ Object.assign({
952
1055
  }
953
1056
  },
954
1057
  setup(t) {
955
- const e = t, o = G(), s = ie("tabsContext"), a = y(() => s ? s.activeName === (e.name || s.tabIndex) : !1);
956
- return ce(() => {
1058
+ const e = t, o = W(), s = pe("tabsContext"), a = h(() => s ? s.activeName === (e.name || s.tabIndex) : !1);
1059
+ return de(() => {
957
1060
  if (s) {
958
1061
  const n = {
959
1062
  name: e.name,
@@ -964,27 +1067,27 @@ const qe = /* @__PURE__ */ Object.assign({
964
1067
  };
965
1068
  s.registerTab(n);
966
1069
  }
967
- }), ue(() => {
1070
+ }), fe(() => {
968
1071
  s && s.unregisterTab(e.name);
969
- }), (n, r) => me((c(), h("div", {
970
- class: z(["m-tab-pane", {
1072
+ }), (n, r) => _e((i(), M("div", {
1073
+ class: I(["m-tab-pane", {
971
1074
  "m-tab-pane--active": a.value,
972
1075
  "m-tab-pane--disabled": t.disabled
973
1076
  }])
974
1077
  }, [
975
1078
  m(n.$slots, "default", {}, void 0, !0)
976
1079
  ], 2)), [
977
- [pe, a.value]
1080
+ [be, a.value]
978
1081
  ]);
979
1082
  }
980
- }), St = /* @__PURE__ */ w(Ct, [["__scopeId", "data-v-722bb248"]]);
981
- function L(t) {
1083
+ }), Gt = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-722bb248"]]);
1084
+ function D(t) {
982
1085
  t && t.classList && t.classList.add("mc-ui-override");
983
1086
  }
984
- function kt(t) {
985
- t && t.$el && L(t.$el);
1087
+ function Ft(t) {
1088
+ t && t.$el && D(t.$el);
986
1089
  }
987
- function Tt() {
1090
+ function Ut() {
988
1091
  typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((e) => {
989
1092
  e.forEach((o) => {
990
1093
  o.addedNodes.forEach((s) => {
@@ -1005,132 +1108,162 @@ function Tt() {
1005
1108
  subtree: !0
1006
1109
  }));
1007
1110
  }
1008
- function Bt(t = '[class*="el-"]') {
1111
+ function qt(t = '[class*="el-"]') {
1009
1112
  typeof document != "undefined" && document.querySelectorAll(t).forEach((o) => {
1010
1113
  const s = o.closest(".mc-ui-override") || o.parentElement;
1011
1114
  s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
1012
1115
  });
1013
1116
  }
1014
- function Et(t) {
1015
- return H(j({}, t), {
1117
+ function Wt(t) {
1118
+ return A(T({}, t), {
1016
1119
  mounted() {
1017
- L(this.$el), t.mounted && t.mounted.call(this);
1120
+ D(this.$el), t.mounted && t.mounted.call(this);
1018
1121
  },
1019
1122
  updated() {
1020
- L(this.$el), t.updated && t.updated.call(this);
1123
+ D(this.$el), t.updated && t.updated.call(this);
1021
1124
  }
1022
1125
  });
1023
1126
  }
1024
- const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1127
+ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1025
1128
  __proto__: null,
1026
- addComponentOverride: kt,
1027
- addOverrideClass: L,
1028
- applyGlobalOverride: Tt,
1029
- createOverrideComponent: Et,
1030
- forceRefreshStyles: Bt
1031
- }, Symbol.toStringTag, { value: "Module" })), K = [P, Le, Ve, Re, De, Fe, qe, We, Ze, He, Je, Qe, Xe, Ye, Ke, xe, et, tt, st, ot, rt, lt, it, dt, yt, St], i = {};
1032
- function Pt(t) {
1033
- const e = K.map((o) => {
1129
+ addComponentOverride: Ft,
1130
+ addOverrideClass: D,
1131
+ applyGlobalOverride: Ut,
1132
+ createOverrideComponent: Wt,
1133
+ forceRefreshStyles: qt
1134
+ }, Symbol.toStringTag, { value: "Module" })), Z = [P, De, Ge, Fe, Ue, Ze, He, Je, Qe, Xe, Ye, Ke, xe, et, tt, at, rt, ct, Mt, vt, Ct, kt, St, Ot, Rt, Gt], c = {};
1135
+ function Ht(t) {
1136
+ const e = Z.map((o) => {
1034
1137
  if (o && o.name && typeof o.name == "string") {
1035
1138
  let s = o.name.toLowerCase();
1036
1139
  return {
1037
1140
  mradiogroup: "m-radio-group",
1038
1141
  mradiobutton: "m-radio-button",
1039
1142
  mformitem: "m-form-item",
1040
- moptiongroup: "m-option-group"
1143
+ moptiongroup: "m-option-group",
1144
+ mtabs: "m-tabs",
1145
+ mtabpane: "m-tab-pane"
1041
1146
  }[s] || s.replace(/^m/, "m-");
1042
1147
  }
1043
1148
  return null;
1044
1149
  }).filter(Boolean);
1045
- Object.entries(D).forEach(([o, s]) => {
1150
+ console.log("🔧 自定义组件列表:", e), Object.entries(q).forEach(([o, s]) => {
1046
1151
  if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
1047
1152
  const a = "m-" + s.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1048
- e.includes(a) || t._context.components[a] || t.component(a, s);
1153
+ e.includes(a) ? console.log(`🎯 自定义组件覆盖: ${a} (使用自定义组件)`) : t._context.components[a] ? console.log(`⚠️ 组件 ${a} 已存在,跳过注册`) : (t.component(a, s), console.log(`✅ 注册 Element Plus 组件: ${a}`));
1049
1154
  const n = "M" + s.name.slice(2);
1050
- i[n] = s;
1155
+ c[n] = s;
1051
1156
  }
1052
1157
  });
1053
1158
  }
1054
- const wt = (t) => {
1055
- typeof window != "undefined" && Promise.resolve().then(() => Ot).then(({ applyGlobalOverride: e }) => {
1159
+ const Jt = (t) => {
1160
+ typeof window != "undefined" && Promise.resolve().then(() => Zt).then(({ applyGlobalOverride: e }) => {
1056
1161
  e();
1057
- }), K.forEach((e) => {
1162
+ }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Z.forEach((e) => {
1058
1163
  if (e && e.name && typeof e.name == "string") {
1059
1164
  let o = e.name.toLowerCase();
1060
1165
  o = {
1061
1166
  mradiogroup: "m-radio-group",
1062
1167
  mradiobutton: "m-radio-button",
1063
1168
  mformitem: "m-form-item",
1064
- moptiongroup: "m-option-group"
1065
- }[o] || o.replace(/^m/, "m-"), t.component(o, e);
1169
+ moptiongroup: "m-option-group",
1170
+ mtabs: "m-tabs",
1171
+ mtabpane: "m-tab-pane"
1172
+ }[o] || o.replace(/^m/, "m-"), t.component(o, e), console.log(`🎯 注册自定义组件: ${o} (${e.name})`);
1066
1173
  }
1067
- }), Pt(t);
1068
- }, ns = { install: wt }, as = D.ElMessage, rs = D.ElMessageBox, ls = j({}, i), is = i.MButtonGroup, cs = i.MBreadcrumb, us = i.MBreadcrumbItem, ms = i.MCarousel, ps = i.MCarouselItem, ds = i.MCascader, _s = i.MCascaderPanel, fs = i.MCheckTag, bs = i.MCalendar, gs = i.MTimePicker, Ms = i.MDateTimePicker, $s = i.MColorPicker, vs = i.MTransfer, hs = i.MTree, ys = i.MTreeSelect, Cs = i.MUpload, Ss = i.MImage, ks = i.MImageViewer, Ts = i.MBacktop, Bs = i.MInfiniteScroll, Es = i.MAffix, Os = i.MScrollbar, Ps = i.MResult, ws = i.MSkeleton, Is = i.MLoading, Ns = i.MSpinner, js = i.MProgress, As = i.MBadge, zs = i.MAvatar, Ls = i.MImagePreview, Vs = i.MTeleport, Rs = i.MConfigProvider;
1174
+ }), Ht(t), console.log("✅ @mc-markets/ui 组件库安装完成!");
1175
+ };
1176
+ function hs(t) {
1177
+ const e = Object.keys(t._context.components || {}), o = Z.map((s) => {
1178
+ if (s && s.name && typeof s.name == "string") {
1179
+ let a = s.name.toLowerCase();
1180
+ return {
1181
+ mradiogroup: "m-radio-group",
1182
+ mradiobutton: "m-radio-button",
1183
+ mformitem: "m-form-item",
1184
+ moptiongroup: "m-option-group",
1185
+ mtabs: "m-tabs",
1186
+ mtabpane: "m-tab-pane"
1187
+ }[a] || a.replace(/^m/, "m-");
1188
+ }
1189
+ return null;
1190
+ }).filter(Boolean);
1191
+ return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:", e.filter((s) => s.startsWith("m-"))), console.log("自定义组件:", o), {
1192
+ registered: e,
1193
+ custom: o,
1194
+ conflicts: e.filter(
1195
+ (s) => s.startsWith("m-") && o.includes(s)
1196
+ )
1197
+ };
1198
+ }
1199
+ const ys = { install: Jt }, Cs = q.ElMessage, ks = q.ElMessageBox, Ss = T({}, c), Ts = c.MButtonGroup, Bs = c.MBreadcrumb, ws = c.MBreadcrumbItem, Es = c.MCarousel, Os = c.MCarouselItem, Is = c.MCascader, Ps = c.MCascaderPanel, Ns = c.MCheckTag, js = c.MCalendar, As = c.MTimePicker, zs = c.MDateTimePicker, Ls = c.MColorPicker, Vs = c.MTransfer, Rs = c.MTree, Ds = c.MTreeSelect, Gs = c.MUpload, Fs = c.MImage, Us = c.MImageViewer, qs = c.MBacktop, Ws = c.MInfiniteScroll, Zs = c.MAffix, Hs = c.MScrollbar, Js = c.MResult, Qs = c.MSkeleton, Xs = c.MLoading, Ys = c.MSpinner, Ks = c.MProgress, xs = c.MBadge, eo = c.MAvatar, to = c.MImagePreview, so = c.MTeleport, oo = c.MConfigProvider;
1069
1200
  export {
1070
- Es as MAffix,
1071
- et as MAlert,
1072
- zs as MAvatar,
1073
- Ts as MBacktop,
1074
- As as MBadge,
1075
- dt as MBanner,
1076
- cs as MBreadcrumb,
1077
- us as MBreadcrumbItem,
1078
- Le as MButton,
1079
- is as MButtonGroup,
1080
- bs as MCalendar,
1081
- Ve as MCard,
1082
- ms as MCarousel,
1083
- ps as MCarouselItem,
1084
- ds as MCascader,
1085
- _s as MCascaderPanel,
1086
- fs as MCheckTag,
1087
- $s as MColorPicker,
1088
- Rs as MConfigProvider,
1089
- ot as MDatePicker,
1090
- Ms as MDateTimePicker,
1091
- tt as MDialog,
1092
- rt as MEmpty,
1093
- De as MForm,
1094
- Fe as MFormItem,
1201
+ Zs as MAffix,
1202
+ at as MAlert,
1203
+ eo as MAvatar,
1204
+ qs as MBacktop,
1205
+ xs as MBadge,
1206
+ Ot as MBanner,
1207
+ Bs as MBreadcrumb,
1208
+ ws as MBreadcrumbItem,
1209
+ De as MButton,
1210
+ Ts as MButtonGroup,
1211
+ js as MCalendar,
1212
+ Es as MCarousel,
1213
+ Os as MCarouselItem,
1214
+ Is as MCascader,
1215
+ Ps as MCascaderPanel,
1216
+ Ns as MCheckTag,
1217
+ Ls as MColorPicker,
1218
+ oo as MConfigProvider,
1219
+ vt as MDatePicker,
1220
+ zs as MDateTimePicker,
1221
+ rt as MDialog,
1222
+ Ct as MEmpty,
1223
+ Fe as MForm,
1224
+ Ue as MFormItem,
1095
1225
  P as MIcon,
1096
- Ss as MImage,
1097
- Ls as MImagePreview,
1098
- ks as MImageViewer,
1099
- Bs as MInfiniteScroll,
1100
- Re as MInput,
1101
- Is as MLoading,
1102
- as as MMessage,
1103
- rs as MMessageBox,
1104
- st as MNotification,
1105
- Je as MPagination,
1106
- js as MProgress,
1107
- Qe as MRadio,
1108
- Ye as MRadioButton,
1109
- Xe as MRadioGroup,
1110
- Ps as MResult,
1111
- Os as MScrollbar,
1112
- We as MSelect,
1113
- ws as MSkeleton,
1114
- Ns as MSpinner,
1115
- Ke as MSwitch,
1116
- St as MTabPane,
1117
- lt as MTable,
1118
- it as MTableColumn,
1119
- yt as MTabs,
1120
- xe as MTag,
1121
- Vs as MTeleport,
1122
- gs as MTimePicker,
1123
- qe as MTooltip,
1124
- vs as MTransfer,
1125
- hs as MTree,
1126
- ys as MTreeSelect,
1127
- Cs as MUpload,
1128
- kt as addComponentOverride,
1129
- L as addOverrideClass,
1130
- Tt as applyGlobalOverride,
1131
- Et as createOverrideComponent,
1132
- ns as default,
1133
- Bt as forceRefreshStyles,
1134
- ls as mComponents
1226
+ Fs as MImage,
1227
+ to as MImagePreview,
1228
+ Us as MImageViewer,
1229
+ Ws as MInfiniteScroll,
1230
+ Ge as MInput,
1231
+ Xs as MLoading,
1232
+ Cs as MMessage,
1233
+ ks as MMessageBox,
1234
+ Mt as MNotifiMessage,
1235
+ ct as MNotification,
1236
+ Xe as MPagination,
1237
+ Ks as MProgress,
1238
+ Ye as MRadio,
1239
+ xe as MRadioButton,
1240
+ Ke as MRadioGroup,
1241
+ Js as MResult,
1242
+ Hs as MScrollbar,
1243
+ He as MSelect,
1244
+ Qs as MSkeleton,
1245
+ Ys as MSpinner,
1246
+ et as MSwitch,
1247
+ Gt as MTabPane,
1248
+ kt as MTable,
1249
+ St as MTableColumn,
1250
+ Rt as MTabs,
1251
+ tt as MTag,
1252
+ so as MTeleport,
1253
+ As as MTimePicker,
1254
+ Ze as MTooltip,
1255
+ Vs as MTransfer,
1256
+ Rs as MTree,
1257
+ Ds as MTreeSelect,
1258
+ Gs as MUpload,
1259
+ vs as NotifiMessage,
1260
+ Ft as addComponentOverride,
1261
+ D as addOverrideClass,
1262
+ Ut as applyGlobalOverride,
1263
+ hs as checkComponentRegistration,
1264
+ Wt as createOverrideComponent,
1265
+ ys as default,
1266
+ qt as forceRefreshStyles,
1267
+ Ss as mComponents
1135
1268
  };
1136
1269
  //# sourceMappingURL=index.mjs.map