@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.
- package/dist/components/Alert/Alert.vue.d.ts +8 -3
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts +30 -0
- package/dist/components/NotifiMessage/NotifiMessage.vue.d.ts.map +1 -0
- package/dist/components/Notification/Notification.vue.d.ts +1 -6
- package/dist/components/Notification/Notification.vue.d.ts.map +1 -1
- package/dist/images/alert/alert-error.png +0 -0
- package/dist/images/alert/alert-success.png +0 -0
- package/dist/images/alert/alert-warning.png +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +485 -352
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/packages/components/Alert/Alert.vue +117 -3
- package/packages/components/DatePicker/DatePicker.vue +1 -1
- package/packages/components/NotifiMessage/NotifiMessage.vue +292 -0
- package/packages/components/Notification/Notification.vue +11 -5
- package/packages/styles/index.scss +1 -1
- package/dist/components/Card/Card.vue.d.ts +0 -8
- package/dist/components/Card/Card.vue.d.ts.map +0 -1
- package/packages/components/Card/Card.vue +0 -20
- package/packages/styles/images/empty/404.png +0 -0
- package/packages/styles/images/empty/billing.png +0 -0
- package/packages/styles/images/empty/cart.png +0 -0
- package/packages/styles/images/empty/comments.png +0 -0
- package/packages/styles/images/empty/dashboard.png +0 -0
- package/packages/styles/images/empty/files.png +0 -0
- package/packages/styles/images/empty/inbox.png +0 -0
- package/packages/styles/images/empty/location.png +0 -0
- package/packages/styles/images/empty/network.png +0 -0
- package/packages/styles/images/empty/notifications.png +0 -0
- package/packages/styles/images/empty/orders.png +0 -0
- package/packages/styles/images/empty/records.png +0 -0
- package/packages/styles/images/empty/session.png +0 -0
- package/packages/styles/images/empty/subscription.png +0 -0
- package/packages/styles/images/empty/todo.png +0 -0
- package/packages/styles/images/empty/wishlist.png +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
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
|
-
},
|
|
13
|
-
var
|
|
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
|
-
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var s of
|
|
19
|
-
e.indexOf(s) < 0 &&
|
|
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
|
|
23
|
-
var n = (
|
|
22
|
+
var Y = (t, e, o) => new Promise((s, a) => {
|
|
23
|
+
var n = (d) => {
|
|
24
24
|
try {
|
|
25
|
-
l(o.next(
|
|
26
|
-
} catch (
|
|
27
|
-
a(
|
|
25
|
+
l(o.next(d));
|
|
26
|
+
} catch (v) {
|
|
27
|
+
a(v);
|
|
28
28
|
}
|
|
29
|
-
}, r = (
|
|
29
|
+
}, r = (d) => {
|
|
30
30
|
try {
|
|
31
|
-
l(o.throw(
|
|
32
|
-
} catch (
|
|
33
|
-
a(
|
|
31
|
+
l(o.throw(d));
|
|
32
|
+
} catch (v) {
|
|
33
|
+
a(v);
|
|
34
34
|
}
|
|
35
|
-
}, l = (
|
|
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
|
|
39
|
-
import { computed as
|
|
40
|
-
import { ElButton as
|
|
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
|
|
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
|
-
},
|
|
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 =
|
|
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 =
|
|
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,
|
|
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__ */
|
|
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 =
|
|
132
|
-
return
|
|
133
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
166
|
-
return
|
|
147
|
+
const s = $e;
|
|
148
|
+
return i(), _(s, $(e.$attrs, {
|
|
167
149
|
class: ["m-input", { solid: e.$attrs.styleType === "solid" }]
|
|
168
|
-
}),
|
|
169
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
185
|
-
return
|
|
186
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
202
|
-
return
|
|
203
|
-
|
|
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
|
-
}),
|
|
213
|
-
const o =
|
|
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
|
|
219
|
-
const o =
|
|
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
|
|
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 } =
|
|
218
|
+
const { mergedAttrs: e, className: o } = N("mc-tooltip-popper");
|
|
237
219
|
return (s, a) => {
|
|
238
|
-
const n =
|
|
239
|
-
return
|
|
240
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
256
|
-
return
|
|
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),
|
|
260
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
276
|
-
return
|
|
277
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
293
|
-
return
|
|
294
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
310
|
-
return
|
|
311
|
-
|
|
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
|
-
}),
|
|
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 } =
|
|
313
|
+
const { mergedAttrs: e } = N("mc-radio-popper");
|
|
332
314
|
return (o, s) => {
|
|
333
|
-
const a =
|
|
334
|
-
return
|
|
335
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
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 =
|
|
340
|
+
}), s = h(() => {
|
|
359
341
|
const r = e, { popperClass: a } = r;
|
|
360
|
-
return
|
|
342
|
+
return z(r, ["popperClass"]);
|
|
361
343
|
});
|
|
362
344
|
return (a, n) => {
|
|
363
|
-
const r =
|
|
364
|
-
return
|
|
345
|
+
const r = Be;
|
|
346
|
+
return i(), _(r, $(s.value, {
|
|
365
347
|
"popper-class": o.value,
|
|
366
348
|
class: "m-radio-group"
|
|
367
|
-
}),
|
|
368
|
-
|
|
369
|
-
name:
|
|
349
|
+
}), g({ _: 2 }, [
|
|
350
|
+
b(a.$slots, (l, d) => ({
|
|
351
|
+
name: d,
|
|
370
352
|
fn: p(() => [
|
|
371
|
-
m(a.$slots,
|
|
353
|
+
m(a.$slots, d)
|
|
372
354
|
])
|
|
373
355
|
}))
|
|
374
356
|
]), 1040, ["popper-class"]);
|
|
375
357
|
};
|
|
376
358
|
}
|
|
377
|
-
}),
|
|
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 } =
|
|
370
|
+
const { mergedAttrs: e } = N("mc-radio-button-popper");
|
|
389
371
|
return (o, s) => {
|
|
390
|
-
const a =
|
|
391
|
-
return
|
|
392
|
-
|
|
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
|
-
}),
|
|
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 } =
|
|
394
|
+
const { mergedAttrs: e, className: o } = N("mc-switch-popper");
|
|
413
395
|
return (s, a) => {
|
|
414
|
-
const n =
|
|
415
|
-
return
|
|
416
|
-
"popper-class":
|
|
396
|
+
const n = Ee;
|
|
397
|
+
return i(), _(n, $(k(e), {
|
|
398
|
+
"popper-class": k(o),
|
|
417
399
|
class: "m-switch"
|
|
418
|
-
}),
|
|
419
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
435
|
-
return
|
|
436
|
-
|
|
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
|
-
}),
|
|
427
|
+
}), st = ["src", "alt"], ot = ["success", "warning", "error"], nt = {
|
|
446
428
|
name: "MAlert"
|
|
447
|
-
}, {
|
|
448
|
-
|
|
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
|
-
|
|
451
|
-
const
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
472
|
+
}), rt = {
|
|
463
473
|
__name: "Dialog",
|
|
464
|
-
props: /* @__PURE__ */
|
|
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__ */
|
|
502
|
+
emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
|
|
493
503
|
setup(t, { emit: e }) {
|
|
494
|
-
const o =
|
|
504
|
+
const o = ae(t, "modelValue");
|
|
495
505
|
return (s, a) => {
|
|
496
|
-
const n =
|
|
497
|
-
return
|
|
498
|
-
O(n,
|
|
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] =
|
|
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:
|
|
519
|
-
m(s.$slots, "header",
|
|
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
|
-
},
|
|
544
|
+
}, lt = {
|
|
535
545
|
name: "MNotification"
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
-
}
|
|
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 } =
|
|
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 =
|
|
568
|
-
return
|
|
569
|
-
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
698
|
+
], yt = {
|
|
596
699
|
name: "MEmpty"
|
|
597
|
-
},
|
|
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 :
|
|
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 =
|
|
709
|
+
const e = t, o = G(), s = h(() => {
|
|
607
710
|
const l = o, { image: n } = l;
|
|
608
|
-
return
|
|
609
|
-
}), a =
|
|
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 =
|
|
615
|
-
return
|
|
616
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
632
|
-
return
|
|
633
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
649
|
-
return
|
|
650
|
-
|
|
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
|
-
}),
|
|
762
|
+
}), Tt = { class: "m-banner__content" }, Bt = {
|
|
660
763
|
key: 0,
|
|
661
764
|
class: "m-banner__icon"
|
|
662
|
-
},
|
|
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 =
|
|
727
|
-
|
|
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 =
|
|
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
|
-
}),
|
|
836
|
+
}), d = {
|
|
734
837
|
info: "info",
|
|
735
838
|
success: "check-circle",
|
|
736
839
|
warning: "warning",
|
|
737
840
|
error: "close-circle"
|
|
738
841
|
};
|
|
739
|
-
|
|
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
|
|
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,
|
|
851
|
+
close: v
|
|
852
|
+
}), (u, y) => t.visible ? (i(), M("div", {
|
|
750
853
|
key: 0,
|
|
751
|
-
class:
|
|
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 ||
|
|
858
|
+
"m-banner--with-icon": t.icon || k(s).icon
|
|
756
859
|
}
|
|
757
860
|
]]),
|
|
758
|
-
style:
|
|
861
|
+
style: ce(l.value)
|
|
759
862
|
}, [
|
|
760
|
-
|
|
761
|
-
t.icon ||
|
|
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
|
-
])) :
|
|
769
|
-
|
|
871
|
+
])) : w("", !0),
|
|
872
|
+
C("div", wt, [
|
|
770
873
|
m(u.$slots, "default", {}, () => [
|
|
771
|
-
|
|
874
|
+
x(V(t.content), 1)
|
|
772
875
|
], !0)
|
|
773
876
|
]),
|
|
774
|
-
t.closable ? (
|
|
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
|
-
])) :
|
|
886
|
+
])) : w("", !0)
|
|
784
887
|
])
|
|
785
|
-
], 6)) :
|
|
888
|
+
], 6)) : w("", !0);
|
|
786
889
|
}
|
|
787
|
-
}),
|
|
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
|
-
|
|
837
|
-
const n =
|
|
838
|
-
|
|
939
|
+
W();
|
|
940
|
+
const n = L([]), r = L(s.modelValue);
|
|
941
|
+
R(() => s.modelValue, (u) => {
|
|
839
942
|
r.value = u;
|
|
840
|
-
}),
|
|
943
|
+
}), R(r, (u) => {
|
|
841
944
|
a("update:modelValue", u), a("tab-change", u);
|
|
842
|
-
}),
|
|
945
|
+
}), ue("tabsContext", {
|
|
843
946
|
registerTab: (u) => {
|
|
844
|
-
const
|
|
845
|
-
|
|
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
|
|
849
|
-
|
|
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,
|
|
955
|
+
const l = (u, y) => Y(this, null, function* () {
|
|
853
956
|
if (u.disabled) return;
|
|
854
|
-
const
|
|
855
|
-
if (r.value !==
|
|
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,
|
|
961
|
+
if ((yield s.beforeLeave(r.value, f)) === !1) return;
|
|
859
962
|
} catch (S) {
|
|
860
963
|
return;
|
|
861
964
|
}
|
|
862
|
-
r.value =
|
|
965
|
+
r.value = f, a("tab-click", { name: f, index: y, disabled: u.disabled });
|
|
863
966
|
}
|
|
864
|
-
}),
|
|
865
|
-
const
|
|
866
|
-
a("tab-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:
|
|
872
|
-
}), (u,
|
|
873
|
-
class:
|
|
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
|
-
|
|
876
|
-
|
|
877
|
-
(
|
|
878
|
-
var
|
|
879
|
-
return
|
|
880
|
-
key:
|
|
881
|
-
class:
|
|
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 === (
|
|
885
|
-
"m-tabs__item--disabled":
|
|
886
|
-
"m-tabs__item--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: (
|
|
992
|
+
onClick: (te) => l(f, S)
|
|
890
993
|
}, [
|
|
891
|
-
|
|
892
|
-
(
|
|
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
|
-
|
|
997
|
+
f.closable ? (i(), M("span", {
|
|
895
998
|
key: 0,
|
|
896
999
|
class: "m-tabs__item-close",
|
|
897
|
-
onClick:
|
|
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,
|
|
904
|
-
], 10,
|
|
1006
|
+
], 8, zt)) : w("", !0)
|
|
1007
|
+
], 10, Nt);
|
|
905
1008
|
}), 128)),
|
|
906
|
-
t.addable || t.editable ? (
|
|
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
|
-
])) :
|
|
1018
|
+
])) : w("", !0)
|
|
916
1019
|
])
|
|
917
1020
|
]),
|
|
918
|
-
|
|
1021
|
+
C("div", Lt, [
|
|
919
1022
|
m(u.$slots, "default", {}, void 0, !0)
|
|
920
1023
|
])
|
|
921
1024
|
], 2));
|
|
922
1025
|
}
|
|
923
|
-
},
|
|
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 =
|
|
956
|
-
return
|
|
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
|
-
}),
|
|
1070
|
+
}), fe(() => {
|
|
968
1071
|
s && s.unregisterTab(e.name);
|
|
969
|
-
}), (n, r) =>
|
|
970
|
-
class:
|
|
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
|
-
[
|
|
1080
|
+
[be, a.value]
|
|
978
1081
|
]);
|
|
979
1082
|
}
|
|
980
|
-
}),
|
|
981
|
-
function
|
|
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
|
|
985
|
-
t && t.$el &&
|
|
1087
|
+
function Ft(t) {
|
|
1088
|
+
t && t.$el && D(t.$el);
|
|
986
1089
|
}
|
|
987
|
-
function
|
|
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
|
|
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
|
|
1015
|
-
return
|
|
1117
|
+
function Wt(t) {
|
|
1118
|
+
return A(T({}, t), {
|
|
1016
1119
|
mounted() {
|
|
1017
|
-
|
|
1120
|
+
D(this.$el), t.mounted && t.mounted.call(this);
|
|
1018
1121
|
},
|
|
1019
1122
|
updated() {
|
|
1020
|
-
|
|
1123
|
+
D(this.$el), t.updated && t.updated.call(this);
|
|
1021
1124
|
}
|
|
1022
1125
|
});
|
|
1023
1126
|
}
|
|
1024
|
-
const
|
|
1127
|
+
const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1025
1128
|
__proto__: null,
|
|
1026
|
-
addComponentOverride:
|
|
1027
|
-
addOverrideClass:
|
|
1028
|
-
applyGlobalOverride:
|
|
1029
|
-
createOverrideComponent:
|
|
1030
|
-
forceRefreshStyles:
|
|
1031
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1032
|
-
function
|
|
1033
|
-
const e =
|
|
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(
|
|
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)
|
|
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
|
-
|
|
1155
|
+
c[n] = s;
|
|
1051
1156
|
}
|
|
1052
1157
|
});
|
|
1053
1158
|
}
|
|
1054
|
-
const
|
|
1055
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1159
|
+
const Jt = (t) => {
|
|
1160
|
+
typeof window != "undefined" && Promise.resolve().then(() => Zt).then(({ applyGlobalOverride: e }) => {
|
|
1056
1161
|
e();
|
|
1057
|
-
}),
|
|
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
|
-
|
|
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
|
-
}),
|
|
1068
|
-
}
|
|
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
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
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
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
Ye as
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
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
|