@mc-markets/ui 1.0.69 → 1.0.73

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 (43) 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/Dialog/Dialog.vue.d.ts.map +1 -1
  4. package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts +30 -0
  5. package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts.map +1 -0
  6. package/dist/components/Notification/Notification.vue.d.ts +1 -6
  7. package/dist/components/Notification/Notification.vue.d.ts.map +1 -1
  8. package/dist/images/alert/alert-error.png +0 -0
  9. package/dist/images/alert/alert-success.png +0 -0
  10. package/dist/images/alert/alert-warning.png +0 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.ts +7 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.mjs +491 -356
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/style.css +1 -1
  18. package/package.json +1 -1
  19. package/packages/components/Alert/Alert.vue +117 -3
  20. package/packages/components/DatePicker/DatePicker.vue +1 -1
  21. package/packages/components/Dialog/Dialog.vue +3 -0
  22. package/packages/components/NotifiMessage/NotifiMessage.vue +292 -0
  23. package/packages/components/Notification/Notification.vue +11 -5
  24. package/packages/styles/index.scss +1 -1
  25. package/dist/components/Card/Card.vue.d.ts +0 -8
  26. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  27. package/packages/components/Card/Card.vue +0 -20
  28. package/packages/styles/images/empty/404.png +0 -0
  29. package/packages/styles/images/empty/billing.png +0 -0
  30. package/packages/styles/images/empty/cart.png +0 -0
  31. package/packages/styles/images/empty/comments.png +0 -0
  32. package/packages/styles/images/empty/dashboard.png +0 -0
  33. package/packages/styles/images/empty/files.png +0 -0
  34. package/packages/styles/images/empty/inbox.png +0 -0
  35. package/packages/styles/images/empty/location.png +0 -0
  36. package/packages/styles/images/empty/network.png +0 -0
  37. package/packages/styles/images/empty/notifications.png +0 -0
  38. package/packages/styles/images/empty/orders.png +0 -0
  39. package/packages/styles/images/empty/records.png +0 -0
  40. package/packages/styles/images/empty/session.png +0 -0
  41. package/packages/styles/images/empty/subscription.png +0 -0
  42. package/packages/styles/images/empty/todo.png +0 -0
  43. 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 $, openBlock as i, mergeProps as M, 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 E, 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 Me, ElForm as $e, 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 Oe, ElTag as Ee, 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 O = (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(), $("i", M({
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__ */ O(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, M(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__ */ O(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 = Me;
148
+ return i(), _(s, M(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 = $e;
167
+ return i(), _(s, M(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, M(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, M(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, M({
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, M(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, M(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, M(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, M(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 = Oe;
397
+ return i(), _(n, M(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 = Ee;
417
+ return i(), _(s, M(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,56 @@ 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, M(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 = /* @__PURE__ */ Object.assign({
473
+ name: "MDialog"
474
+ }, {
463
475
  __name: "Dialog",
464
- props: /* @__PURE__ */ Q({
476
+ props: /* @__PURE__ */ K({
465
477
  width: {
466
478
  type: String,
467
479
  default: "440px"
@@ -489,13 +501,13 @@ const qe = /* @__PURE__ */ Object.assign({
489
501
  },
490
502
  modelModifiers: {}
491
503
  }),
492
- emits: /* @__PURE__ */ Q(["close"], ["update:modelValue"]),
504
+ emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
493
505
  setup(t, { emit: e }) {
494
- const o = oe(t, "modelValue");
506
+ const o = ae(t, "modelValue");
495
507
  return (s, a) => {
496
- const n = Oe;
497
- return c(), h("div", null, [
498
- O(n, M({
508
+ const n = Pe;
509
+ return i(), $("div", null, [
510
+ E(n, M({
499
511
  modelValue: o.value,
500
512
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
501
513
  width: t.width,
@@ -506,17 +518,17 @@ const qe = /* @__PURE__ */ Object.assign({
506
518
  }, s.$attrs, {
507
519
  class: "m-dialog",
508
520
  "header-class": "m-header"
509
- }), _({
521
+ }), g({
510
522
  default: p(() => [
511
- a[1] || (a[1] = X("测试组 ", -1)),
523
+ a[1] || (a[1] = x("测试组 ", -1)),
512
524
  m(s.$slots, "default")
513
525
  ]),
514
526
  _: 2
515
527
  }, [
516
528
  s.$slots.header ? {
517
529
  name: "header",
518
- fn: p(({ close: r, titleId: l, titleClass: g }) => [
519
- m(s.$slots, "header", T(B({ close: r, titleId: l, titleClass: g })))
530
+ fn: p(({ close: r, titleId: l, titleClass: d }) => [
531
+ m(s.$slots, "header", F(U({ close: r, titleId: l, titleClass: d })))
520
532
  ]),
521
533
  key: "0"
522
534
  } : void 0,
@@ -531,24 +543,117 @@ const qe = /* @__PURE__ */ Object.assign({
531
543
  ]);
532
544
  };
533
545
  }
534
- }, st = /* @__PURE__ */ Object.assign({
546
+ }), lt = {
535
547
  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);
548
+ };
549
+ function it(t, e, o, s, a, n) {
550
+ const r = Ne;
551
+ return i(), _(r, M(t.$attrs, { class: "mc-notification" }), g({ _: 2 }, [
552
+ b(t.$slots, (l, d) => ({
553
+ name: d,
554
+ fn: p(() => [
555
+ m(t.$slots, d)
556
+ ])
557
+ }))
558
+ ]), 1040);
559
+ }
560
+ const ct = /* @__PURE__ */ O(lt, [["render", it]]), B = L([]);
561
+ let ut = 0;
562
+ const vs = {
563
+ // 默认配置
564
+ defaultOptions: {
565
+ title: "",
566
+ message: "",
567
+ duration: 4500,
568
+ position: "top-right",
569
+ showClose: !0,
570
+ offset: 20
571
+ },
572
+ // 显示通知
573
+ show(t = {}) {
574
+ const e = A(T(T({}, this.defaultOptions), t), {
575
+ id: ++ut
576
+ });
577
+ return B.value.push(e), e.duration > 0 && setTimeout(() => {
578
+ this.close(e.id);
579
+ }, e.duration), {
580
+ close: () => this.close(e.id)
549
581
  };
582
+ },
583
+ // 关闭指定通知
584
+ close(t) {
585
+ const e = B.value.findIndex((o) => o.id === t);
586
+ e > -1 && B.value.splice(e, 1);
587
+ },
588
+ // 关闭所有通知
589
+ closeAll() {
590
+ B.value = [];
591
+ },
592
+ // 便捷方法
593
+ success(t = {}) {
594
+ return this.show(t);
595
+ },
596
+ warning(t = {}) {
597
+ return this.show(t);
598
+ },
599
+ error(t = {}) {
600
+ return this.show(t);
550
601
  }
551
- }), ot = /* @__PURE__ */ Object.assign({
602
+ }, mt = (t) => {
603
+ const e = B.value.findIndex((o) => o.id === t);
604
+ e > -1 && B.value.splice(e, 1);
605
+ }, pt = {
606
+ name: "MNotifiMessage",
607
+ setup() {
608
+ return {
609
+ notifications: B,
610
+ closeNotification: mt
611
+ };
612
+ }
613
+ }, dt = { class: "notification-content" }, ft = { class: "notification-title" }, _t = { class: "notification-message" }, bt = {
614
+ key: 0,
615
+ class: "notification-action"
616
+ }, gt = ["onClick"];
617
+ function Mt(t, e, o, s, a, n) {
618
+ return i(), _(re, { to: "body" }, [
619
+ E(le, {
620
+ name: "notification",
621
+ tag: "div",
622
+ class: "notification-container"
623
+ }, {
624
+ default: p(() => [
625
+ (i(!0), $(ee, null, b(s.notifications, (r) => (i(), $("div", {
626
+ key: r.id,
627
+ class: I([
628
+ "custom-notification",
629
+ `notification-${r.position}`
630
+ ])
631
+ }, [
632
+ e[0] || (e[0] = C("div", { class: "notification-icon" }, [
633
+ C("img", {
634
+ src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
635
+ alt: "notification icon"
636
+ })
637
+ ], -1)),
638
+ C("div", dt, [
639
+ C("div", ft, V(r.title), 1),
640
+ C("div", _t, V(r.message), 1),
641
+ r.slotContent ? (i(), $("div", bt, [
642
+ (i(), _(ie(r.slotContent)))
643
+ ])) : w("", !0)
644
+ ]),
645
+ r.showClose ? (i(), $("button", {
646
+ key: 0,
647
+ class: "notification-close",
648
+ onClick: (l) => s.closeNotification(r.id)
649
+ }, " × ", 8, gt)) : w("", !0)
650
+ ], 2))), 128))
651
+ ]),
652
+ _: 1
653
+ })
654
+ ]);
655
+ }
656
+ const $t = /* @__PURE__ */ O(pt, [["render", Mt]]), vt = /* @__PURE__ */ Object.assign({
552
657
  name: "MDatePicker"
553
658
  }, {
554
659
  __name: "DatePicker",
@@ -559,14 +664,14 @@ const qe = /* @__PURE__ */ Object.assign({
559
664
  }
560
665
  },
561
666
  setup(t) {
562
- const { mergedAttrs: e, className: o } = I(
667
+ const { mergedAttrs: e, className: o } = N(
563
668
  "mc-datepicker-popper",
564
669
  "popperClass"
565
670
  );
566
671
  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) => ({
672
+ const n = je;
673
+ return i(), _(n, M(k(e), { "popper-class": k(o) }), g({ _: 2 }, [
674
+ b(s.$slots, (r, l) => ({
570
675
  name: l,
571
676
  fn: p(() => [
572
677
  m(s.$slots, l)
@@ -575,7 +680,7 @@ const qe = /* @__PURE__ */ Object.assign({
575
680
  ]), 1040, ["popper-class"]);
576
681
  };
577
682
  }
578
- }), nt = [
683
+ }), ht = [
579
684
  "404",
580
685
  "billing",
581
686
  "cart",
@@ -592,45 +697,45 @@ const qe = /* @__PURE__ */ Object.assign({
592
697
  "subscription",
593
698
  "todo",
594
699
  "wishlist"
595
- ], at = {
700
+ ], yt = {
596
701
  name: "MEmpty"
597
- }, rt = /* @__PURE__ */ Object.assign(at, {
702
+ }, Ct = /* @__PURE__ */ Object.assign(yt, {
598
703
  props: {
599
704
  image: {
600
705
  type: String,
601
706
  default: "orders",
602
- validator: (t) => t.includes("/") || t.includes("http") ? !0 : nt.includes(t)
707
+ validator: (t) => t.includes("/") || t.includes("http") ? !0 : ht.includes(t)
603
708
  }
604
709
  },
605
710
  setup(t) {
606
- const e = t, o = F(), s = y(() => {
711
+ const e = t, o = G(), s = h(() => {
607
712
  const l = o, { image: n } = l;
608
- return V(l, ["image"]);
609
- }), a = y(() => {
713
+ return z(l, ["image"]);
714
+ }), a = h(() => {
610
715
  const { image: n } = e;
611
716
  return n.includes("/") || n.includes("http") ? n : `/images/empty/${n}.png`;
612
717
  });
613
718
  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: $,
719
+ const l = Ae;
720
+ return i(), _(l, M(s.value, { image: a.value }), g({ _: 2 }, [
721
+ b(n.$slots, (d, v) => ({
722
+ name: v,
618
723
  fn: p(() => [
619
- m(n.$slots, $)
724
+ m(n.$slots, v)
620
725
  ])
621
726
  }))
622
727
  ]), 1040, ["image"]);
623
728
  };
624
729
  }
625
- }), lt = /* @__PURE__ */ Object.assign({
730
+ }), kt = /* @__PURE__ */ Object.assign({
626
731
  name: "MTable"
627
732
  }, {
628
733
  __name: "Table",
629
734
  setup(t) {
630
735
  return (e, o) => {
631
- const s = Ne;
632
- return c(), b(s, T(B(e.$attrs)), _({ _: 2 }, [
633
- f(e.$slots, (a, n) => ({
736
+ const s = ze;
737
+ return i(), _(s, F(U(e.$attrs)), g({ _: 2 }, [
738
+ b(e.$slots, (a, n) => ({
634
739
  name: n,
635
740
  fn: p(() => [
636
741
  m(e.$slots, n)
@@ -639,15 +744,15 @@ const qe = /* @__PURE__ */ Object.assign({
639
744
  ]), 1040);
640
745
  };
641
746
  }
642
- }), it = /* @__PURE__ */ Object.assign({
747
+ }), St = /* @__PURE__ */ Object.assign({
643
748
  name: "MTableColumn"
644
749
  }, {
645
750
  __name: "TableColumn",
646
751
  setup(t) {
647
752
  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) => ({
753
+ const s = Le;
754
+ return i(), _(s, M(e.$attrs, { class: "m-table-column" }), g({ _: 2 }, [
755
+ b(e.$slots, (a, n) => ({
651
756
  name: n,
652
757
  fn: p(() => [
653
758
  m(e.$slots, n)
@@ -656,10 +761,10 @@ const qe = /* @__PURE__ */ Object.assign({
656
761
  ]), 1040);
657
762
  };
658
763
  }
659
- }), ct = { class: "m-banner__content" }, ut = {
764
+ }), Tt = { class: "m-banner__content" }, Bt = {
660
765
  key: 0,
661
766
  class: "m-banner__icon"
662
- }, mt = { class: "m-banner__text" }, pt = /* @__PURE__ */ Object.assign({
767
+ }, wt = { class: "m-banner__text" }, Ot = /* @__PURE__ */ Object.assign({
663
768
  name: "MBanner"
664
769
  }, {
665
770
  __name: "Banner",
@@ -723,68 +828,68 @@ const qe = /* @__PURE__ */ Object.assign({
723
828
  },
724
829
  emits: ["close", "update:visible"],
725
830
  setup(t, { expose: e, emit: o }) {
726
- const s = G(), a = t, n = o, r = R(a.visible);
727
- A(() => a.visible, (u) => {
831
+ const s = W(), a = t, n = o, r = L(a.visible);
832
+ R(() => a.visible, (u) => {
728
833
  r.value = u;
729
834
  });
730
- const l = y(() => {
835
+ const l = h(() => {
731
836
  const u = {};
732
837
  return a.backgroundColor && (u.backgroundColor = a.backgroundColor), a.textColor && (u.color = a.textColor), a.borderColor && (u.borderColor = a.borderColor), u;
733
- }), g = {
838
+ }), d = {
734
839
  info: "info",
735
840
  success: "check-circle",
736
841
  warning: "warning",
737
842
  error: "close-circle"
738
843
  };
739
- y(() => a.icon || g[a.type]);
740
- const $ = () => {
844
+ h(() => a.icon || d[a.type]);
845
+ const v = () => {
741
846
  r.value = !1, n("update:visible", !1), n("close");
742
847
  };
743
- return A(r, (u) => {
848
+ return R(r, (u) => {
744
849
  u && a.duration > 0 && setTimeout(() => {
745
- $();
850
+ v();
746
851
  }, a.duration);
747
852
  }), e({
748
- close: $
749
- }), (u, v) => t.visible ? (c(), h("div", {
853
+ close: v
854
+ }), (u, y) => t.visible ? (i(), $("div", {
750
855
  key: 0,
751
- class: z(["m-banner", [
856
+ class: I(["m-banner", [
752
857
  `m-banner--${t.type}`,
753
858
  {
754
859
  "m-banner--closable": t.closable,
755
- "m-banner--with-icon": t.icon || C(s).icon
860
+ "m-banner--with-icon": t.icon || k(s).icon
756
861
  }
757
862
  ]]),
758
- style: ne(l.value)
863
+ style: ce(l.value)
759
864
  }, [
760
- k("div", ct, [
761
- t.icon || C(s).icon ? (c(), h("div", ut, [
865
+ C("div", Tt, [
866
+ t.icon || k(s).icon ? (i(), $("div", Bt, [
762
867
  m(u.$slots, "icon", {}, () => [
763
- O(P, {
868
+ E(P, {
764
869
  name: t.icon,
765
870
  size: t.iconSize
766
871
  }, null, 8, ["name", "size"])
767
872
  ], !0)
768
- ])) : E("", !0),
769
- k("div", mt, [
873
+ ])) : w("", !0),
874
+ C("div", wt, [
770
875
  m(u.$slots, "default", {}, () => [
771
- X(Y(t.content), 1)
876
+ x(V(t.content), 1)
772
877
  ], !0)
773
878
  ]),
774
- t.closable ? (c(), h("div", {
879
+ t.closable ? (i(), $("div", {
775
880
  key: 1,
776
881
  class: "m-banner__close",
777
- onClick: $
882
+ onClick: v
778
883
  }, [
779
- O(P, {
884
+ E(P, {
780
885
  name: "lucide-x",
781
886
  size: t.closeIconSize
782
887
  }, null, 8, ["size"])
783
- ])) : E("", !0)
888
+ ])) : w("", !0)
784
889
  ])
785
- ], 6)) : E("", !0);
890
+ ], 6)) : w("", !0);
786
891
  }
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 = {
892
+ }), Et = /* @__PURE__ */ O(Ot, [["__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
893
  __name: "Tabs",
789
894
  props: {
790
895
  // 当前激活的标签页
@@ -833,94 +938,94 @@ const qe = /* @__PURE__ */ Object.assign({
833
938
  emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
834
939
  setup(t, { expose: e, emit: o }) {
835
940
  const s = t, a = o;
836
- G();
837
- const n = R([]), r = R(s.modelValue);
838
- A(() => s.modelValue, (u) => {
941
+ W();
942
+ const n = L([]), r = L(s.modelValue);
943
+ R(() => s.modelValue, (u) => {
839
944
  r.value = u;
840
- }), A(r, (u) => {
945
+ }), R(r, (u) => {
841
946
  a("update:modelValue", u), a("tab-change", u);
842
- }), ae("tabsContext", {
947
+ }), ue("tabsContext", {
843
948
  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);
949
+ const y = n.value.findIndex((f) => f.name === u.name);
950
+ y >= 0 ? n.value[y] = u : n.value.push(u), !r.value && n.value.length > 0 && (r.value = n.value[0].name || 0);
846
951
  },
847
952
  unregisterTab: (u) => {
848
- const v = n.value.findIndex((d) => d.name === u);
849
- v >= 0 && n.value.splice(v, 1);
953
+ const y = n.value.findIndex((f) => f.name === u);
954
+ y >= 0 && n.value.splice(y, 1);
850
955
  }
851
956
  });
852
- const l = (u, v) => J(this, null, function* () {
957
+ const l = (u, y) => Y(this, null, function* () {
853
958
  if (u.disabled) return;
854
- const d = u.name || v;
855
- if (r.value !== d) {
959
+ const f = u.name || y;
960
+ if (r.value !== f) {
856
961
  if (s.beforeLeave)
857
962
  try {
858
- if ((yield s.beforeLeave(r.value, d)) === !1) return;
963
+ if ((yield s.beforeLeave(r.value, f)) === !1) return;
859
964
  } catch (S) {
860
965
  return;
861
966
  }
862
- r.value = d, a("tab-click", { name: d, index: v, disabled: u.disabled });
967
+ r.value = f, a("tab-click", { name: f, index: y, disabled: u.disabled });
863
968
  }
864
- }), g = (u, v) => {
865
- const d = u.name || v;
866
- a("tab-remove", d), a("edit", d, "remove");
867
- }, $ = () => {
969
+ }), d = (u, y) => {
970
+ const f = u.name || y;
971
+ a("tab-remove", f), a("edit", f, "remove");
972
+ }, v = () => {
868
973
  a("tab-add"), a("edit", "", "add");
869
974
  };
870
975
  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}`]])
976
+ activeName: h(() => r.value)
977
+ }), (u, y) => (i(), $("div", {
978
+ class: I(["m-tabs", [`m-tabs--${t.type}`, `m-tabs--${t.tabPosition}`]])
874
979
  }, [
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([
980
+ C("div", It, [
981
+ C("div", Pt, [
982
+ (i(!0), $(ee, null, b(n.value, (f, S) => {
983
+ var H;
984
+ return i(), $("div", {
985
+ key: f.name || S,
986
+ class: I([
882
987
  "m-tabs__item",
883
988
  {
884
- "m-tabs__item--active": r.value === (d.name || S),
885
- "m-tabs__item--disabled": d.disabled,
886
- "m-tabs__item--closable": d.closable
989
+ "m-tabs__item--active": r.value === (f.name || S),
990
+ "m-tabs__item--disabled": f.disabled,
991
+ "m-tabs__item--closable": f.closable
887
992
  }
888
993
  ]),
889
- onClick: (x) => l(d, S)
994
+ onClick: (te) => l(f, S)
890
995
  }, [
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))
996
+ C("span", jt, [
997
+ (H = f.$slots) != null && H.label ? m(u.$slots, `tab-${f.name || S}`, { key: 0 }, void 0, !0) : (i(), $("span", At, V(f.label), 1))
893
998
  ]),
894
- d.closable ? (c(), h("span", {
999
+ f.closable ? (i(), $("span", {
895
1000
  key: 0,
896
1001
  class: "m-tabs__item-close",
897
- onClick: le((x) => g(d, S), ["stop"])
1002
+ onClick: me((te) => d(f, S), ["stop"])
898
1003
  }, [
899
- O(P, {
1004
+ E(P, {
900
1005
  name: "lucide-x",
901
1006
  size: 12
902
1007
  })
903
- ], 8, $t)) : E("", !0)
904
- ], 10, bt);
1008
+ ], 8, zt)) : w("", !0)
1009
+ ], 10, Nt);
905
1010
  }), 128)),
906
- t.addable || t.editable ? (c(), h("div", {
1011
+ t.addable || t.editable ? (i(), $("div", {
907
1012
  key: 0,
908
1013
  class: "m-tabs__item m-tabs__item--add",
909
- onClick: $
1014
+ onClick: v
910
1015
  }, [
911
- O(P, {
1016
+ E(P, {
912
1017
  name: "plus",
913
1018
  size: 12
914
1019
  })
915
- ])) : E("", !0)
1020
+ ])) : w("", !0)
916
1021
  ])
917
1022
  ]),
918
- k("div", vt, [
1023
+ C("div", Lt, [
919
1024
  m(u.$slots, "default", {}, void 0, !0)
920
1025
  ])
921
1026
  ], 2));
922
1027
  }
923
- }, yt = /* @__PURE__ */ w(ht, [["__scopeId", "data-v-23508d30"]]), Ct = /* @__PURE__ */ Object.assign({
1028
+ }, Rt = /* @__PURE__ */ O(Vt, [["__scopeId", "data-v-23508d30"]]), Dt = /* @__PURE__ */ Object.assign({
924
1029
  name: "MTabPane"
925
1030
  }, {
926
1031
  __name: "TabPane",
@@ -952,8 +1057,8 @@ const qe = /* @__PURE__ */ Object.assign({
952
1057
  }
953
1058
  },
954
1059
  setup(t) {
955
- const e = t, o = G(), s = ie("tabsContext"), a = y(() => s ? s.activeName === (e.name || s.tabIndex) : !1);
956
- return ce(() => {
1060
+ const e = t, o = W(), s = pe("tabsContext"), a = h(() => s ? s.activeName === (e.name || s.tabIndex) : !1);
1061
+ return de(() => {
957
1062
  if (s) {
958
1063
  const n = {
959
1064
  name: e.name,
@@ -964,27 +1069,27 @@ const qe = /* @__PURE__ */ Object.assign({
964
1069
  };
965
1070
  s.registerTab(n);
966
1071
  }
967
- }), ue(() => {
1072
+ }), fe(() => {
968
1073
  s && s.unregisterTab(e.name);
969
- }), (n, r) => me((c(), h("div", {
970
- class: z(["m-tab-pane", {
1074
+ }), (n, r) => _e((i(), $("div", {
1075
+ class: I(["m-tab-pane", {
971
1076
  "m-tab-pane--active": a.value,
972
1077
  "m-tab-pane--disabled": t.disabled
973
1078
  }])
974
1079
  }, [
975
1080
  m(n.$slots, "default", {}, void 0, !0)
976
1081
  ], 2)), [
977
- [pe, a.value]
1082
+ [be, a.value]
978
1083
  ]);
979
1084
  }
980
- }), St = /* @__PURE__ */ w(Ct, [["__scopeId", "data-v-722bb248"]]);
981
- function L(t) {
1085
+ }), Gt = /* @__PURE__ */ O(Dt, [["__scopeId", "data-v-722bb248"]]);
1086
+ function D(t) {
982
1087
  t && t.classList && t.classList.add("mc-ui-override");
983
1088
  }
984
- function kt(t) {
985
- t && t.$el && L(t.$el);
1089
+ function Ft(t) {
1090
+ t && t.$el && D(t.$el);
986
1091
  }
987
- function Tt() {
1092
+ function Ut() {
988
1093
  typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((e) => {
989
1094
  e.forEach((o) => {
990
1095
  o.addedNodes.forEach((s) => {
@@ -1005,132 +1110,162 @@ function Tt() {
1005
1110
  subtree: !0
1006
1111
  }));
1007
1112
  }
1008
- function Bt(t = '[class*="el-"]') {
1113
+ function qt(t = '[class*="el-"]') {
1009
1114
  typeof document != "undefined" && document.querySelectorAll(t).forEach((o) => {
1010
1115
  const s = o.closest(".mc-ui-override") || o.parentElement;
1011
1116
  s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
1012
1117
  });
1013
1118
  }
1014
- function Et(t) {
1015
- return H(j({}, t), {
1119
+ function Wt(t) {
1120
+ return A(T({}, t), {
1016
1121
  mounted() {
1017
- L(this.$el), t.mounted && t.mounted.call(this);
1122
+ D(this.$el), t.mounted && t.mounted.call(this);
1018
1123
  },
1019
1124
  updated() {
1020
- L(this.$el), t.updated && t.updated.call(this);
1125
+ D(this.$el), t.updated && t.updated.call(this);
1021
1126
  }
1022
1127
  });
1023
1128
  }
1024
- const Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1129
+ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1025
1130
  __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) => {
1131
+ addComponentOverride: Ft,
1132
+ addOverrideClass: D,
1133
+ applyGlobalOverride: Ut,
1134
+ createOverrideComponent: Wt,
1135
+ forceRefreshStyles: qt
1136
+ }, Symbol.toStringTag, { value: "Module" })), Z = [P, De, Ge, Fe, Ue, Ze, He, Je, Qe, Xe, Ye, Ke, xe, et, tt, at, rt, ct, $t, vt, Ct, kt, St, Et, Rt, Gt], c = {};
1137
+ function Ht(t) {
1138
+ const e = Z.map((o) => {
1034
1139
  if (o && o.name && typeof o.name == "string") {
1035
1140
  let s = o.name.toLowerCase();
1036
1141
  return {
1037
1142
  mradiogroup: "m-radio-group",
1038
1143
  mradiobutton: "m-radio-button",
1039
1144
  mformitem: "m-form-item",
1040
- moptiongroup: "m-option-group"
1145
+ moptiongroup: "m-option-group",
1146
+ mtabs: "m-tabs",
1147
+ mtabpane: "m-tab-pane"
1041
1148
  }[s] || s.replace(/^m/, "m-");
1042
1149
  }
1043
1150
  return null;
1044
1151
  }).filter(Boolean);
1045
- Object.entries(D).forEach(([o, s]) => {
1152
+ console.log("🔧 自定义组件列表:", e), Object.entries(q).forEach(([o, s]) => {
1046
1153
  if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
1047
1154
  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);
1155
+ e.includes(a) ? console.log(`🎯 自定义组件覆盖: ${a} (使用自定义组件)`) : t._context.components[a] ? console.log(`⚠️ 组件 ${a} 已存在,跳过注册`) : (t.component(a, s), console.log(`✅ 注册 Element Plus 组件: ${a}`));
1049
1156
  const n = "M" + s.name.slice(2);
1050
- i[n] = s;
1157
+ c[n] = s;
1051
1158
  }
1052
1159
  });
1053
1160
  }
1054
- const wt = (t) => {
1055
- typeof window != "undefined" && Promise.resolve().then(() => Ot).then(({ applyGlobalOverride: e }) => {
1161
+ const Jt = (t) => {
1162
+ typeof window != "undefined" && Promise.resolve().then(() => Zt).then(({ applyGlobalOverride: e }) => {
1056
1163
  e();
1057
- }), K.forEach((e) => {
1164
+ }), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Z.forEach((e) => {
1058
1165
  if (e && e.name && typeof e.name == "string") {
1059
1166
  let o = e.name.toLowerCase();
1060
1167
  o = {
1061
1168
  mradiogroup: "m-radio-group",
1062
1169
  mradiobutton: "m-radio-button",
1063
1170
  mformitem: "m-form-item",
1064
- moptiongroup: "m-option-group"
1065
- }[o] || o.replace(/^m/, "m-"), t.component(o, e);
1171
+ moptiongroup: "m-option-group",
1172
+ mtabs: "m-tabs",
1173
+ mtabpane: "m-tab-pane"
1174
+ }[o] || o.replace(/^m/, "m-"), t.component(o, e), console.log(`🎯 注册自定义组件: ${o} (${e.name})`);
1175
+ }
1176
+ }), Ht(t), console.log("✅ @mc-markets/ui 组件库安装完成!");
1177
+ };
1178
+ function hs(t) {
1179
+ const e = Object.keys(t._context.components || {}), o = Z.map((s) => {
1180
+ if (s && s.name && typeof s.name == "string") {
1181
+ let a = s.name.toLowerCase();
1182
+ return {
1183
+ mradiogroup: "m-radio-group",
1184
+ mradiobutton: "m-radio-button",
1185
+ mformitem: "m-form-item",
1186
+ moptiongroup: "m-option-group",
1187
+ mtabs: "m-tabs",
1188
+ mtabpane: "m-tab-pane"
1189
+ }[a] || a.replace(/^m/, "m-");
1066
1190
  }
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;
1191
+ return null;
1192
+ }).filter(Boolean);
1193
+ return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:", e.filter((s) => s.startsWith("m-"))), console.log("自定义组件:", o), {
1194
+ registered: e,
1195
+ custom: o,
1196
+ conflicts: e.filter(
1197
+ (s) => s.startsWith("m-") && o.includes(s)
1198
+ )
1199
+ };
1200
+ }
1201
+ const ys = { install: Jt }, Cs = q.ElMessage, ks = q.ElMessageBox, Ss = T({}, c), Ts = c.MButtonGroup, Bs = c.MBreadcrumb, ws = c.MBreadcrumbItem, Os = c.MCarousel, Es = 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
1202
  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,
1203
+ Zs as MAffix,
1204
+ at as MAlert,
1205
+ eo as MAvatar,
1206
+ qs as MBacktop,
1207
+ xs as MBadge,
1208
+ Et as MBanner,
1209
+ Bs as MBreadcrumb,
1210
+ ws as MBreadcrumbItem,
1211
+ De as MButton,
1212
+ Ts as MButtonGroup,
1213
+ js as MCalendar,
1214
+ Os as MCarousel,
1215
+ Es as MCarouselItem,
1216
+ Is as MCascader,
1217
+ Ps as MCascaderPanel,
1218
+ Ns as MCheckTag,
1219
+ Ls as MColorPicker,
1220
+ oo as MConfigProvider,
1221
+ vt as MDatePicker,
1222
+ zs as MDateTimePicker,
1223
+ rt as MDialog,
1224
+ Ct as MEmpty,
1225
+ Fe as MForm,
1226
+ Ue as MFormItem,
1095
1227
  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
1228
+ Fs as MImage,
1229
+ to as MImagePreview,
1230
+ Us as MImageViewer,
1231
+ Ws as MInfiniteScroll,
1232
+ Ge as MInput,
1233
+ Xs as MLoading,
1234
+ Cs as MMessage,
1235
+ ks as MMessageBox,
1236
+ $t as MNotifiMessage,
1237
+ ct as MNotification,
1238
+ Xe as MPagination,
1239
+ Ks as MProgress,
1240
+ Ye as MRadio,
1241
+ xe as MRadioButton,
1242
+ Ke as MRadioGroup,
1243
+ Js as MResult,
1244
+ Hs as MScrollbar,
1245
+ He as MSelect,
1246
+ Qs as MSkeleton,
1247
+ Ys as MSpinner,
1248
+ et as MSwitch,
1249
+ Gt as MTabPane,
1250
+ kt as MTable,
1251
+ St as MTableColumn,
1252
+ Rt as MTabs,
1253
+ tt as MTag,
1254
+ so as MTeleport,
1255
+ As as MTimePicker,
1256
+ Ze as MTooltip,
1257
+ Vs as MTransfer,
1258
+ Rs as MTree,
1259
+ Ds as MTreeSelect,
1260
+ Gs as MUpload,
1261
+ vs as NotifiMessage,
1262
+ Ft as addComponentOverride,
1263
+ D as addOverrideClass,
1264
+ Ut as applyGlobalOverride,
1265
+ hs as checkComponentRegistration,
1266
+ Wt as createOverrideComponent,
1267
+ ys as default,
1268
+ qt as forceRefreshStyles,
1269
+ Ss as mComponents
1135
1270
  };
1136
1271
  //# sourceMappingURL=index.mjs.map