@mc-markets/ui 1.0.76 → 1.0.77
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/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Tabs/TabPane.vue.d.ts +1 -21
- package/dist/components/Tabs/TabPane.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +1 -29
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +492 -655
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/packages/components/Switch/Switch.vue +21 -10
- package/packages/components/Tabs/TabPane.vue +14 -93
- package/packages/components/Tabs/Tabs.vue +14 -409
package/dist/index.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var te = Object.defineProperty, se = Object.defineProperties;
|
|
2
|
+
var oe = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var N = Object.getOwnPropertySymbols;
|
|
4
|
+
var q = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var U = (e, t, o) => t in e ? te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, b = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
7
|
+
q.call(t, o) && U(e, o, t[o]);
|
|
8
|
+
if (N)
|
|
9
|
+
for (var o of N(t))
|
|
10
|
+
H.call(t, o) && U(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, w = (e, t) => se(e, oe(t));
|
|
13
|
+
var j = (e, t) => {
|
|
14
14
|
var o = {};
|
|
15
15
|
for (var s in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var s of
|
|
19
|
-
t.indexOf(s) < 0 &&
|
|
16
|
+
q.call(e, s) && t.indexOf(s) < 0 && (o[s] = e[s]);
|
|
17
|
+
if (e != null && N)
|
|
18
|
+
for (var s of N(e))
|
|
19
|
+
t.indexOf(s) < 0 && H.call(e, s) && (o[s] = e[s]);
|
|
20
20
|
return o;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var n = (
|
|
22
|
+
var F = (e, t, o) => new Promise((s, r) => {
|
|
23
|
+
var n = (p) => {
|
|
24
24
|
try {
|
|
25
|
-
i(o.next(
|
|
26
|
-
} catch (
|
|
27
|
-
|
|
25
|
+
i(o.next(p));
|
|
26
|
+
} catch (M) {
|
|
27
|
+
r(M);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, a = (p) => {
|
|
30
30
|
try {
|
|
31
|
-
i(o.throw(
|
|
32
|
-
} catch (
|
|
33
|
-
|
|
31
|
+
i(o.throw(p));
|
|
32
|
+
} catch (M) {
|
|
33
|
+
r(M);
|
|
34
34
|
}
|
|
35
|
-
}, i = (
|
|
35
|
+
}, i = (p) => p.done ? s(p.value) : Promise.resolve(p.value).then(n, a);
|
|
36
36
|
i((o = o.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import * as
|
|
39
|
-
import { computed as
|
|
40
|
-
import { ElButton as
|
|
38
|
+
import * as J from "element-plus";
|
|
39
|
+
import { computed as h, createElementBlock as $, openBlock as c, mergeProps as g, renderSlot as u, createBlock as d, createSlots as _, renderList as f, withCtx as m, ref as L, useAttrs as B, unref as v, normalizeProps as z, guardReactiveProps as R, createElementVNode as k, mergeModels as W, useModel as ne, createVNode as E, Teleport as Q, TransitionGroup as X, Fragment as Y, normalizeClass as G, createCommentVNode as S, resolveDynamicComponent as K, toDisplayString as O, useSlots as re, watch as Z, normalizeStyle as ae, createTextVNode as ie } from "vue";
|
|
40
|
+
import { ElButton as ce, ElInput as le, ElForm as ue, ElFormItem as me, ElTooltip as pe, ElSelect as de, ElOption as fe, ElOptionGroup as _e, ElPagination as ge, ElRadio as $e, ElRadioGroup as Me, ElRadioButton as be, ElSwitch as he, ElTag as ye, ElAlert as ve, ElDialog as Ce, ElNotification as ke, ElDatePicker as Se, ElEmpty as we, ElTable as Te, ElTableColumn as Ie, ElTabs as Ee, ElTabPane as Oe } 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
43
|
import "element-plus/es/components/input/style/index";
|
|
@@ -60,12 +60,14 @@ import "element-plus/es/components/date-picker/style/index";
|
|
|
60
60
|
import "element-plus/es/components/empty/style/index";
|
|
61
61
|
import "element-plus/es/components/table/style/index";
|
|
62
62
|
import "element-plus/es/components/table-column/style/index";
|
|
63
|
-
|
|
63
|
+
import "element-plus/es/components/tabs/style/index";
|
|
64
|
+
import "element-plus/es/components/tab-pane/style/index";
|
|
65
|
+
const T = (e, t) => {
|
|
64
66
|
const o = e.__vccOpts || e;
|
|
65
|
-
for (const [s,
|
|
66
|
-
o[s] =
|
|
67
|
+
for (const [s, r] of t)
|
|
68
|
+
o[s] = r;
|
|
67
69
|
return o;
|
|
68
|
-
},
|
|
70
|
+
}, Be = /* @__PURE__ */ Object.assign({
|
|
69
71
|
name: "MIcon"
|
|
70
72
|
}, {
|
|
71
73
|
__name: "Icon",
|
|
@@ -105,131 +107,131 @@ const B = (e, t) => {
|
|
|
105
107
|
},
|
|
106
108
|
emits: ["click"],
|
|
107
109
|
setup(e, { emit: t }) {
|
|
108
|
-
const o = e, s = t,
|
|
110
|
+
const o = e, s = t, r = h(() => {
|
|
109
111
|
const i = ["iconfont"];
|
|
110
112
|
return o.name && i.push(`${o.prefix}-${o.name}`), o.spin && i.push("icon-spin"), o.pulse && i.push("icon-pulse"), o.flip && i.push(`icon-flip-${o.flip}`), i;
|
|
111
|
-
}), n =
|
|
113
|
+
}), n = h(() => {
|
|
112
114
|
const i = {};
|
|
113
115
|
return o.size && (typeof o.size == "number" ? i.fontSize = `${o.size}px` : i.fontSize = o.size), o.color && (i.color = o.color), o.rotate !== 0 && (i.transform = `rotate(${o.rotate}deg)`), i;
|
|
114
|
-
}),
|
|
116
|
+
}), a = (i) => {
|
|
115
117
|
s("click", i);
|
|
116
118
|
};
|
|
117
|
-
return (i,
|
|
118
|
-
class:
|
|
119
|
+
return (i, p) => (c(), $("i", g({
|
|
120
|
+
class: r.value,
|
|
119
121
|
style: n.value
|
|
120
|
-
}, i.$attrs, { onClick:
|
|
121
|
-
|
|
122
|
+
}, i.$attrs, { onClick: a }), [
|
|
123
|
+
u(i.$slots, "default", {}, void 0, !0)
|
|
122
124
|
], 16));
|
|
123
125
|
}
|
|
124
|
-
}),
|
|
126
|
+
}), V = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-90f84c9e"]]), Pe = /* @__PURE__ */ Object.assign({
|
|
125
127
|
name: "MButton"
|
|
126
128
|
}, {
|
|
127
129
|
__name: "Button",
|
|
128
130
|
setup(e) {
|
|
129
131
|
return (t, o) => {
|
|
130
|
-
const s =
|
|
131
|
-
return
|
|
132
|
-
|
|
132
|
+
const s = ce;
|
|
133
|
+
return c(), d(s, g(t.$attrs, { class: "m-button" }), _({ _: 2 }, [
|
|
134
|
+
f(t.$slots, (r, n) => ({
|
|
133
135
|
name: n,
|
|
134
|
-
fn:
|
|
135
|
-
|
|
136
|
+
fn: m(() => [
|
|
137
|
+
u(t.$slots, n, {}, void 0, !0)
|
|
136
138
|
])
|
|
137
139
|
}))
|
|
138
140
|
]), 1040);
|
|
139
141
|
};
|
|
140
142
|
}
|
|
141
|
-
}),
|
|
143
|
+
}), Ne = /* @__PURE__ */ T(Pe, [["__scopeId", "data-v-9c99add1"]]), je = /* @__PURE__ */ Object.assign({
|
|
142
144
|
name: "MInput"
|
|
143
145
|
}, {
|
|
144
146
|
__name: "Input",
|
|
145
147
|
setup(e) {
|
|
146
148
|
return (t, o) => {
|
|
147
|
-
const s =
|
|
148
|
-
return
|
|
149
|
+
const s = le;
|
|
150
|
+
return c(), d(s, g(t.$attrs, {
|
|
149
151
|
class: ["m-input", { solid: t.$attrs.styleType === "solid" }]
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
+
}), _({ _: 2 }, [
|
|
153
|
+
f(t.$slots, (r, n) => ({
|
|
152
154
|
name: n,
|
|
153
|
-
fn:
|
|
154
|
-
|
|
155
|
+
fn: m(() => [
|
|
156
|
+
u(t.$slots, n)
|
|
155
157
|
])
|
|
156
158
|
}))
|
|
157
159
|
]), 1040, ["class"]);
|
|
158
160
|
};
|
|
159
161
|
}
|
|
160
|
-
}),
|
|
162
|
+
}), Ae = /* @__PURE__ */ Object.assign({
|
|
161
163
|
name: "MForm"
|
|
162
164
|
}, {
|
|
163
165
|
__name: "Form",
|
|
164
166
|
setup(e, { expose: t }) {
|
|
165
|
-
const o =
|
|
166
|
-
return
|
|
167
|
+
const o = L();
|
|
168
|
+
return B(), t({
|
|
167
169
|
validate: (s) => {
|
|
168
|
-
var
|
|
169
|
-
return (
|
|
170
|
+
var r;
|
|
171
|
+
return (r = o.value) == null ? void 0 : r.validate(s);
|
|
170
172
|
},
|
|
171
|
-
validateField: (s,
|
|
173
|
+
validateField: (s, r) => {
|
|
172
174
|
var n;
|
|
173
|
-
return (n = o.value) == null ? void 0 : n.validateField(s,
|
|
175
|
+
return (n = o.value) == null ? void 0 : n.validateField(s, r);
|
|
174
176
|
},
|
|
175
177
|
resetFields: () => {
|
|
176
178
|
var s;
|
|
177
179
|
return (s = o.value) == null ? void 0 : s.resetFields();
|
|
178
180
|
},
|
|
179
181
|
scrollToField: (s) => {
|
|
180
|
-
var
|
|
181
|
-
return (
|
|
182
|
+
var r;
|
|
183
|
+
return (r = o.value) == null ? void 0 : r.scrollToField(s);
|
|
182
184
|
},
|
|
183
185
|
clearValidate: (s) => {
|
|
184
|
-
var
|
|
185
|
-
return (
|
|
186
|
+
var r;
|
|
187
|
+
return (r = o.value) == null ? void 0 : r.clearValidate(s);
|
|
186
188
|
}
|
|
187
|
-
}), (s,
|
|
188
|
-
const n =
|
|
189
|
-
return
|
|
189
|
+
}), (s, r) => {
|
|
190
|
+
const n = ue;
|
|
191
|
+
return c(), d(n, g({
|
|
190
192
|
ref_key: "formRef",
|
|
191
193
|
ref: o
|
|
192
|
-
}, s.$attrs, { class: "m-form" }),
|
|
193
|
-
|
|
194
|
+
}, s.$attrs, { class: "m-form" }), _({ _: 2 }, [
|
|
195
|
+
f(s.$slots, (a, i) => ({
|
|
194
196
|
name: i,
|
|
195
|
-
fn:
|
|
196
|
-
|
|
197
|
+
fn: m(() => [
|
|
198
|
+
u(s.$slots, i)
|
|
197
199
|
])
|
|
198
200
|
}))
|
|
199
201
|
]), 1040);
|
|
200
202
|
};
|
|
201
203
|
}
|
|
202
|
-
}),
|
|
204
|
+
}), Le = /* @__PURE__ */ Object.assign({
|
|
203
205
|
name: "MFormItem"
|
|
204
206
|
}, {
|
|
205
207
|
__name: "FormItem",
|
|
206
208
|
setup(e) {
|
|
207
209
|
return (t, o) => {
|
|
208
|
-
const s =
|
|
209
|
-
return
|
|
210
|
-
|
|
210
|
+
const s = me;
|
|
211
|
+
return c(), d(s, g(t.$attrs, { class: "m-form-item" }), _({ _: 2 }, [
|
|
212
|
+
f(t.$slots, (r, n) => ({
|
|
211
213
|
name: n,
|
|
212
|
-
fn:
|
|
213
|
-
|
|
214
|
+
fn: m(() => [
|
|
215
|
+
u(t.$slots, n)
|
|
214
216
|
])
|
|
215
217
|
}))
|
|
216
218
|
]), 1040);
|
|
217
219
|
};
|
|
218
220
|
}
|
|
219
|
-
}),
|
|
220
|
-
const o =
|
|
221
|
+
}), ze = (...e) => e.filter(Boolean).join(" "), Re = (e, ...t) => {
|
|
222
|
+
const o = b({}, e);
|
|
221
223
|
return t.forEach((s) => {
|
|
222
224
|
delete o[s];
|
|
223
225
|
}), o;
|
|
224
226
|
};
|
|
225
|
-
function
|
|
226
|
-
const o =
|
|
227
|
+
function P(e, t = "popperClass") {
|
|
228
|
+
const o = B(), s = h(() => Re(o, t)), r = h(() => ze(e, o[t]));
|
|
227
229
|
return {
|
|
228
230
|
mergedAttrs: s,
|
|
229
|
-
className:
|
|
231
|
+
className: r
|
|
230
232
|
};
|
|
231
233
|
}
|
|
232
|
-
const
|
|
234
|
+
const Fe = /* @__PURE__ */ Object.assign({
|
|
233
235
|
name: "MTooltip"
|
|
234
236
|
}, {
|
|
235
237
|
__name: "Tooltip",
|
|
@@ -240,91 +242,91 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
240
242
|
}
|
|
241
243
|
},
|
|
242
244
|
setup(e) {
|
|
243
|
-
const { mergedAttrs: t, className: o } =
|
|
244
|
-
return (s,
|
|
245
|
-
const n =
|
|
246
|
-
return
|
|
247
|
-
|
|
245
|
+
const { mergedAttrs: t, className: o } = P("mc-tooltip-popper");
|
|
246
|
+
return (s, r) => {
|
|
247
|
+
const n = pe;
|
|
248
|
+
return c(), d(n, g(v(t), { "popper-class": v(o) }), _({ _: 2 }, [
|
|
249
|
+
f(s.$slots, (a, i) => ({
|
|
248
250
|
name: i,
|
|
249
|
-
fn:
|
|
250
|
-
|
|
251
|
+
fn: m(() => [
|
|
252
|
+
u(s.$slots, i)
|
|
251
253
|
])
|
|
252
254
|
}))
|
|
253
255
|
]), 1040, ["popper-class"]);
|
|
254
256
|
};
|
|
255
257
|
}
|
|
256
|
-
}),
|
|
258
|
+
}), Ve = /* @__PURE__ */ Object.assign({
|
|
257
259
|
name: "MSelect"
|
|
258
260
|
}, {
|
|
259
261
|
__name: "Select",
|
|
260
262
|
setup(e) {
|
|
261
263
|
return (t, o) => {
|
|
262
|
-
const s =
|
|
263
|
-
return
|
|
264
|
+
const s = de;
|
|
265
|
+
return c(), d(s, g({
|
|
264
266
|
class: ["m-select", { solid: t.$attrs.styleType === "solid" }],
|
|
265
267
|
"show-arrow": !1
|
|
266
|
-
}, t.$attrs),
|
|
267
|
-
|
|
268
|
+
}, t.$attrs), _({ _: 2 }, [
|
|
269
|
+
f(t.$slots, (r, n) => ({
|
|
268
270
|
name: n,
|
|
269
|
-
fn:
|
|
270
|
-
|
|
271
|
+
fn: m(() => [
|
|
272
|
+
u(t.$slots, n)
|
|
271
273
|
])
|
|
272
274
|
}))
|
|
273
275
|
]), 1040, ["class"]);
|
|
274
276
|
};
|
|
275
277
|
}
|
|
276
|
-
}),
|
|
278
|
+
}), Ge = /* @__PURE__ */ Object.assign({
|
|
277
279
|
name: "MOption"
|
|
278
280
|
}, {
|
|
279
281
|
__name: "Option",
|
|
280
282
|
setup(e) {
|
|
281
283
|
return (t, o) => {
|
|
282
|
-
const s =
|
|
283
|
-
return
|
|
284
|
-
|
|
284
|
+
const s = fe;
|
|
285
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
286
|
+
f(t.$slots, (r, n) => ({
|
|
285
287
|
name: n,
|
|
286
|
-
fn:
|
|
287
|
-
|
|
288
|
+
fn: m(() => [
|
|
289
|
+
u(t.$slots, n)
|
|
288
290
|
])
|
|
289
291
|
}))
|
|
290
292
|
]), 1040);
|
|
291
293
|
};
|
|
292
294
|
}
|
|
293
|
-
}),
|
|
295
|
+
}), De = /* @__PURE__ */ Object.assign({
|
|
294
296
|
name: "MOptionGroup"
|
|
295
297
|
}, {
|
|
296
298
|
__name: "OptionGroup",
|
|
297
299
|
setup(e) {
|
|
298
300
|
return (t, o) => {
|
|
299
|
-
const s =
|
|
300
|
-
return
|
|
301
|
-
|
|
301
|
+
const s = _e;
|
|
302
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
303
|
+
f(t.$slots, (r, n) => ({
|
|
302
304
|
name: n,
|
|
303
|
-
fn:
|
|
304
|
-
|
|
305
|
+
fn: m(() => [
|
|
306
|
+
u(t.$slots, n)
|
|
305
307
|
])
|
|
306
308
|
}))
|
|
307
309
|
]), 1040);
|
|
308
310
|
};
|
|
309
311
|
}
|
|
310
|
-
}),
|
|
312
|
+
}), Ue = /* @__PURE__ */ Object.assign({
|
|
311
313
|
name: "MPagination"
|
|
312
314
|
}, {
|
|
313
315
|
__name: "Pagination",
|
|
314
316
|
setup(e) {
|
|
315
317
|
return (t, o) => {
|
|
316
|
-
const s =
|
|
317
|
-
return
|
|
318
|
-
|
|
318
|
+
const s = ge;
|
|
319
|
+
return c(), d(s, g(t.$attrs, { class: "m-pagination" }), _({ _: 2 }, [
|
|
320
|
+
f(t.$slots, (r, n) => ({
|
|
319
321
|
name: n,
|
|
320
|
-
fn:
|
|
321
|
-
|
|
322
|
+
fn: m(() => [
|
|
323
|
+
u(t.$slots, n)
|
|
322
324
|
])
|
|
323
325
|
}))
|
|
324
326
|
]), 1040);
|
|
325
327
|
};
|
|
326
328
|
}
|
|
327
|
-
}),
|
|
329
|
+
}), qe = /* @__PURE__ */ Object.assign({
|
|
328
330
|
name: "MRadio"
|
|
329
331
|
}, {
|
|
330
332
|
__name: "Radio",
|
|
@@ -335,20 +337,20 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
335
337
|
}
|
|
336
338
|
},
|
|
337
339
|
setup(e) {
|
|
338
|
-
const { mergedAttrs: t } =
|
|
340
|
+
const { mergedAttrs: t } = P("mc-radio-popper");
|
|
339
341
|
return (o, s) => {
|
|
340
|
-
const
|
|
341
|
-
return
|
|
342
|
-
|
|
343
|
-
name:
|
|
344
|
-
fn:
|
|
345
|
-
|
|
342
|
+
const r = $e;
|
|
343
|
+
return c(), d(r, g(v(t), { class: "m-radio" }), _({ _: 2 }, [
|
|
344
|
+
f(o.$slots, (n, a) => ({
|
|
345
|
+
name: a,
|
|
346
|
+
fn: m(() => [
|
|
347
|
+
u(o.$slots, a)
|
|
346
348
|
])
|
|
347
349
|
}))
|
|
348
350
|
]), 1040);
|
|
349
351
|
};
|
|
350
352
|
}
|
|
351
|
-
}),
|
|
353
|
+
}), He = /* @__PURE__ */ Object.assign({
|
|
352
354
|
name: "MRadioGroup"
|
|
353
355
|
}, {
|
|
354
356
|
__name: "RadioGroup",
|
|
@@ -359,29 +361,29 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
359
361
|
}
|
|
360
362
|
},
|
|
361
363
|
setup(e) {
|
|
362
|
-
const t =
|
|
363
|
-
const
|
|
364
|
-
return t.popperClass ? `${
|
|
365
|
-
}), s =
|
|
366
|
-
const
|
|
367
|
-
return
|
|
364
|
+
const t = B(), o = h(() => {
|
|
365
|
+
const r = "mc-radio-group-popper";
|
|
366
|
+
return t.popperClass ? `${r} ${t.popperClass}`.trim() : r;
|
|
367
|
+
}), s = h(() => {
|
|
368
|
+
const a = t, { popperClass: r } = a;
|
|
369
|
+
return j(a, ["popperClass"]);
|
|
368
370
|
});
|
|
369
|
-
return (
|
|
370
|
-
const
|
|
371
|
-
return
|
|
371
|
+
return (r, n) => {
|
|
372
|
+
const a = Me;
|
|
373
|
+
return c(), d(a, g(s.value, {
|
|
372
374
|
"popper-class": o.value,
|
|
373
375
|
class: "m-radio-group"
|
|
374
|
-
}),
|
|
375
|
-
|
|
376
|
-
name:
|
|
377
|
-
fn:
|
|
378
|
-
|
|
376
|
+
}), _({ _: 2 }, [
|
|
377
|
+
f(r.$slots, (i, p) => ({
|
|
378
|
+
name: p,
|
|
379
|
+
fn: m(() => [
|
|
380
|
+
u(r.$slots, p)
|
|
379
381
|
])
|
|
380
382
|
}))
|
|
381
383
|
]), 1040, ["popper-class"]);
|
|
382
384
|
};
|
|
383
385
|
}
|
|
384
|
-
}),
|
|
386
|
+
}), We = /* @__PURE__ */ Object.assign({
|
|
385
387
|
name: "MRadioButton"
|
|
386
388
|
}, {
|
|
387
389
|
__name: "RadioButton",
|
|
@@ -392,20 +394,20 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
392
394
|
}
|
|
393
395
|
},
|
|
394
396
|
setup(e) {
|
|
395
|
-
const { mergedAttrs: t } =
|
|
397
|
+
const { mergedAttrs: t } = P("mc-radio-button-popper");
|
|
396
398
|
return (o, s) => {
|
|
397
|
-
const
|
|
398
|
-
return
|
|
399
|
-
|
|
400
|
-
name:
|
|
401
|
-
fn:
|
|
402
|
-
|
|
399
|
+
const r = be;
|
|
400
|
+
return c(), d(r, g(v(t), { class: "m-radio-button" }), _({ _: 2 }, [
|
|
401
|
+
f(o.$slots, (n, a) => ({
|
|
402
|
+
name: a,
|
|
403
|
+
fn: m(() => [
|
|
404
|
+
u(o.$slots, a)
|
|
403
405
|
])
|
|
404
406
|
}))
|
|
405
407
|
]), 1040);
|
|
406
408
|
};
|
|
407
409
|
}
|
|
408
|
-
}),
|
|
410
|
+
}), Ze = /* @__PURE__ */ Object.assign({
|
|
409
411
|
name: "MSwitch"
|
|
410
412
|
}, {
|
|
411
413
|
__name: "Switch",
|
|
@@ -416,47 +418,47 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
416
418
|
}
|
|
417
419
|
},
|
|
418
420
|
setup(e) {
|
|
419
|
-
const { mergedAttrs: t, className: o } =
|
|
420
|
-
return (s,
|
|
421
|
-
const n =
|
|
422
|
-
return
|
|
423
|
-
"popper-class":
|
|
421
|
+
const { mergedAttrs: t, className: o } = P("mc-switch-popper");
|
|
422
|
+
return (s, r) => {
|
|
423
|
+
const n = he;
|
|
424
|
+
return c(), d(n, g(v(t), {
|
|
425
|
+
"popper-class": v(o),
|
|
424
426
|
class: "m-switch"
|
|
425
|
-
}),
|
|
426
|
-
|
|
427
|
+
}), _({ _: 2 }, [
|
|
428
|
+
f(s.$slots, (a, i) => ({
|
|
427
429
|
name: i,
|
|
428
|
-
fn:
|
|
429
|
-
|
|
430
|
+
fn: m(() => [
|
|
431
|
+
u(s.$slots, i)
|
|
430
432
|
])
|
|
431
433
|
}))
|
|
432
434
|
]), 1040, ["popper-class"]);
|
|
433
435
|
};
|
|
434
436
|
}
|
|
435
|
-
}),
|
|
437
|
+
}), Je = /* @__PURE__ */ Object.assign({
|
|
436
438
|
name: "MTag"
|
|
437
439
|
}, {
|
|
438
440
|
__name: "Tag",
|
|
439
441
|
setup(e) {
|
|
440
442
|
return (t, o) => {
|
|
441
|
-
const s =
|
|
442
|
-
return
|
|
443
|
-
|
|
443
|
+
const s = ye;
|
|
444
|
+
return c(), d(s, g(t.$attrs, { class: "m-tag" }), _({ _: 2 }, [
|
|
445
|
+
f(t.$slots, (r, n) => ({
|
|
444
446
|
name: n,
|
|
445
|
-
fn:
|
|
446
|
-
|
|
447
|
+
fn: m(() => [
|
|
448
|
+
u(t.$slots, n)
|
|
447
449
|
])
|
|
448
450
|
}))
|
|
449
451
|
]), 1040);
|
|
450
452
|
};
|
|
451
453
|
}
|
|
452
|
-
}),
|
|
454
|
+
}), Qe = ["src", "alt"], Xe = ["success", "warning", "error"], Ye = {
|
|
453
455
|
name: "MAlert"
|
|
454
|
-
},
|
|
456
|
+
}, Ke = /* @__PURE__ */ Object.assign(Ye, {
|
|
455
457
|
props: {
|
|
456
458
|
type: {
|
|
457
459
|
type: String,
|
|
458
460
|
default: "success",
|
|
459
|
-
validator: (e) =>
|
|
461
|
+
validator: (e) => Xe.includes(e)
|
|
460
462
|
},
|
|
461
463
|
useCustomIcon: {
|
|
462
464
|
type: Boolean,
|
|
@@ -464,41 +466,41 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
464
466
|
}
|
|
465
467
|
},
|
|
466
468
|
setup(e) {
|
|
467
|
-
const t = e, o =
|
|
468
|
-
const i = o, { useCustomIcon: n } = i,
|
|
469
|
-
return
|
|
469
|
+
const t = e, o = B(), s = h(() => {
|
|
470
|
+
const i = o, { useCustomIcon: n } = i, a = j(i, ["useCustomIcon"]);
|
|
471
|
+
return w(b({}, a), {
|
|
470
472
|
type: t.type
|
|
471
473
|
// 确保 type 属性正确传递给 el-alert
|
|
472
474
|
});
|
|
473
|
-
}),
|
|
474
|
-
return (n,
|
|
475
|
-
const i =
|
|
476
|
-
return
|
|
477
|
-
|
|
475
|
+
}), r = h(() => t.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${t.type}.png` : null);
|
|
476
|
+
return (n, a) => {
|
|
477
|
+
const i = ve;
|
|
478
|
+
return c(), d(i, g(s.value, { class: "mc-alert" }), _({ _: 2 }, [
|
|
479
|
+
r.value ? {
|
|
478
480
|
name: "icon",
|
|
479
|
-
fn:
|
|
480
|
-
|
|
481
|
-
src:
|
|
481
|
+
fn: m(() => [
|
|
482
|
+
k("img", {
|
|
483
|
+
src: r.value,
|
|
482
484
|
alt: `${e.type} icon`,
|
|
483
485
|
class: "mc-alert-icon"
|
|
484
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Qe)
|
|
485
487
|
]),
|
|
486
488
|
key: "0"
|
|
487
489
|
} : void 0,
|
|
488
|
-
|
|
489
|
-
name:
|
|
490
|
-
fn:
|
|
491
|
-
|
|
490
|
+
f(n.$slots, (p, M) => ({
|
|
491
|
+
name: M,
|
|
492
|
+
fn: m(() => [
|
|
493
|
+
u(n.$slots, M)
|
|
492
494
|
])
|
|
493
495
|
}))
|
|
494
496
|
]), 1040);
|
|
495
497
|
};
|
|
496
498
|
}
|
|
497
|
-
}),
|
|
499
|
+
}), xe = /* @__PURE__ */ Object.assign({
|
|
498
500
|
name: "MDialog"
|
|
499
501
|
}, {
|
|
500
502
|
__name: "Dialog",
|
|
501
|
-
props: /* @__PURE__ */
|
|
503
|
+
props: /* @__PURE__ */ W({
|
|
502
504
|
width: {
|
|
503
505
|
type: String,
|
|
504
506
|
default: "440px"
|
|
@@ -526,15 +528,15 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
526
528
|
},
|
|
527
529
|
modelModifiers: {}
|
|
528
530
|
}),
|
|
529
|
-
emits: /* @__PURE__ */
|
|
531
|
+
emits: /* @__PURE__ */ W(["close"], ["update:modelValue"]),
|
|
530
532
|
setup(e, { emit: t }) {
|
|
531
|
-
const o =
|
|
532
|
-
return (s,
|
|
533
|
-
const n =
|
|
534
|
-
return
|
|
535
|
-
|
|
533
|
+
const o = ne(e, "modelValue");
|
|
534
|
+
return (s, r) => {
|
|
535
|
+
const n = Ce;
|
|
536
|
+
return c(), $("div", null, [
|
|
537
|
+
E(n, g({
|
|
536
538
|
modelValue: o.value,
|
|
537
|
-
"onUpdate:modelValue":
|
|
539
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => o.value = a),
|
|
538
540
|
width: e.width,
|
|
539
541
|
title: e.title,
|
|
540
542
|
draggable: e.draggable,
|
|
@@ -543,23 +545,23 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
543
545
|
}, s.$attrs, {
|
|
544
546
|
class: "m-dialog",
|
|
545
547
|
"header-class": "m-header"
|
|
546
|
-
}),
|
|
547
|
-
default:
|
|
548
|
-
|
|
548
|
+
}), _({
|
|
549
|
+
default: m(() => [
|
|
550
|
+
u(s.$slots, "default")
|
|
549
551
|
]),
|
|
550
552
|
_: 2
|
|
551
553
|
}, [
|
|
552
554
|
s.$slots.header ? {
|
|
553
555
|
name: "header",
|
|
554
|
-
fn:
|
|
555
|
-
|
|
556
|
+
fn: m(({ close: a, titleId: i, titleClass: p }) => [
|
|
557
|
+
u(s.$slots, "header", z(R({ close: a, titleId: i, titleClass: p })))
|
|
556
558
|
]),
|
|
557
559
|
key: "0"
|
|
558
560
|
} : void 0,
|
|
559
561
|
s.$slots.footer ? {
|
|
560
562
|
name: "footer",
|
|
561
|
-
fn:
|
|
562
|
-
|
|
563
|
+
fn: m(() => [
|
|
564
|
+
u(s.$slots, "footer")
|
|
563
565
|
]),
|
|
564
566
|
key: "1"
|
|
565
567
|
} : void 0
|
|
@@ -567,23 +569,23 @@ const Je = /* @__PURE__ */ Object.assign({
|
|
|
567
569
|
]);
|
|
568
570
|
};
|
|
569
571
|
}
|
|
570
|
-
}),
|
|
572
|
+
}), et = {
|
|
571
573
|
name: "MNotification"
|
|
572
574
|
};
|
|
573
|
-
function
|
|
574
|
-
const
|
|
575
|
-
return
|
|
576
|
-
|
|
577
|
-
name:
|
|
578
|
-
fn:
|
|
579
|
-
|
|
575
|
+
function tt(e, t, o, s, r, n) {
|
|
576
|
+
const a = ke;
|
|
577
|
+
return c(), d(a, g(e.$attrs, { class: "mc-notification" }), _({ _: 2 }, [
|
|
578
|
+
f(e.$slots, (i, p) => ({
|
|
579
|
+
name: p,
|
|
580
|
+
fn: m(() => [
|
|
581
|
+
u(e.$slots, p)
|
|
580
582
|
])
|
|
581
583
|
}))
|
|
582
584
|
]), 1040);
|
|
583
585
|
}
|
|
584
|
-
const
|
|
585
|
-
let
|
|
586
|
-
const
|
|
586
|
+
const st = /* @__PURE__ */ T(et, [["render", tt]]), C = L([]);
|
|
587
|
+
let ot = 0;
|
|
588
|
+
const nt = {
|
|
587
589
|
// 默认配置
|
|
588
590
|
defaultOptions: {
|
|
589
591
|
message: "",
|
|
@@ -605,17 +607,17 @@ const ft = {
|
|
|
605
607
|
// 显示消息
|
|
606
608
|
show(e = {}) {
|
|
607
609
|
typeof e == "string" && (e = { message: e });
|
|
608
|
-
const t =
|
|
609
|
-
id: ++
|
|
610
|
+
const t = w(b(b({}, this.defaultOptions), e), {
|
|
611
|
+
id: ++ot
|
|
610
612
|
});
|
|
611
613
|
if (t.grouping) {
|
|
612
|
-
const o =
|
|
614
|
+
const o = C.value.findIndex(
|
|
613
615
|
(s) => s.message === t.message && s.type === t.type && s.grouping
|
|
614
616
|
);
|
|
615
617
|
if (o > -1)
|
|
616
|
-
return
|
|
618
|
+
return C.value[o].repeatNum++, { close: () => this.close(C.value[o].id) };
|
|
617
619
|
}
|
|
618
|
-
return
|
|
620
|
+
return C.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
619
621
|
this.close(t.id);
|
|
620
622
|
}, t.duration), {
|
|
621
623
|
close: () => this.close(t.id)
|
|
@@ -623,104 +625,104 @@ const ft = {
|
|
|
623
625
|
},
|
|
624
626
|
// 关闭指定消息
|
|
625
627
|
close(e) {
|
|
626
|
-
const t =
|
|
628
|
+
const t = C.value.findIndex((o) => o.id === e);
|
|
627
629
|
if (t > -1) {
|
|
628
|
-
const o =
|
|
629
|
-
o.onClose && o.onClose(o),
|
|
630
|
+
const o = C.value[t];
|
|
631
|
+
o.onClose && o.onClose(o), C.value.splice(t, 1);
|
|
630
632
|
}
|
|
631
633
|
},
|
|
632
634
|
// 关闭所有消息
|
|
633
635
|
closeAll() {
|
|
634
|
-
|
|
636
|
+
C.value = [];
|
|
635
637
|
},
|
|
636
638
|
// 便捷方法
|
|
637
639
|
success(e = {}) {
|
|
638
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
640
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "success" }));
|
|
639
641
|
},
|
|
640
642
|
warning(e = {}) {
|
|
641
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
643
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "warning" }));
|
|
642
644
|
},
|
|
643
645
|
error(e = {}) {
|
|
644
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
646
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "error" }));
|
|
645
647
|
}
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
},
|
|
648
|
+
}, rt = (e) => {
|
|
649
|
+
nt.close(e);
|
|
650
|
+
}, at = {
|
|
649
651
|
name: "MMessage",
|
|
650
652
|
setup() {
|
|
651
653
|
return {
|
|
652
|
-
messages:
|
|
653
|
-
closeMessage:
|
|
654
|
+
messages: C,
|
|
655
|
+
closeMessage: rt
|
|
654
656
|
};
|
|
655
657
|
}
|
|
656
|
-
},
|
|
658
|
+
}, it = {
|
|
657
659
|
key: 0,
|
|
658
660
|
class: "message-icon"
|
|
659
|
-
},
|
|
661
|
+
}, ct = ["src"], lt = {
|
|
660
662
|
key: 1,
|
|
661
663
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-success.png",
|
|
662
664
|
alt: "success icon",
|
|
663
665
|
class: "message-icon-img"
|
|
664
|
-
},
|
|
666
|
+
}, ut = {
|
|
665
667
|
key: 2,
|
|
666
668
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-warning.png",
|
|
667
669
|
alt: "warning icon",
|
|
668
670
|
class: "message-icon-img"
|
|
669
|
-
},
|
|
671
|
+
}, mt = {
|
|
670
672
|
key: 3,
|
|
671
673
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-error.png",
|
|
672
674
|
alt: "error icon",
|
|
673
675
|
class: "message-icon-img"
|
|
674
|
-
},
|
|
676
|
+
}, pt = { class: "message-content" }, dt = ["innerHTML"], ft = { key: 2 }, _t = {
|
|
675
677
|
key: 3,
|
|
676
678
|
class: "message-repeat"
|
|
677
|
-
},
|
|
678
|
-
function
|
|
679
|
-
return
|
|
680
|
-
|
|
679
|
+
}, gt = ["onClick"];
|
|
680
|
+
function $t(e, t, o, s, r, n) {
|
|
681
|
+
return c(), d(Q, { to: "body" }, [
|
|
682
|
+
E(X, {
|
|
681
683
|
name: "message",
|
|
682
684
|
tag: "div",
|
|
683
685
|
class: "message-container"
|
|
684
686
|
}, {
|
|
685
|
-
default:
|
|
686
|
-
(
|
|
687
|
-
key:
|
|
688
|
-
class:
|
|
687
|
+
default: m(() => [
|
|
688
|
+
(c(!0), $(Y, null, f(s.messages, (a) => (c(), $("div", {
|
|
689
|
+
key: a.id,
|
|
690
|
+
class: G([
|
|
689
691
|
"custom-message",
|
|
690
|
-
`message-${
|
|
691
|
-
`message-${
|
|
692
|
-
{ "message-plain":
|
|
692
|
+
`message-${a.type}`,
|
|
693
|
+
`message-${a.placement}`,
|
|
694
|
+
{ "message-plain": a.plain }
|
|
693
695
|
])
|
|
694
696
|
}, [
|
|
695
|
-
|
|
696
|
-
|
|
697
|
+
a.showIcon ? (c(), $("div", it, [
|
|
698
|
+
a.customIcon ? (c(), $("img", {
|
|
697
699
|
key: 0,
|
|
698
|
-
src:
|
|
700
|
+
src: a.customIcon,
|
|
699
701
|
alt: "custom icon",
|
|
700
702
|
class: "message-icon-img"
|
|
701
|
-
}, null, 8,
|
|
703
|
+
}, null, 8, ct)) : a.type === "success" ? (c(), $("img", lt)) : a.type === "warning" ? (c(), $("img", ut)) : a.type === "error" ? (c(), $("img", mt)) : S("", !0)
|
|
702
704
|
])) : S("", !0),
|
|
703
|
-
|
|
704
|
-
typeof
|
|
705
|
+
k("div", pt, [
|
|
706
|
+
typeof a.message == "function" ? (c(), d(K(a.message), { key: 0 })) : a.dangerouslyUseHTMLString ? (c(), $("div", {
|
|
705
707
|
key: 1,
|
|
706
|
-
innerHTML:
|
|
707
|
-
}, null, 8,
|
|
708
|
-
|
|
708
|
+
innerHTML: a.message
|
|
709
|
+
}, null, 8, dt)) : (c(), $("span", ft, O(a.message), 1)),
|
|
710
|
+
a.repeatNum > 1 ? (c(), $("span", _t, O(a.repeatNum), 1)) : S("", !0)
|
|
709
711
|
]),
|
|
710
|
-
|
|
712
|
+
a.showClose ? (c(), $("button", {
|
|
711
713
|
key: 1,
|
|
712
714
|
class: "message-close",
|
|
713
|
-
onClick: (i) => s.closeMessage(
|
|
714
|
-
}, " × ", 8,
|
|
715
|
+
onClick: (i) => s.closeMessage(a.id)
|
|
716
|
+
}, " × ", 8, gt)) : S("", !0)
|
|
715
717
|
], 2))), 128))
|
|
716
718
|
]),
|
|
717
719
|
_: 1
|
|
718
720
|
})
|
|
719
721
|
]);
|
|
720
722
|
}
|
|
721
|
-
const
|
|
722
|
-
let
|
|
723
|
-
const
|
|
723
|
+
const x = /* @__PURE__ */ T(at, [["render", $t]]), I = L([]);
|
|
724
|
+
let Mt = 0;
|
|
725
|
+
const Is = {
|
|
724
726
|
// 默认配置
|
|
725
727
|
defaultOptions: {
|
|
726
728
|
title: "",
|
|
@@ -732,10 +734,10 @@ const Fs = {
|
|
|
732
734
|
},
|
|
733
735
|
// 显示通知
|
|
734
736
|
show(e = {}) {
|
|
735
|
-
const t =
|
|
736
|
-
id: ++
|
|
737
|
+
const t = w(b(b({}, this.defaultOptions), e), {
|
|
738
|
+
id: ++Mt
|
|
737
739
|
});
|
|
738
|
-
return
|
|
740
|
+
return I.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
739
741
|
this.close(t.id);
|
|
740
742
|
}, t.duration), {
|
|
741
743
|
close: () => this.close(t.id)
|
|
@@ -743,12 +745,12 @@ const Fs = {
|
|
|
743
745
|
},
|
|
744
746
|
// 关闭指定通知
|
|
745
747
|
close(e) {
|
|
746
|
-
const t =
|
|
747
|
-
t > -1 &&
|
|
748
|
+
const t = I.value.findIndex((o) => o.id === e);
|
|
749
|
+
t > -1 && I.value.splice(t, 1);
|
|
748
750
|
},
|
|
749
751
|
// 关闭所有通知
|
|
750
752
|
closeAll() {
|
|
751
|
-
|
|
753
|
+
I.value = [];
|
|
752
754
|
},
|
|
753
755
|
// 便捷方法
|
|
754
756
|
success(e = {}) {
|
|
@@ -760,61 +762,61 @@ const Fs = {
|
|
|
760
762
|
error(e = {}) {
|
|
761
763
|
return this.show(e);
|
|
762
764
|
}
|
|
763
|
-
},
|
|
764
|
-
const t =
|
|
765
|
-
t > -1 &&
|
|
766
|
-
},
|
|
765
|
+
}, bt = (e) => {
|
|
766
|
+
const t = I.value.findIndex((o) => o.id === e);
|
|
767
|
+
t > -1 && I.value.splice(t, 1);
|
|
768
|
+
}, ht = {
|
|
767
769
|
name: "MNotifiMessage",
|
|
768
770
|
setup() {
|
|
769
771
|
return {
|
|
770
|
-
notifications:
|
|
771
|
-
closeNotification:
|
|
772
|
+
notifications: I,
|
|
773
|
+
closeNotification: bt
|
|
772
774
|
};
|
|
773
775
|
}
|
|
774
|
-
},
|
|
776
|
+
}, yt = { class: "notification-content" }, vt = { class: "notification-title" }, Ct = { class: "notification-message" }, kt = {
|
|
775
777
|
key: 0,
|
|
776
778
|
class: "notification-action"
|
|
777
|
-
},
|
|
778
|
-
function
|
|
779
|
-
return
|
|
780
|
-
|
|
779
|
+
}, St = ["onClick"];
|
|
780
|
+
function wt(e, t, o, s, r, n) {
|
|
781
|
+
return c(), d(Q, { to: "body" }, [
|
|
782
|
+
E(X, {
|
|
781
783
|
name: "notification",
|
|
782
784
|
tag: "div",
|
|
783
785
|
class: "notification-container"
|
|
784
786
|
}, {
|
|
785
|
-
default:
|
|
786
|
-
(
|
|
787
|
-
key:
|
|
788
|
-
class:
|
|
787
|
+
default: m(() => [
|
|
788
|
+
(c(!0), $(Y, null, f(s.notifications, (a) => (c(), $("div", {
|
|
789
|
+
key: a.id,
|
|
790
|
+
class: G([
|
|
789
791
|
"custom-notification",
|
|
790
|
-
`notification-${
|
|
792
|
+
`notification-${a.position}`
|
|
791
793
|
])
|
|
792
794
|
}, [
|
|
793
|
-
t[0] || (t[0] =
|
|
794
|
-
|
|
795
|
+
t[0] || (t[0] = k("div", { class: "notification-icon" }, [
|
|
796
|
+
k("img", {
|
|
795
797
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
|
|
796
798
|
alt: "notification icon"
|
|
797
799
|
})
|
|
798
800
|
], -1)),
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
(
|
|
801
|
+
k("div", yt, [
|
|
802
|
+
k("div", vt, O(a.title), 1),
|
|
803
|
+
k("div", Ct, O(a.message), 1),
|
|
804
|
+
a.slotContent ? (c(), $("div", kt, [
|
|
805
|
+
(c(), d(K(a.slotContent)))
|
|
804
806
|
])) : S("", !0)
|
|
805
807
|
]),
|
|
806
|
-
|
|
808
|
+
a.showClose ? (c(), $("button", {
|
|
807
809
|
key: 0,
|
|
808
810
|
class: "notification-close",
|
|
809
|
-
onClick: (i) => s.closeNotification(
|
|
810
|
-
}, " × ", 8,
|
|
811
|
+
onClick: (i) => s.closeNotification(a.id)
|
|
812
|
+
}, " × ", 8, St)) : S("", !0)
|
|
811
813
|
], 2))), 128))
|
|
812
814
|
]),
|
|
813
815
|
_: 1
|
|
814
816
|
})
|
|
815
817
|
]);
|
|
816
818
|
}
|
|
817
|
-
const
|
|
819
|
+
const ee = /* @__PURE__ */ T(ht, [["render", wt]]), Tt = /* @__PURE__ */ Object.assign({
|
|
818
820
|
name: "MDatePicker"
|
|
819
821
|
}, {
|
|
820
822
|
__name: "DatePicker",
|
|
@@ -825,23 +827,23 @@ const ae = /* @__PURE__ */ B(Ot, [["render", Lt]]), zt = /* @__PURE__ */ Object.
|
|
|
825
827
|
}
|
|
826
828
|
},
|
|
827
829
|
setup(e) {
|
|
828
|
-
const { mergedAttrs: t, className: o } =
|
|
830
|
+
const { mergedAttrs: t, className: o } = P(
|
|
829
831
|
"mc-datepicker-popper",
|
|
830
832
|
"popperClass"
|
|
831
833
|
);
|
|
832
|
-
return (s,
|
|
833
|
-
const n =
|
|
834
|
-
return
|
|
835
|
-
|
|
834
|
+
return (s, r) => {
|
|
835
|
+
const n = Se;
|
|
836
|
+
return c(), d(n, g(v(t), { "popper-class": v(o) }), _({ _: 2 }, [
|
|
837
|
+
f(s.$slots, (a, i) => ({
|
|
836
838
|
name: i,
|
|
837
|
-
fn:
|
|
838
|
-
|
|
839
|
+
fn: m(() => [
|
|
840
|
+
u(s.$slots, i)
|
|
839
841
|
])
|
|
840
842
|
}))
|
|
841
843
|
]), 1040, ["popper-class"]);
|
|
842
844
|
};
|
|
843
845
|
}
|
|
844
|
-
}),
|
|
846
|
+
}), It = [
|
|
845
847
|
"404",
|
|
846
848
|
"billing",
|
|
847
849
|
"cart",
|
|
@@ -858,74 +860,74 @@ const ae = /* @__PURE__ */ B(Ot, [["render", Lt]]), zt = /* @__PURE__ */ Object.
|
|
|
858
860
|
"subscription",
|
|
859
861
|
"todo",
|
|
860
862
|
"wishlist"
|
|
861
|
-
],
|
|
863
|
+
], Et = {
|
|
862
864
|
name: "MEmpty"
|
|
863
|
-
},
|
|
865
|
+
}, Ot = /* @__PURE__ */ Object.assign(Et, {
|
|
864
866
|
props: {
|
|
865
867
|
image: {
|
|
866
868
|
type: String,
|
|
867
869
|
default: "orders",
|
|
868
|
-
validator: (e) => e.includes("/") || e.includes("http") ? !0 :
|
|
870
|
+
validator: (e) => e.includes("/") || e.includes("http") ? !0 : It.includes(e)
|
|
869
871
|
}
|
|
870
872
|
},
|
|
871
873
|
setup(e) {
|
|
872
|
-
const t = e, o =
|
|
874
|
+
const t = e, o = B(), s = h(() => {
|
|
873
875
|
const i = o, { image: n } = i;
|
|
874
|
-
return
|
|
875
|
-
}),
|
|
876
|
+
return j(i, ["image"]);
|
|
877
|
+
}), r = h(() => {
|
|
876
878
|
const { image: n } = t;
|
|
877
879
|
return n.includes("/") || n.includes("http") ? n : `/images/empty/${n}.png`;
|
|
878
880
|
});
|
|
879
|
-
return (n,
|
|
880
|
-
const i =
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
name:
|
|
884
|
-
fn:
|
|
885
|
-
|
|
881
|
+
return (n, a) => {
|
|
882
|
+
const i = we;
|
|
883
|
+
return c(), d(i, g(s.value, { image: r.value }), _({ _: 2 }, [
|
|
884
|
+
f(n.$slots, (p, M) => ({
|
|
885
|
+
name: M,
|
|
886
|
+
fn: m(() => [
|
|
887
|
+
u(n.$slots, M)
|
|
886
888
|
])
|
|
887
889
|
}))
|
|
888
890
|
]), 1040, ["image"]);
|
|
889
891
|
};
|
|
890
892
|
}
|
|
891
|
-
}),
|
|
893
|
+
}), Bt = /* @__PURE__ */ Object.assign({
|
|
892
894
|
name: "MTable"
|
|
893
895
|
}, {
|
|
894
896
|
__name: "Table",
|
|
895
897
|
setup(e) {
|
|
896
898
|
return (t, o) => {
|
|
897
|
-
const s =
|
|
898
|
-
return
|
|
899
|
-
|
|
899
|
+
const s = Te;
|
|
900
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
901
|
+
f(t.$slots, (r, n) => ({
|
|
900
902
|
name: n,
|
|
901
|
-
fn:
|
|
902
|
-
|
|
903
|
+
fn: m(() => [
|
|
904
|
+
u(t.$slots, n)
|
|
903
905
|
])
|
|
904
906
|
}))
|
|
905
907
|
]), 1040);
|
|
906
908
|
};
|
|
907
909
|
}
|
|
908
|
-
}),
|
|
910
|
+
}), Pt = /* @__PURE__ */ Object.assign({
|
|
909
911
|
name: "MTableColumn"
|
|
910
912
|
}, {
|
|
911
913
|
__name: "TableColumn",
|
|
912
914
|
setup(e) {
|
|
913
915
|
return (t, o) => {
|
|
914
|
-
const s =
|
|
915
|
-
return
|
|
916
|
-
|
|
916
|
+
const s = Ie;
|
|
917
|
+
return c(), d(s, g(t.$attrs, { class: "m-table-column" }), _({ _: 2 }, [
|
|
918
|
+
f(t.$slots, (r, n) => ({
|
|
917
919
|
name: n,
|
|
918
|
-
fn:
|
|
919
|
-
|
|
920
|
+
fn: m(() => [
|
|
921
|
+
u(t.$slots, n)
|
|
920
922
|
])
|
|
921
923
|
}))
|
|
922
924
|
]), 1040);
|
|
923
925
|
};
|
|
924
926
|
}
|
|
925
|
-
}),
|
|
927
|
+
}), Nt = { class: "m-banner__content" }, jt = {
|
|
926
928
|
key: 0,
|
|
927
929
|
class: "m-banner__icon"
|
|
928
|
-
},
|
|
930
|
+
}, At = { class: "m-banner__text" }, Lt = /* @__PURE__ */ Object.assign({
|
|
929
931
|
name: "MBanner"
|
|
930
932
|
}, {
|
|
931
933
|
__name: "Banner",
|
|
@@ -989,60 +991,60 @@ const ae = /* @__PURE__ */ B(Ot, [["render", Lt]]), zt = /* @__PURE__ */ Object.
|
|
|
989
991
|
},
|
|
990
992
|
emits: ["close", "update:visible"],
|
|
991
993
|
setup(e, { expose: t, emit: o }) {
|
|
992
|
-
const s =
|
|
993
|
-
|
|
994
|
-
|
|
994
|
+
const s = re(), r = e, n = o, a = L(r.visible);
|
|
995
|
+
Z(() => r.visible, (y) => {
|
|
996
|
+
a.value = y;
|
|
995
997
|
});
|
|
996
|
-
const i =
|
|
997
|
-
const
|
|
998
|
-
return
|
|
999
|
-
}),
|
|
998
|
+
const i = h(() => {
|
|
999
|
+
const y = {};
|
|
1000
|
+
return r.backgroundColor && (y.backgroundColor = r.backgroundColor), r.textColor && (y.color = r.textColor), r.borderColor && (y.borderColor = r.borderColor), y;
|
|
1001
|
+
}), p = {
|
|
1000
1002
|
info: "info",
|
|
1001
1003
|
success: "check-circle",
|
|
1002
1004
|
warning: "warning",
|
|
1003
1005
|
error: "close-circle"
|
|
1004
1006
|
};
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1007
|
+
h(() => r.icon || p[r.type]);
|
|
1008
|
+
const M = () => {
|
|
1009
|
+
a.value = !1, n("update:visible", !1), n("close");
|
|
1008
1010
|
};
|
|
1009
|
-
return
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1011
|
+
return Z(a, (y) => {
|
|
1012
|
+
y && r.duration > 0 && setTimeout(() => {
|
|
1013
|
+
M();
|
|
1014
|
+
}, r.duration);
|
|
1013
1015
|
}), t({
|
|
1014
|
-
close:
|
|
1015
|
-
}), (
|
|
1016
|
+
close: M
|
|
1017
|
+
}), (y, es) => e.visible ? (c(), $("div", {
|
|
1016
1018
|
key: 0,
|
|
1017
|
-
class:
|
|
1019
|
+
class: G(["m-banner", [
|
|
1018
1020
|
`m-banner--${e.type}`,
|
|
1019
1021
|
{
|
|
1020
1022
|
"m-banner--closable": e.closable,
|
|
1021
|
-
"m-banner--with-icon": e.icon ||
|
|
1023
|
+
"m-banner--with-icon": e.icon || v(s).icon
|
|
1022
1024
|
}
|
|
1023
1025
|
]]),
|
|
1024
|
-
style:
|
|
1026
|
+
style: ae(i.value)
|
|
1025
1027
|
}, [
|
|
1026
|
-
|
|
1027
|
-
e.icon ||
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
k("div", Nt, [
|
|
1029
|
+
e.icon || v(s).icon ? (c(), $("div", jt, [
|
|
1030
|
+
u(y.$slots, "icon", {}, () => [
|
|
1031
|
+
E(V, {
|
|
1030
1032
|
name: e.icon,
|
|
1031
1033
|
size: e.iconSize
|
|
1032
1034
|
}, null, 8, ["name", "size"])
|
|
1033
1035
|
], !0)
|
|
1034
1036
|
])) : S("", !0),
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1037
|
+
k("div", At, [
|
|
1038
|
+
u(y.$slots, "default", {}, () => [
|
|
1039
|
+
ie(O(e.content), 1)
|
|
1038
1040
|
], !0)
|
|
1039
1041
|
]),
|
|
1040
|
-
e.closable ? (
|
|
1042
|
+
e.closable ? (c(), $("div", {
|
|
1041
1043
|
key: 1,
|
|
1042
1044
|
class: "m-banner__close",
|
|
1043
|
-
onClick:
|
|
1045
|
+
onClick: M
|
|
1044
1046
|
}, [
|
|
1045
|
-
|
|
1047
|
+
E(V, {
|
|
1046
1048
|
name: "lucide-x",
|
|
1047
1049
|
size: e.closeIconSize
|
|
1048
1050
|
}, null, 8, ["size"])
|
|
@@ -1050,207 +1052,42 @@ const ae = /* @__PURE__ */ B(Ot, [["render", Lt]]), zt = /* @__PURE__ */ Object.
|
|
|
1050
1052
|
])
|
|
1051
1053
|
], 6)) : S("", !0);
|
|
1052
1054
|
}
|
|
1053
|
-
}),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
type: String,
|
|
1064
|
-
default: "",
|
|
1065
|
-
validator: (e) => ["", "card", "border-card"].includes(e)
|
|
1066
|
-
},
|
|
1067
|
-
// 标签位置
|
|
1068
|
-
tabPosition: {
|
|
1069
|
-
type: String,
|
|
1070
|
-
default: "top",
|
|
1071
|
-
validator: (e) => ["top", "right", "bottom", "left"].includes(e)
|
|
1072
|
-
},
|
|
1073
|
-
// 是否可关闭
|
|
1074
|
-
closable: {
|
|
1075
|
-
type: Boolean,
|
|
1076
|
-
default: !1
|
|
1077
|
-
},
|
|
1078
|
-
// 是否可添加
|
|
1079
|
-
addable: {
|
|
1080
|
-
type: Boolean,
|
|
1081
|
-
default: !1
|
|
1082
|
-
},
|
|
1083
|
-
// 是否可编辑(同时可添加和关闭)
|
|
1084
|
-
editable: {
|
|
1085
|
-
type: Boolean,
|
|
1086
|
-
default: !1
|
|
1087
|
-
},
|
|
1088
|
-
// 标签宽度是否自撑开
|
|
1089
|
-
stretch: {
|
|
1090
|
-
type: Boolean,
|
|
1091
|
-
default: !1
|
|
1092
|
-
},
|
|
1093
|
-
// 切换前的钩子函数
|
|
1094
|
-
beforeLeave: {
|
|
1095
|
-
type: Function,
|
|
1096
|
-
default: null
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
|
|
1100
|
-
setup(e, { expose: t, emit: o }) {
|
|
1101
|
-
const s = e, a = o;
|
|
1102
|
-
x();
|
|
1103
|
-
const n = P([]), r = P(s.modelValue);
|
|
1104
|
-
G(() => s.modelValue, (u) => {
|
|
1105
|
-
r.value = u;
|
|
1106
|
-
}), G(r, (u) => {
|
|
1107
|
-
a("update:modelValue", u), a("tab-change", u);
|
|
1108
|
-
}), pe("tabsContext", {
|
|
1109
|
-
registerTab: (u) => {
|
|
1110
|
-
const C = n.value.findIndex((b) => b.name === u.name);
|
|
1111
|
-
C >= 0 ? n.value[C] = u : n.value.push(u), !r.value && n.value.length > 0 && (r.value = n.value[0].name || 0);
|
|
1112
|
-
},
|
|
1113
|
-
unregisterTab: (u) => {
|
|
1114
|
-
const C = n.value.findIndex((b) => b.name === u);
|
|
1115
|
-
C >= 0 && n.value.splice(C, 1);
|
|
1116
|
-
}
|
|
1117
|
-
});
|
|
1118
|
-
const i = (u, C) => D(this, null, function* () {
|
|
1119
|
-
if (u.disabled) return;
|
|
1120
|
-
const b = u.name || C;
|
|
1121
|
-
if (r.value !== b) {
|
|
1122
|
-
if (s.beforeLeave)
|
|
1123
|
-
try {
|
|
1124
|
-
if ((yield s.beforeLeave(r.value, b)) === !1) return;
|
|
1125
|
-
} catch (O) {
|
|
1126
|
-
return;
|
|
1127
|
-
}
|
|
1128
|
-
r.value = b, a("tab-click", { name: b, index: C, disabled: u.disabled });
|
|
1129
|
-
}
|
|
1130
|
-
}), g = (u, C) => {
|
|
1131
|
-
const b = u.name || C;
|
|
1132
|
-
a("tab-remove", b), a("edit", b, "remove");
|
|
1133
|
-
}, $ = () => {
|
|
1134
|
-
a("tab-add"), a("edit", "", "add");
|
|
1135
|
-
};
|
|
1136
|
-
return t({
|
|
1137
|
-
activeName: v(() => r.value)
|
|
1138
|
-
}), (u, C) => (l(), d("div", {
|
|
1139
|
-
class: j(["m-tabs", [`m-tabs--${e.type}`, `m-tabs--${e.tabPosition}`]])
|
|
1140
|
-
}, [
|
|
1141
|
-
M("div", Zt, [
|
|
1142
|
-
M("div", Jt, [
|
|
1143
|
-
(l(!0), d(W, null, _(n.value, (b, O) => {
|
|
1144
|
-
var J;
|
|
1145
|
-
return l(), d("div", {
|
|
1146
|
-
key: b.name || O,
|
|
1147
|
-
class: j([
|
|
1148
|
-
"m-tabs__item",
|
|
1149
|
-
{
|
|
1150
|
-
"m-tabs__item--active": r.value === (b.name || O),
|
|
1151
|
-
"m-tabs__item--disabled": b.disabled,
|
|
1152
|
-
"m-tabs__item--closable": b.closable
|
|
1153
|
-
}
|
|
1154
|
-
]),
|
|
1155
|
-
onClick: (re) => i(b, O)
|
|
1156
|
-
}, [
|
|
1157
|
-
M("span", Xt, [
|
|
1158
|
-
(J = b.$slots) != null && J.label ? m(u.$slots, `tab-${b.name || O}`, { key: 0 }, void 0, !0) : (l(), d("span", Yt, A(b.label), 1))
|
|
1159
|
-
]),
|
|
1160
|
-
b.closable ? (l(), d("span", {
|
|
1161
|
-
key: 0,
|
|
1162
|
-
class: "m-tabs__item-close",
|
|
1163
|
-
onClick: fe((re) => g(b, O), ["stop"])
|
|
1164
|
-
}, [
|
|
1165
|
-
N(L, {
|
|
1166
|
-
name: "lucide-x",
|
|
1167
|
-
size: 12
|
|
1168
|
-
})
|
|
1169
|
-
], 8, Kt)) : S("", !0)
|
|
1170
|
-
], 10, Qt);
|
|
1171
|
-
}), 128)),
|
|
1172
|
-
e.addable || e.editable ? (l(), d("div", {
|
|
1173
|
-
key: 0,
|
|
1174
|
-
class: "m-tabs__item m-tabs__item--add",
|
|
1175
|
-
onClick: $
|
|
1176
|
-
}, [
|
|
1177
|
-
N(L, {
|
|
1178
|
-
name: "plus",
|
|
1179
|
-
size: 12
|
|
1180
|
-
})
|
|
1181
|
-
])) : S("", !0)
|
|
1182
|
-
])
|
|
1183
|
-
]),
|
|
1184
|
-
M("div", es, [
|
|
1185
|
-
m(u.$slots, "default", {}, void 0, !0)
|
|
1055
|
+
}), zt = /* @__PURE__ */ T(Lt, [["__scopeId", "data-v-00c80323"]]), Rt = {
|
|
1056
|
+
name: "MTabs"
|
|
1057
|
+
};
|
|
1058
|
+
function Ft(e, t, o, s, r, n) {
|
|
1059
|
+
const a = Ee;
|
|
1060
|
+
return c(), d(a, g(e.$attrs, { class: "m-tabs" }), _({ _: 2 }, [
|
|
1061
|
+
f(e.$slots, (i, p) => ({
|
|
1062
|
+
name: p,
|
|
1063
|
+
fn: m(() => [
|
|
1064
|
+
u(e.$slots, p)
|
|
1186
1065
|
])
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}
|
|
1066
|
+
}))
|
|
1067
|
+
]), 1040);
|
|
1068
|
+
}
|
|
1069
|
+
const Vt = /* @__PURE__ */ T(Rt, [["render", Ft]]), Gt = {
|
|
1190
1070
|
name: "MTabPane"
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
name: {
|
|
1206
|
-
type: [String, Number],
|
|
1207
|
-
default: ""
|
|
1208
|
-
},
|
|
1209
|
-
// 是否可关闭
|
|
1210
|
-
closable: {
|
|
1211
|
-
type: Boolean,
|
|
1212
|
-
default: !1
|
|
1213
|
-
},
|
|
1214
|
-
// 是否延迟渲染
|
|
1215
|
-
lazy: {
|
|
1216
|
-
type: Boolean,
|
|
1217
|
-
default: !1
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
setup(e) {
|
|
1221
|
-
const t = e, o = x(), s = _e("tabsContext"), a = v(() => s ? s.activeName === (t.name || s.tabIndex) : !1);
|
|
1222
|
-
return ge(() => {
|
|
1223
|
-
if (s) {
|
|
1224
|
-
const n = {
|
|
1225
|
-
name: t.name,
|
|
1226
|
-
label: t.label,
|
|
1227
|
-
disabled: t.disabled,
|
|
1228
|
-
closable: t.closable,
|
|
1229
|
-
$slots: o
|
|
1230
|
-
};
|
|
1231
|
-
s.registerTab(n);
|
|
1232
|
-
}
|
|
1233
|
-
}), be(() => {
|
|
1234
|
-
s && s.unregisterTab(t.name);
|
|
1235
|
-
}), (n, r) => he((l(), d("div", {
|
|
1236
|
-
class: j(["m-tab-pane", {
|
|
1237
|
-
"m-tab-pane--active": a.value,
|
|
1238
|
-
"m-tab-pane--disabled": e.disabled
|
|
1239
|
-
}])
|
|
1240
|
-
}, [
|
|
1241
|
-
m(n.$slots, "default", {}, void 0, !0)
|
|
1242
|
-
], 2)), [
|
|
1243
|
-
[ye, a.value]
|
|
1244
|
-
]);
|
|
1245
|
-
}
|
|
1246
|
-
}), ns = /* @__PURE__ */ B(os, [["__scopeId", "data-v-722bb248"]]);
|
|
1247
|
-
function U(e) {
|
|
1071
|
+
};
|
|
1072
|
+
function Dt(e, t, o, s, r, n) {
|
|
1073
|
+
const a = Oe;
|
|
1074
|
+
return c(), d(a, g(e.$attrs, { class: "m-tab-pane" }), _({ _: 2 }, [
|
|
1075
|
+
f(e.$slots, (i, p) => ({
|
|
1076
|
+
name: p,
|
|
1077
|
+
fn: m(() => [
|
|
1078
|
+
u(e.$slots, p)
|
|
1079
|
+
])
|
|
1080
|
+
}))
|
|
1081
|
+
]), 1040);
|
|
1082
|
+
}
|
|
1083
|
+
const Ut = /* @__PURE__ */ T(Gt, [["render", Dt]]);
|
|
1084
|
+
function A(e) {
|
|
1248
1085
|
e && e.classList && e.classList.add("mc-ui-override");
|
|
1249
1086
|
}
|
|
1250
|
-
function
|
|
1251
|
-
e && e.$el &&
|
|
1087
|
+
function qt(e) {
|
|
1088
|
+
e && e.$el && A(e.$el);
|
|
1252
1089
|
}
|
|
1253
|
-
function
|
|
1090
|
+
function Ht() {
|
|
1254
1091
|
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
|
|
1255
1092
|
t.forEach((o) => {
|
|
1256
1093
|
o.addedNodes.forEach((s) => {
|
|
@@ -1260,8 +1097,8 @@ function rs() {
|
|
|
1260
1097
|
n && !n.classList.contains("mc-ui-override") && n.classList.add("mc-ui-override");
|
|
1261
1098
|
}
|
|
1262
1099
|
s.querySelectorAll('[class*="el-"]').forEach((n) => {
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1100
|
+
const a = n.closest(".mc-ui-override") || n.parentElement;
|
|
1101
|
+
a && !a.classList.contains("mc-ui-override") && a.classList.add("mc-ui-override");
|
|
1265
1102
|
});
|
|
1266
1103
|
}
|
|
1267
1104
|
});
|
|
@@ -1271,55 +1108,55 @@ function rs() {
|
|
|
1271
1108
|
subtree: !0
|
|
1272
1109
|
}));
|
|
1273
1110
|
}
|
|
1274
|
-
function
|
|
1111
|
+
function Wt(e = '[class*="el-"]') {
|
|
1275
1112
|
typeof document != "undefined" && document.querySelectorAll(e).forEach((o) => {
|
|
1276
1113
|
const s = o.closest(".mc-ui-override") || o.parentElement;
|
|
1277
1114
|
s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
|
|
1278
1115
|
});
|
|
1279
1116
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return
|
|
1117
|
+
function Zt(e) {
|
|
1118
|
+
return w(b({}, e), {
|
|
1282
1119
|
mounted() {
|
|
1283
|
-
|
|
1120
|
+
A(this.$el), e.mounted && e.mounted.call(this);
|
|
1284
1121
|
},
|
|
1285
1122
|
updated() {
|
|
1286
|
-
|
|
1123
|
+
A(this.$el), e.updated && e.updated.call(this);
|
|
1287
1124
|
}
|
|
1288
1125
|
});
|
|
1289
1126
|
}
|
|
1290
|
-
const
|
|
1127
|
+
const Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1291
1128
|
__proto__: null,
|
|
1292
|
-
addComponentOverride:
|
|
1293
|
-
addOverrideClass:
|
|
1294
|
-
applyGlobalOverride:
|
|
1295
|
-
createOverrideComponent:
|
|
1296
|
-
forceRefreshStyles:
|
|
1297
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1298
|
-
{ id: "global-message-container", component:
|
|
1299
|
-
{ id: "global-notification-container", component:
|
|
1129
|
+
addComponentOverride: qt,
|
|
1130
|
+
addOverrideClass: A,
|
|
1131
|
+
applyGlobalOverride: Ht,
|
|
1132
|
+
createOverrideComponent: Zt,
|
|
1133
|
+
forceRefreshStyles: Wt
|
|
1134
|
+
}, Symbol.toStringTag, { value: "Module" })), D = [V, Ne, je, Ae, Le, Fe, Ve, Ge, De, Ue, qe, He, We, Ze, Je, Ke, xe, st, x, ee, Tt, Ot, Bt, Pt, zt, Vt, Ut], Qt = [
|
|
1135
|
+
{ id: "global-message-container", component: x },
|
|
1136
|
+
{ id: "global-notification-container", component: ee }
|
|
1300
1137
|
];
|
|
1301
|
-
function
|
|
1302
|
-
return
|
|
1138
|
+
function Xt(o) {
|
|
1139
|
+
return F(this, arguments, function* ({ id: e, component: t }) {
|
|
1303
1140
|
try {
|
|
1304
1141
|
if (document.getElementById(e)) return;
|
|
1305
|
-
const { createApp: s, h:
|
|
1142
|
+
const { createApp: s, h: r } = yield import("vue"), n = document.createElement("div");
|
|
1306
1143
|
n.id = e, document.body.appendChild(n), s({
|
|
1307
|
-
render: () =>
|
|
1144
|
+
render: () => r(t)
|
|
1308
1145
|
}).mount(`#${e}`);
|
|
1309
1146
|
} catch (s) {
|
|
1310
1147
|
console.warn(`Failed to create global component ${e}:`, s);
|
|
1311
1148
|
}
|
|
1312
1149
|
});
|
|
1313
1150
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1316
|
-
const e =
|
|
1151
|
+
function Yt() {
|
|
1152
|
+
return F(this, null, function* () {
|
|
1153
|
+
const e = Qt.map(Xt);
|
|
1317
1154
|
yield Promise.all(e);
|
|
1318
1155
|
});
|
|
1319
1156
|
}
|
|
1320
|
-
const
|
|
1321
|
-
function
|
|
1322
|
-
const t =
|
|
1157
|
+
const l = {};
|
|
1158
|
+
function Kt(e) {
|
|
1159
|
+
const t = D.map((o) => {
|
|
1323
1160
|
if (o && o.name && typeof o.name == "string") {
|
|
1324
1161
|
let s = o.name.toLowerCase();
|
|
1325
1162
|
return {
|
|
@@ -1333,19 +1170,19 @@ function ps(e) {
|
|
|
1333
1170
|
}
|
|
1334
1171
|
return null;
|
|
1335
1172
|
}).filter(Boolean);
|
|
1336
|
-
Object.entries(
|
|
1173
|
+
Object.entries(J).forEach(([o, s]) => {
|
|
1337
1174
|
if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
|
|
1338
|
-
const
|
|
1339
|
-
t.includes(
|
|
1175
|
+
const r = "m-" + s.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1176
|
+
t.includes(r) || e._context.components[r] || e.component(r, s);
|
|
1340
1177
|
const n = "M" + s.name.slice(2);
|
|
1341
|
-
|
|
1178
|
+
l[n] = s;
|
|
1342
1179
|
}
|
|
1343
1180
|
});
|
|
1344
1181
|
}
|
|
1345
|
-
const
|
|
1346
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1182
|
+
const xt = (e) => {
|
|
1183
|
+
typeof window != "undefined" && Promise.resolve().then(() => Jt).then(({ applyGlobalOverride: t }) => {
|
|
1347
1184
|
t();
|
|
1348
|
-
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."),
|
|
1185
|
+
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), D.forEach((t) => {
|
|
1349
1186
|
if (t && t.name && typeof t.name == "string") {
|
|
1350
1187
|
let o = t.name.toLowerCase();
|
|
1351
1188
|
o = {
|
|
@@ -1357,12 +1194,12 @@ const fs = (e) => {
|
|
|
1357
1194
|
mtabpane: "m-tab-pane"
|
|
1358
1195
|
}[o] || o.replace(/^m/, "m-"), e.component(o, t);
|
|
1359
1196
|
}
|
|
1360
|
-
}),
|
|
1197
|
+
}), Kt(e), typeof window != "undefined" && Yt();
|
|
1361
1198
|
};
|
|
1362
|
-
function
|
|
1363
|
-
const t = Object.keys(e._context.components || {}), o =
|
|
1199
|
+
function Es(e) {
|
|
1200
|
+
const t = Object.keys(e._context.components || {}), o = D.map((s) => {
|
|
1364
1201
|
if (s && s.name && typeof s.name == "string") {
|
|
1365
|
-
let
|
|
1202
|
+
let r = s.name.toLowerCase();
|
|
1366
1203
|
return {
|
|
1367
1204
|
mradiogroup: "m-radio-group",
|
|
1368
1205
|
mradiobutton: "m-radio-button",
|
|
@@ -1370,7 +1207,7 @@ function Ds(e) {
|
|
|
1370
1207
|
moptiongroup: "m-option-group",
|
|
1371
1208
|
mtabs: "m-tabs",
|
|
1372
1209
|
mtabpane: "m-tab-pane"
|
|
1373
|
-
}[
|
|
1210
|
+
}[r] || r.replace(/^m/, "m-");
|
|
1374
1211
|
}
|
|
1375
1212
|
return null;
|
|
1376
1213
|
}).filter(Boolean);
|
|
@@ -1382,75 +1219,75 @@ function Ds(e) {
|
|
|
1382
1219
|
)
|
|
1383
1220
|
};
|
|
1384
1221
|
}
|
|
1385
|
-
const
|
|
1222
|
+
const Os = { install: xt }, Bs = J.ElMessageBox, Ps = b({}, l), Ns = l.MButtonGroup, js = l.MBreadcrumb, As = l.MBreadcrumbItem, Ls = l.MCarousel, zs = l.MCarouselItem, Rs = l.MCascader, Fs = l.MCascaderPanel, Vs = l.MCheckTag, Gs = l.MCalendar, Ds = l.MTimePicker, Us = l.MDateTimePicker, qs = l.MColorPicker, Hs = l.MTransfer, Ws = l.MTree, Zs = l.MTreeSelect, Js = l.MUpload, Qs = l.MImage, Xs = l.MImageViewer, Ys = l.MBacktop, Ks = l.MInfiniteScroll, xs = l.MAffix, eo = l.MScrollbar, to = l.MResult, so = l.MSkeleton, oo = l.MLoading, no = l.MSpinner, ro = l.MProgress, ao = l.MBadge, io = l.MAvatar, co = l.MImagePreview, lo = l.MTeleport, uo = l.MConfigProvider;
|
|
1386
1223
|
export {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1224
|
+
xs as MAffix,
|
|
1225
|
+
Ke as MAlert,
|
|
1226
|
+
io as MAvatar,
|
|
1227
|
+
Ys as MBacktop,
|
|
1228
|
+
ao as MBadge,
|
|
1229
|
+
zt as MBanner,
|
|
1230
|
+
js as MBreadcrumb,
|
|
1231
|
+
As as MBreadcrumbItem,
|
|
1232
|
+
Ne as MButton,
|
|
1233
|
+
Ns as MButtonGroup,
|
|
1234
|
+
Gs as MCalendar,
|
|
1235
|
+
Ls as MCarousel,
|
|
1236
|
+
zs as MCarouselItem,
|
|
1237
|
+
Rs as MCascader,
|
|
1238
|
+
Fs as MCascaderPanel,
|
|
1239
|
+
Vs as MCheckTag,
|
|
1240
|
+
qs as MColorPicker,
|
|
1241
|
+
uo as MConfigProvider,
|
|
1242
|
+
Tt as MDatePicker,
|
|
1243
|
+
Us as MDateTimePicker,
|
|
1244
|
+
xe as MDialog,
|
|
1245
|
+
Ot as MEmpty,
|
|
1246
|
+
Ae as MForm,
|
|
1247
|
+
Le as MFormItem,
|
|
1248
|
+
V as MIcon,
|
|
1249
|
+
Qs as MImage,
|
|
1250
|
+
co as MImagePreview,
|
|
1251
|
+
Xs as MImageViewer,
|
|
1252
|
+
Ks as MInfiniteScroll,
|
|
1253
|
+
je as MInput,
|
|
1254
|
+
oo as MLoading,
|
|
1255
|
+
x as MMessage,
|
|
1256
|
+
Bs as MMessageBox,
|
|
1257
|
+
ee as MNotifiMessage,
|
|
1258
|
+
st as MNotification,
|
|
1259
|
+
Ue as MPagination,
|
|
1260
|
+
ro as MProgress,
|
|
1261
|
+
qe as MRadio,
|
|
1262
|
+
We as MRadioButton,
|
|
1263
|
+
He as MRadioGroup,
|
|
1264
|
+
to as MResult,
|
|
1265
|
+
eo as MScrollbar,
|
|
1266
|
+
Ve as MSelect,
|
|
1267
|
+
so as MSkeleton,
|
|
1268
|
+
no as MSpinner,
|
|
1269
|
+
Ze as MSwitch,
|
|
1270
|
+
Ut as MTabPane,
|
|
1271
|
+
Bt as MTable,
|
|
1272
|
+
Pt as MTableColumn,
|
|
1273
|
+
Vt as MTabs,
|
|
1274
|
+
Je as MTag,
|
|
1275
|
+
lo as MTeleport,
|
|
1276
|
+
Ds as MTimePicker,
|
|
1277
|
+
Fe as MTooltip,
|
|
1278
|
+
Hs as MTransfer,
|
|
1279
|
+
Ws as MTree,
|
|
1280
|
+
Zs as MTreeSelect,
|
|
1281
|
+
Js as MUpload,
|
|
1282
|
+
nt as Message,
|
|
1283
|
+
Is as NotifiMessage,
|
|
1284
|
+
qt as addComponentOverride,
|
|
1285
|
+
A as addOverrideClass,
|
|
1286
|
+
Ht as applyGlobalOverride,
|
|
1287
|
+
Es as checkComponentRegistration,
|
|
1288
|
+
Zt as createOverrideComponent,
|
|
1289
|
+
Os as default,
|
|
1290
|
+
Wt as forceRefreshStyles,
|
|
1291
|
+
Ps as mComponents
|
|
1455
1292
|
};
|
|
1456
1293
|
//# sourceMappingURL=index.mjs.map
|