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