@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.
- package/dist/components/Alert/Alert.vue.d.ts +8 -3
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.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 +491 -356
- 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/Dialog/Dialog.vue +3 -0
- 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 $, 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
|
|
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
|
-
},
|
|
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(), $("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__ */
|
|
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 =
|
|
132
|
-
return
|
|
133
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
166
|
-
return
|
|
147
|
+
const s = Me;
|
|
148
|
+
return i(), _(s, M(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 = $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
|
-
}),
|
|
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, 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
|
-
}),
|
|
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, 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
|
-
}),
|
|
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, M({
|
|
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, 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
|
-
}),
|
|
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, 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
|
-
}),
|
|
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, M(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, 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
|
-
}),
|
|
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 = Oe;
|
|
397
|
+
return i(), _(n, M(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 = 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
|
-
}),
|
|
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, M(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 = /* @__PURE__ */ Object.assign({
|
|
473
|
+
name: "MDialog"
|
|
474
|
+
}, {
|
|
463
475
|
__name: "Dialog",
|
|
464
|
-
props: /* @__PURE__ */
|
|
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__ */
|
|
504
|
+
emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
|
|
493
505
|
setup(t, { emit: e }) {
|
|
494
|
-
const o =
|
|
506
|
+
const o = ae(t, "modelValue");
|
|
495
507
|
return (s, a) => {
|
|
496
|
-
const n =
|
|
497
|
-
return
|
|
498
|
-
|
|
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] =
|
|
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:
|
|
519
|
-
m(s.$slots, "header",
|
|
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
|
-
},
|
|
546
|
+
}), lt = {
|
|
535
547
|
name: "MNotification"
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
-
}
|
|
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 } =
|
|
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 =
|
|
568
|
-
return
|
|
569
|
-
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
700
|
+
], yt = {
|
|
596
701
|
name: "MEmpty"
|
|
597
|
-
},
|
|
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 :
|
|
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 =
|
|
711
|
+
const e = t, o = G(), s = h(() => {
|
|
607
712
|
const l = o, { image: n } = l;
|
|
608
|
-
return
|
|
609
|
-
}), a =
|
|
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 =
|
|
615
|
-
return
|
|
616
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
632
|
-
return
|
|
633
|
-
|
|
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
|
-
}),
|
|
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 =
|
|
649
|
-
return
|
|
650
|
-
|
|
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
|
-
}),
|
|
764
|
+
}), Tt = { class: "m-banner__content" }, Bt = {
|
|
660
765
|
key: 0,
|
|
661
766
|
class: "m-banner__icon"
|
|
662
|
-
},
|
|
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 =
|
|
727
|
-
|
|
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 =
|
|
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
|
-
}),
|
|
838
|
+
}), d = {
|
|
734
839
|
info: "info",
|
|
735
840
|
success: "check-circle",
|
|
736
841
|
warning: "warning",
|
|
737
842
|
error: "close-circle"
|
|
738
843
|
};
|
|
739
|
-
|
|
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
|
|
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,
|
|
853
|
+
close: v
|
|
854
|
+
}), (u, y) => t.visible ? (i(), $("div", {
|
|
750
855
|
key: 0,
|
|
751
|
-
class:
|
|
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 ||
|
|
860
|
+
"m-banner--with-icon": t.icon || k(s).icon
|
|
756
861
|
}
|
|
757
862
|
]]),
|
|
758
|
-
style:
|
|
863
|
+
style: ce(l.value)
|
|
759
864
|
}, [
|
|
760
|
-
|
|
761
|
-
t.icon ||
|
|
865
|
+
C("div", Tt, [
|
|
866
|
+
t.icon || k(s).icon ? (i(), $("div", Bt, [
|
|
762
867
|
m(u.$slots, "icon", {}, () => [
|
|
763
|
-
|
|
868
|
+
E(P, {
|
|
764
869
|
name: t.icon,
|
|
765
870
|
size: t.iconSize
|
|
766
871
|
}, null, 8, ["name", "size"])
|
|
767
872
|
], !0)
|
|
768
|
-
])) :
|
|
769
|
-
|
|
873
|
+
])) : w("", !0),
|
|
874
|
+
C("div", wt, [
|
|
770
875
|
m(u.$slots, "default", {}, () => [
|
|
771
|
-
|
|
876
|
+
x(V(t.content), 1)
|
|
772
877
|
], !0)
|
|
773
878
|
]),
|
|
774
|
-
t.closable ? (
|
|
879
|
+
t.closable ? (i(), $("div", {
|
|
775
880
|
key: 1,
|
|
776
881
|
class: "m-banner__close",
|
|
777
|
-
onClick:
|
|
882
|
+
onClick: v
|
|
778
883
|
}, [
|
|
779
|
-
|
|
884
|
+
E(P, {
|
|
780
885
|
name: "lucide-x",
|
|
781
886
|
size: t.closeIconSize
|
|
782
887
|
}, null, 8, ["size"])
|
|
783
|
-
])) :
|
|
888
|
+
])) : w("", !0)
|
|
784
889
|
])
|
|
785
|
-
], 6)) :
|
|
890
|
+
], 6)) : w("", !0);
|
|
786
891
|
}
|
|
787
|
-
}),
|
|
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
|
-
|
|
837
|
-
const n =
|
|
838
|
-
|
|
941
|
+
W();
|
|
942
|
+
const n = L([]), r = L(s.modelValue);
|
|
943
|
+
R(() => s.modelValue, (u) => {
|
|
839
944
|
r.value = u;
|
|
840
|
-
}),
|
|
945
|
+
}), R(r, (u) => {
|
|
841
946
|
a("update:modelValue", u), a("tab-change", u);
|
|
842
|
-
}),
|
|
947
|
+
}), ue("tabsContext", {
|
|
843
948
|
registerTab: (u) => {
|
|
844
|
-
const
|
|
845
|
-
|
|
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
|
|
849
|
-
|
|
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,
|
|
957
|
+
const l = (u, y) => Y(this, null, function* () {
|
|
853
958
|
if (u.disabled) return;
|
|
854
|
-
const
|
|
855
|
-
if (r.value !==
|
|
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,
|
|
963
|
+
if ((yield s.beforeLeave(r.value, f)) === !1) return;
|
|
859
964
|
} catch (S) {
|
|
860
965
|
return;
|
|
861
966
|
}
|
|
862
|
-
r.value =
|
|
967
|
+
r.value = f, a("tab-click", { name: f, index: y, disabled: u.disabled });
|
|
863
968
|
}
|
|
864
|
-
}),
|
|
865
|
-
const
|
|
866
|
-
a("tab-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:
|
|
872
|
-
}), (u,
|
|
873
|
-
class:
|
|
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
|
-
|
|
876
|
-
|
|
877
|
-
(
|
|
878
|
-
var
|
|
879
|
-
return
|
|
880
|
-
key:
|
|
881
|
-
class:
|
|
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 === (
|
|
885
|
-
"m-tabs__item--disabled":
|
|
886
|
-
"m-tabs__item--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: (
|
|
994
|
+
onClick: (te) => l(f, S)
|
|
890
995
|
}, [
|
|
891
|
-
|
|
892
|
-
(
|
|
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
|
-
|
|
999
|
+
f.closable ? (i(), $("span", {
|
|
895
1000
|
key: 0,
|
|
896
1001
|
class: "m-tabs__item-close",
|
|
897
|
-
onClick:
|
|
1002
|
+
onClick: me((te) => d(f, S), ["stop"])
|
|
898
1003
|
}, [
|
|
899
|
-
|
|
1004
|
+
E(P, {
|
|
900
1005
|
name: "lucide-x",
|
|
901
1006
|
size: 12
|
|
902
1007
|
})
|
|
903
|
-
], 8,
|
|
904
|
-
], 10,
|
|
1008
|
+
], 8, zt)) : w("", !0)
|
|
1009
|
+
], 10, Nt);
|
|
905
1010
|
}), 128)),
|
|
906
|
-
t.addable || t.editable ? (
|
|
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
|
-
|
|
1016
|
+
E(P, {
|
|
912
1017
|
name: "plus",
|
|
913
1018
|
size: 12
|
|
914
1019
|
})
|
|
915
|
-
])) :
|
|
1020
|
+
])) : w("", !0)
|
|
916
1021
|
])
|
|
917
1022
|
]),
|
|
918
|
-
|
|
1023
|
+
C("div", Lt, [
|
|
919
1024
|
m(u.$slots, "default", {}, void 0, !0)
|
|
920
1025
|
])
|
|
921
1026
|
], 2));
|
|
922
1027
|
}
|
|
923
|
-
},
|
|
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 =
|
|
956
|
-
return
|
|
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
|
-
}),
|
|
1072
|
+
}), fe(() => {
|
|
968
1073
|
s && s.unregisterTab(e.name);
|
|
969
|
-
}), (n, r) =>
|
|
970
|
-
class:
|
|
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
|
-
[
|
|
1082
|
+
[be, a.value]
|
|
978
1083
|
]);
|
|
979
1084
|
}
|
|
980
|
-
}),
|
|
981
|
-
function
|
|
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
|
|
985
|
-
t && t.$el &&
|
|
1089
|
+
function Ft(t) {
|
|
1090
|
+
t && t.$el && D(t.$el);
|
|
986
1091
|
}
|
|
987
|
-
function
|
|
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
|
|
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
|
|
1015
|
-
return
|
|
1119
|
+
function Wt(t) {
|
|
1120
|
+
return A(T({}, t), {
|
|
1016
1121
|
mounted() {
|
|
1017
|
-
|
|
1122
|
+
D(this.$el), t.mounted && t.mounted.call(this);
|
|
1018
1123
|
},
|
|
1019
1124
|
updated() {
|
|
1020
|
-
|
|
1125
|
+
D(this.$el), t.updated && t.updated.call(this);
|
|
1021
1126
|
}
|
|
1022
1127
|
});
|
|
1023
1128
|
}
|
|
1024
|
-
const
|
|
1129
|
+
const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1025
1130
|
__proto__: null,
|
|
1026
|
-
addComponentOverride:
|
|
1027
|
-
addOverrideClass:
|
|
1028
|
-
applyGlobalOverride:
|
|
1029
|
-
createOverrideComponent:
|
|
1030
|
-
forceRefreshStyles:
|
|
1031
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1032
|
-
function
|
|
1033
|
-
const e =
|
|
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(
|
|
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)
|
|
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
|
-
|
|
1157
|
+
c[n] = s;
|
|
1051
1158
|
}
|
|
1052
1159
|
});
|
|
1053
1160
|
}
|
|
1054
|
-
const
|
|
1055
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1161
|
+
const Jt = (t) => {
|
|
1162
|
+
typeof window != "undefined" && Promise.resolve().then(() => Zt).then(({ applyGlobalOverride: e }) => {
|
|
1056
1163
|
e();
|
|
1057
|
-
}),
|
|
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
|
-
|
|
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
|
-
|
|
1068
|
-
}
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|