@mc-markets/ui 1.0.75 → 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/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/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.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +686 -663
- 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 +19 -106
- package/packages/components/Tabs/TabPane.vue +14 -93
- package/packages/components/Tabs/Tabs.vue +14 -409
- 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
1
|
var te = Object.defineProperty, se = Object.defineProperties;
|
|
2
2
|
var oe = Object.getOwnPropertyDescriptors;
|
|
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
|
|
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
|
+
for (var o in t || (t = {}))
|
|
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
|
+
return e;
|
|
12
|
+
}, w = (e, t) => se(e, oe(t));
|
|
13
|
+
var j = (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
|
+
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 = (
|
|
36
|
-
i((o = o.apply(
|
|
35
|
+
}, i = (p) => p.done ? s(p.value) : Promise.resolve(p.value).then(n, a);
|
|
36
|
+
i((o = o.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import * as
|
|
39
|
-
import { computed as h, createElementBlock as $, openBlock 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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
import "element-plus/es/components/tabs/style/index";
|
|
64
|
+
import "element-plus/es/components/tab-pane/style/index";
|
|
65
|
+
const T = (e, t) => {
|
|
66
|
+
const o = e.__vccOpts || e;
|
|
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",
|
|
@@ -104,107 +106,132 @@ const O = (t, e) => {
|
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
emits: ["click"],
|
|
107
|
-
setup(
|
|
108
|
-
const o =
|
|
109
|
+
setup(e, { emit: 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
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
|
-
setup(
|
|
129
|
-
return (
|
|
130
|
-
const s =
|
|
131
|
-
return
|
|
132
|
-
|
|
130
|
+
setup(e) {
|
|
131
|
+
return (t, o) => {
|
|
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
|
-
setup(
|
|
146
|
-
return (
|
|
147
|
-
const s =
|
|
148
|
-
return
|
|
149
|
-
class: ["m-input", { solid:
|
|
150
|
-
}),
|
|
151
|
-
|
|
147
|
+
setup(e) {
|
|
148
|
+
return (t, o) => {
|
|
149
|
+
const s = le;
|
|
150
|
+
return c(), d(s, g(t.$attrs, {
|
|
151
|
+
class: ["m-input", { solid: t.$attrs.styleType === "solid" }]
|
|
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
|
-
setup(t) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
setup(e, { expose: t }) {
|
|
167
|
+
const o = L();
|
|
168
|
+
return B(), t({
|
|
169
|
+
validate: (s) => {
|
|
170
|
+
var r;
|
|
171
|
+
return (r = o.value) == null ? void 0 : r.validate(s);
|
|
172
|
+
},
|
|
173
|
+
validateField: (s, r) => {
|
|
174
|
+
var n;
|
|
175
|
+
return (n = o.value) == null ? void 0 : n.validateField(s, r);
|
|
176
|
+
},
|
|
177
|
+
resetFields: () => {
|
|
178
|
+
var s;
|
|
179
|
+
return (s = o.value) == null ? void 0 : s.resetFields();
|
|
180
|
+
},
|
|
181
|
+
scrollToField: (s) => {
|
|
182
|
+
var r;
|
|
183
|
+
return (r = o.value) == null ? void 0 : r.scrollToField(s);
|
|
184
|
+
},
|
|
185
|
+
clearValidate: (s) => {
|
|
186
|
+
var r;
|
|
187
|
+
return (r = o.value) == null ? void 0 : r.clearValidate(s);
|
|
188
|
+
}
|
|
189
|
+
}), (s, r) => {
|
|
190
|
+
const n = ue;
|
|
191
|
+
return c(), d(n, g({
|
|
192
|
+
ref_key: "formRef",
|
|
193
|
+
ref: o
|
|
194
|
+
}, s.$attrs, { class: "m-form" }), _({ _: 2 }, [
|
|
195
|
+
f(s.$slots, (a, i) => ({
|
|
196
|
+
name: i,
|
|
197
|
+
fn: m(() => [
|
|
198
|
+
u(s.$slots, i)
|
|
172
199
|
])
|
|
173
200
|
}))
|
|
174
201
|
]), 1040);
|
|
175
202
|
};
|
|
176
203
|
}
|
|
177
|
-
}),
|
|
204
|
+
}), Le = /* @__PURE__ */ Object.assign({
|
|
178
205
|
name: "MFormItem"
|
|
179
206
|
}, {
|
|
180
207
|
__name: "FormItem",
|
|
181
|
-
setup(
|
|
182
|
-
return (
|
|
183
|
-
const s =
|
|
184
|
-
return
|
|
185
|
-
|
|
208
|
+
setup(e) {
|
|
209
|
+
return (t, o) => {
|
|
210
|
+
const s = me;
|
|
211
|
+
return c(), d(s, g(t.$attrs, { class: "m-form-item" }), _({ _: 2 }, [
|
|
212
|
+
f(t.$slots, (r, n) => ({
|
|
186
213
|
name: n,
|
|
187
|
-
fn:
|
|
188
|
-
|
|
214
|
+
fn: m(() => [
|
|
215
|
+
u(t.$slots, n)
|
|
189
216
|
])
|
|
190
217
|
}))
|
|
191
218
|
]), 1040);
|
|
192
219
|
};
|
|
193
220
|
}
|
|
194
|
-
}),
|
|
195
|
-
const o =
|
|
196
|
-
return
|
|
221
|
+
}), ze = (...e) => e.filter(Boolean).join(" "), Re = (e, ...t) => {
|
|
222
|
+
const o = b({}, e);
|
|
223
|
+
return t.forEach((s) => {
|
|
197
224
|
delete o[s];
|
|
198
225
|
}), o;
|
|
199
226
|
};
|
|
200
|
-
function P(
|
|
201
|
-
const o =
|
|
227
|
+
function P(e, t = "popperClass") {
|
|
228
|
+
const o = B(), s = h(() => Re(o, t)), r = h(() => ze(e, o[t]));
|
|
202
229
|
return {
|
|
203
230
|
mergedAttrs: s,
|
|
204
|
-
className:
|
|
231
|
+
className: r
|
|
205
232
|
};
|
|
206
233
|
}
|
|
207
|
-
const
|
|
234
|
+
const Fe = /* @__PURE__ */ Object.assign({
|
|
208
235
|
name: "MTooltip"
|
|
209
236
|
}, {
|
|
210
237
|
__name: "Tooltip",
|
|
@@ -214,92 +241,92 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
214
241
|
default: ""
|
|
215
242
|
}
|
|
216
243
|
},
|
|
217
|
-
setup(
|
|
218
|
-
const { mergedAttrs:
|
|
219
|
-
return (s,
|
|
220
|
-
const n =
|
|
221
|
-
return
|
|
222
|
-
|
|
244
|
+
setup(e) {
|
|
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) => ({
|
|
223
250
|
name: i,
|
|
224
|
-
fn:
|
|
225
|
-
|
|
251
|
+
fn: m(() => [
|
|
252
|
+
u(s.$slots, i)
|
|
226
253
|
])
|
|
227
254
|
}))
|
|
228
255
|
]), 1040, ["popper-class"]);
|
|
229
256
|
};
|
|
230
257
|
}
|
|
231
|
-
}),
|
|
258
|
+
}), Ve = /* @__PURE__ */ Object.assign({
|
|
232
259
|
name: "MSelect"
|
|
233
260
|
}, {
|
|
234
261
|
__name: "Select",
|
|
235
|
-
setup(
|
|
236
|
-
return (
|
|
237
|
-
const s =
|
|
238
|
-
return
|
|
239
|
-
class: ["m-
|
|
262
|
+
setup(e) {
|
|
263
|
+
return (t, o) => {
|
|
264
|
+
const s = de;
|
|
265
|
+
return c(), d(s, g({
|
|
266
|
+
class: ["m-select", { solid: t.$attrs.styleType === "solid" }],
|
|
240
267
|
"show-arrow": !1
|
|
241
|
-
},
|
|
242
|
-
|
|
268
|
+
}, t.$attrs), _({ _: 2 }, [
|
|
269
|
+
f(t.$slots, (r, n) => ({
|
|
243
270
|
name: n,
|
|
244
|
-
fn:
|
|
245
|
-
|
|
271
|
+
fn: m(() => [
|
|
272
|
+
u(t.$slots, n)
|
|
246
273
|
])
|
|
247
274
|
}))
|
|
248
275
|
]), 1040, ["class"]);
|
|
249
276
|
};
|
|
250
277
|
}
|
|
251
|
-
}),
|
|
278
|
+
}), Ge = /* @__PURE__ */ Object.assign({
|
|
252
279
|
name: "MOption"
|
|
253
280
|
}, {
|
|
254
281
|
__name: "Option",
|
|
255
|
-
setup(
|
|
256
|
-
return (
|
|
257
|
-
const s =
|
|
258
|
-
return
|
|
259
|
-
|
|
282
|
+
setup(e) {
|
|
283
|
+
return (t, o) => {
|
|
284
|
+
const s = fe;
|
|
285
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
286
|
+
f(t.$slots, (r, n) => ({
|
|
260
287
|
name: n,
|
|
261
|
-
fn:
|
|
262
|
-
|
|
288
|
+
fn: m(() => [
|
|
289
|
+
u(t.$slots, n)
|
|
263
290
|
])
|
|
264
291
|
}))
|
|
265
292
|
]), 1040);
|
|
266
293
|
};
|
|
267
294
|
}
|
|
268
|
-
}),
|
|
295
|
+
}), De = /* @__PURE__ */ Object.assign({
|
|
269
296
|
name: "MOptionGroup"
|
|
270
297
|
}, {
|
|
271
298
|
__name: "OptionGroup",
|
|
272
|
-
setup(
|
|
273
|
-
return (
|
|
274
|
-
const s =
|
|
275
|
-
return
|
|
276
|
-
|
|
299
|
+
setup(e) {
|
|
300
|
+
return (t, o) => {
|
|
301
|
+
const s = _e;
|
|
302
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
303
|
+
f(t.$slots, (r, n) => ({
|
|
277
304
|
name: n,
|
|
278
|
-
fn:
|
|
279
|
-
|
|
305
|
+
fn: m(() => [
|
|
306
|
+
u(t.$slots, n)
|
|
280
307
|
])
|
|
281
308
|
}))
|
|
282
309
|
]), 1040);
|
|
283
310
|
};
|
|
284
311
|
}
|
|
285
|
-
}),
|
|
312
|
+
}), Ue = /* @__PURE__ */ Object.assign({
|
|
286
313
|
name: "MPagination"
|
|
287
314
|
}, {
|
|
288
315
|
__name: "Pagination",
|
|
289
|
-
setup(
|
|
290
|
-
return (
|
|
291
|
-
const s =
|
|
292
|
-
return
|
|
293
|
-
|
|
316
|
+
setup(e) {
|
|
317
|
+
return (t, o) => {
|
|
318
|
+
const s = ge;
|
|
319
|
+
return c(), d(s, g(t.$attrs, { class: "m-pagination" }), _({ _: 2 }, [
|
|
320
|
+
f(t.$slots, (r, n) => ({
|
|
294
321
|
name: n,
|
|
295
|
-
fn:
|
|
296
|
-
|
|
322
|
+
fn: m(() => [
|
|
323
|
+
u(t.$slots, n)
|
|
297
324
|
])
|
|
298
325
|
}))
|
|
299
326
|
]), 1040);
|
|
300
327
|
};
|
|
301
328
|
}
|
|
302
|
-
}),
|
|
329
|
+
}), qe = /* @__PURE__ */ Object.assign({
|
|
303
330
|
name: "MRadio"
|
|
304
331
|
}, {
|
|
305
332
|
__name: "Radio",
|
|
@@ -309,21 +336,21 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
309
336
|
default: ""
|
|
310
337
|
}
|
|
311
338
|
},
|
|
312
|
-
setup(
|
|
313
|
-
const { mergedAttrs:
|
|
339
|
+
setup(e) {
|
|
340
|
+
const { mergedAttrs: t } = P("mc-radio-popper");
|
|
314
341
|
return (o, s) => {
|
|
315
|
-
const
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
name:
|
|
319
|
-
fn:
|
|
320
|
-
|
|
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)
|
|
321
348
|
])
|
|
322
349
|
}))
|
|
323
350
|
]), 1040);
|
|
324
351
|
};
|
|
325
352
|
}
|
|
326
|
-
}),
|
|
353
|
+
}), He = /* @__PURE__ */ Object.assign({
|
|
327
354
|
name: "MRadioGroup"
|
|
328
355
|
}, {
|
|
329
356
|
__name: "RadioGroup",
|
|
@@ -333,30 +360,30 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
333
360
|
default: ""
|
|
334
361
|
}
|
|
335
362
|
},
|
|
336
|
-
setup(
|
|
337
|
-
const
|
|
338
|
-
const
|
|
339
|
-
return
|
|
363
|
+
setup(e) {
|
|
364
|
+
const t = B(), o = h(() => {
|
|
365
|
+
const r = "mc-radio-group-popper";
|
|
366
|
+
return t.popperClass ? `${r} ${t.popperClass}`.trim() : r;
|
|
340
367
|
}), s = h(() => {
|
|
341
|
-
const
|
|
342
|
-
return
|
|
368
|
+
const a = t, { popperClass: r } = a;
|
|
369
|
+
return j(a, ["popperClass"]);
|
|
343
370
|
});
|
|
344
|
-
return (
|
|
345
|
-
const
|
|
346
|
-
return
|
|
371
|
+
return (r, n) => {
|
|
372
|
+
const a = Me;
|
|
373
|
+
return c(), d(a, g(s.value, {
|
|
347
374
|
"popper-class": o.value,
|
|
348
375
|
class: "m-radio-group"
|
|
349
|
-
}),
|
|
350
|
-
|
|
351
|
-
name:
|
|
352
|
-
fn:
|
|
353
|
-
|
|
376
|
+
}), _({ _: 2 }, [
|
|
377
|
+
f(r.$slots, (i, p) => ({
|
|
378
|
+
name: p,
|
|
379
|
+
fn: m(() => [
|
|
380
|
+
u(r.$slots, p)
|
|
354
381
|
])
|
|
355
382
|
}))
|
|
356
383
|
]), 1040, ["popper-class"]);
|
|
357
384
|
};
|
|
358
385
|
}
|
|
359
|
-
}),
|
|
386
|
+
}), We = /* @__PURE__ */ Object.assign({
|
|
360
387
|
name: "MRadioButton"
|
|
361
388
|
}, {
|
|
362
389
|
__name: "RadioButton",
|
|
@@ -366,21 +393,21 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
366
393
|
default: ""
|
|
367
394
|
}
|
|
368
395
|
},
|
|
369
|
-
setup(
|
|
370
|
-
const { mergedAttrs:
|
|
396
|
+
setup(e) {
|
|
397
|
+
const { mergedAttrs: t } = P("mc-radio-button-popper");
|
|
371
398
|
return (o, s) => {
|
|
372
|
-
const
|
|
373
|
-
return
|
|
374
|
-
|
|
375
|
-
name:
|
|
376
|
-
fn:
|
|
377
|
-
|
|
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)
|
|
378
405
|
])
|
|
379
406
|
}))
|
|
380
407
|
]), 1040);
|
|
381
408
|
};
|
|
382
409
|
}
|
|
383
|
-
}),
|
|
410
|
+
}), Ze = /* @__PURE__ */ Object.assign({
|
|
384
411
|
name: "MSwitch"
|
|
385
412
|
}, {
|
|
386
413
|
__name: "Switch",
|
|
@@ -390,90 +417,90 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
390
417
|
default: ""
|
|
391
418
|
}
|
|
392
419
|
},
|
|
393
|
-
setup(
|
|
394
|
-
const { mergedAttrs:
|
|
395
|
-
return (s,
|
|
396
|
-
const n =
|
|
397
|
-
return
|
|
398
|
-
"popper-class":
|
|
420
|
+
setup(e) {
|
|
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),
|
|
399
426
|
class: "m-switch"
|
|
400
|
-
}),
|
|
401
|
-
|
|
427
|
+
}), _({ _: 2 }, [
|
|
428
|
+
f(s.$slots, (a, i) => ({
|
|
402
429
|
name: i,
|
|
403
|
-
fn:
|
|
404
|
-
|
|
430
|
+
fn: m(() => [
|
|
431
|
+
u(s.$slots, i)
|
|
405
432
|
])
|
|
406
433
|
}))
|
|
407
434
|
]), 1040, ["popper-class"]);
|
|
408
435
|
};
|
|
409
436
|
}
|
|
410
|
-
}),
|
|
437
|
+
}), Je = /* @__PURE__ */ Object.assign({
|
|
411
438
|
name: "MTag"
|
|
412
439
|
}, {
|
|
413
440
|
__name: "Tag",
|
|
414
|
-
setup(
|
|
415
|
-
return (
|
|
416
|
-
const s =
|
|
417
|
-
return
|
|
418
|
-
|
|
441
|
+
setup(e) {
|
|
442
|
+
return (t, o) => {
|
|
443
|
+
const s = ye;
|
|
444
|
+
return c(), d(s, g(t.$attrs, { class: "m-tag" }), _({ _: 2 }, [
|
|
445
|
+
f(t.$slots, (r, n) => ({
|
|
419
446
|
name: n,
|
|
420
|
-
fn:
|
|
421
|
-
|
|
447
|
+
fn: m(() => [
|
|
448
|
+
u(t.$slots, n)
|
|
422
449
|
])
|
|
423
450
|
}))
|
|
424
451
|
]), 1040);
|
|
425
452
|
};
|
|
426
453
|
}
|
|
427
|
-
}),
|
|
454
|
+
}), Qe = ["src", "alt"], Xe = ["success", "warning", "error"], Ye = {
|
|
428
455
|
name: "MAlert"
|
|
429
|
-
},
|
|
456
|
+
}, Ke = /* @__PURE__ */ Object.assign(Ye, {
|
|
430
457
|
props: {
|
|
431
458
|
type: {
|
|
432
459
|
type: String,
|
|
433
460
|
default: "success",
|
|
434
|
-
validator: (
|
|
461
|
+
validator: (e) => Xe.includes(e)
|
|
435
462
|
},
|
|
436
463
|
useCustomIcon: {
|
|
437
464
|
type: Boolean,
|
|
438
465
|
default: !0
|
|
439
466
|
}
|
|
440
467
|
},
|
|
441
|
-
setup(
|
|
442
|
-
const
|
|
443
|
-
const i = o, { useCustomIcon: n } = i,
|
|
444
|
-
return
|
|
445
|
-
type:
|
|
468
|
+
setup(e) {
|
|
469
|
+
const t = e, o = B(), s = h(() => {
|
|
470
|
+
const i = o, { useCustomIcon: n } = i, a = j(i, ["useCustomIcon"]);
|
|
471
|
+
return w(b({}, a), {
|
|
472
|
+
type: t.type
|
|
446
473
|
// 确保 type 属性正确传递给 el-alert
|
|
447
474
|
});
|
|
448
|
-
}),
|
|
449
|
-
return (n,
|
|
450
|
-
const i =
|
|
451
|
-
return
|
|
452
|
-
|
|
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 ? {
|
|
453
480
|
name: "icon",
|
|
454
|
-
fn:
|
|
455
|
-
|
|
456
|
-
src:
|
|
457
|
-
alt: `${
|
|
481
|
+
fn: m(() => [
|
|
482
|
+
k("img", {
|
|
483
|
+
src: r.value,
|
|
484
|
+
alt: `${e.type} icon`,
|
|
458
485
|
class: "mc-alert-icon"
|
|
459
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Qe)
|
|
460
487
|
]),
|
|
461
488
|
key: "0"
|
|
462
489
|
} : void 0,
|
|
463
|
-
|
|
464
|
-
name:
|
|
465
|
-
fn:
|
|
466
|
-
|
|
490
|
+
f(n.$slots, (p, M) => ({
|
|
491
|
+
name: M,
|
|
492
|
+
fn: m(() => [
|
|
493
|
+
u(n.$slots, M)
|
|
467
494
|
])
|
|
468
495
|
}))
|
|
469
496
|
]), 1040);
|
|
470
497
|
};
|
|
471
498
|
}
|
|
472
|
-
}),
|
|
499
|
+
}), xe = /* @__PURE__ */ Object.assign({
|
|
473
500
|
name: "MDialog"
|
|
474
501
|
}, {
|
|
475
502
|
__name: "Dialog",
|
|
476
|
-
props: /* @__PURE__ */
|
|
503
|
+
props: /* @__PURE__ */ W({
|
|
477
504
|
width: {
|
|
478
505
|
type: String,
|
|
479
506
|
default: "440px"
|
|
@@ -501,40 +528,40 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
501
528
|
},
|
|
502
529
|
modelModifiers: {}
|
|
503
530
|
}),
|
|
504
|
-
emits: /* @__PURE__ */
|
|
505
|
-
setup(
|
|
506
|
-
const o = ne(
|
|
507
|
-
return (s,
|
|
508
|
-
const n =
|
|
509
|
-
return
|
|
510
|
-
E(n,
|
|
531
|
+
emits: /* @__PURE__ */ W(["close"], ["update:modelValue"]),
|
|
532
|
+
setup(e, { emit: t }) {
|
|
533
|
+
const o = ne(e, "modelValue");
|
|
534
|
+
return (s, r) => {
|
|
535
|
+
const n = Ce;
|
|
536
|
+
return c(), $("div", null, [
|
|
537
|
+
E(n, g({
|
|
511
538
|
modelValue: o.value,
|
|
512
|
-
"onUpdate:modelValue":
|
|
513
|
-
width:
|
|
514
|
-
title:
|
|
515
|
-
draggable:
|
|
516
|
-
"close-on-click-modal":
|
|
517
|
-
center:
|
|
539
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => o.value = a),
|
|
540
|
+
width: e.width,
|
|
541
|
+
title: e.title,
|
|
542
|
+
draggable: e.draggable,
|
|
543
|
+
"close-on-click-modal": e.closeOnClickModal,
|
|
544
|
+
center: e.center
|
|
518
545
|
}, s.$attrs, {
|
|
519
546
|
class: "m-dialog",
|
|
520
547
|
"header-class": "m-header"
|
|
521
|
-
}),
|
|
522
|
-
default:
|
|
523
|
-
|
|
548
|
+
}), _({
|
|
549
|
+
default: m(() => [
|
|
550
|
+
u(s.$slots, "default")
|
|
524
551
|
]),
|
|
525
552
|
_: 2
|
|
526
553
|
}, [
|
|
527
554
|
s.$slots.header ? {
|
|
528
555
|
name: "header",
|
|
529
|
-
fn:
|
|
530
|
-
|
|
556
|
+
fn: m(({ close: a, titleId: i, titleClass: p }) => [
|
|
557
|
+
u(s.$slots, "header", z(R({ close: a, titleId: i, titleClass: p })))
|
|
531
558
|
]),
|
|
532
559
|
key: "0"
|
|
533
560
|
} : void 0,
|
|
534
561
|
s.$slots.footer ? {
|
|
535
562
|
name: "footer",
|
|
536
|
-
fn:
|
|
537
|
-
|
|
563
|
+
fn: m(() => [
|
|
564
|
+
u(s.$slots, "footer")
|
|
538
565
|
]),
|
|
539
566
|
key: "1"
|
|
540
567
|
} : void 0
|
|
@@ -542,23 +569,160 @@ const Ze = /* @__PURE__ */ Object.assign({
|
|
|
542
569
|
]);
|
|
543
570
|
};
|
|
544
571
|
}
|
|
545
|
-
}),
|
|
572
|
+
}), et = {
|
|
546
573
|
name: "MNotification"
|
|
547
574
|
};
|
|
548
|
-
function
|
|
549
|
-
const
|
|
550
|
-
return
|
|
551
|
-
|
|
552
|
-
name:
|
|
553
|
-
fn:
|
|
554
|
-
|
|
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)
|
|
555
582
|
])
|
|
556
583
|
}))
|
|
557
584
|
]), 1040);
|
|
558
585
|
}
|
|
559
|
-
const
|
|
560
|
-
let
|
|
561
|
-
const
|
|
586
|
+
const st = /* @__PURE__ */ T(et, [["render", tt]]), C = L([]);
|
|
587
|
+
let ot = 0;
|
|
588
|
+
const nt = {
|
|
589
|
+
// 默认配置
|
|
590
|
+
defaultOptions: {
|
|
591
|
+
message: "",
|
|
592
|
+
type: "success",
|
|
593
|
+
plain: !1,
|
|
594
|
+
customIcon: "",
|
|
595
|
+
dangerouslyUseHTMLString: !1,
|
|
596
|
+
customClass: "",
|
|
597
|
+
duration: 3e3,
|
|
598
|
+
showClose: !1,
|
|
599
|
+
showIcon: !0,
|
|
600
|
+
onClose: null,
|
|
601
|
+
offset: 16,
|
|
602
|
+
placement: "top",
|
|
603
|
+
appendTo: "body",
|
|
604
|
+
grouping: !1,
|
|
605
|
+
repeatNum: 1
|
|
606
|
+
},
|
|
607
|
+
// 显示消息
|
|
608
|
+
show(e = {}) {
|
|
609
|
+
typeof e == "string" && (e = { message: e });
|
|
610
|
+
const t = w(b(b({}, this.defaultOptions), e), {
|
|
611
|
+
id: ++ot
|
|
612
|
+
});
|
|
613
|
+
if (t.grouping) {
|
|
614
|
+
const o = C.value.findIndex(
|
|
615
|
+
(s) => s.message === t.message && s.type === t.type && s.grouping
|
|
616
|
+
);
|
|
617
|
+
if (o > -1)
|
|
618
|
+
return C.value[o].repeatNum++, { close: () => this.close(C.value[o].id) };
|
|
619
|
+
}
|
|
620
|
+
return C.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
621
|
+
this.close(t.id);
|
|
622
|
+
}, t.duration), {
|
|
623
|
+
close: () => this.close(t.id)
|
|
624
|
+
};
|
|
625
|
+
},
|
|
626
|
+
// 关闭指定消息
|
|
627
|
+
close(e) {
|
|
628
|
+
const t = C.value.findIndex((o) => o.id === e);
|
|
629
|
+
if (t > -1) {
|
|
630
|
+
const o = C.value[t];
|
|
631
|
+
o.onClose && o.onClose(o), C.value.splice(t, 1);
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
// 关闭所有消息
|
|
635
|
+
closeAll() {
|
|
636
|
+
C.value = [];
|
|
637
|
+
},
|
|
638
|
+
// 便捷方法
|
|
639
|
+
success(e = {}) {
|
|
640
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "success" }));
|
|
641
|
+
},
|
|
642
|
+
warning(e = {}) {
|
|
643
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "warning" }));
|
|
644
|
+
},
|
|
645
|
+
error(e = {}) {
|
|
646
|
+
return typeof e == "string" && (e = { message: e }), this.show(w(b({}, e), { type: "error" }));
|
|
647
|
+
}
|
|
648
|
+
}, rt = (e) => {
|
|
649
|
+
nt.close(e);
|
|
650
|
+
}, at = {
|
|
651
|
+
name: "MMessage",
|
|
652
|
+
setup() {
|
|
653
|
+
return {
|
|
654
|
+
messages: C,
|
|
655
|
+
closeMessage: rt
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
}, it = {
|
|
659
|
+
key: 0,
|
|
660
|
+
class: "message-icon"
|
|
661
|
+
}, ct = ["src"], lt = {
|
|
662
|
+
key: 1,
|
|
663
|
+
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-success.png",
|
|
664
|
+
alt: "success icon",
|
|
665
|
+
class: "message-icon-img"
|
|
666
|
+
}, ut = {
|
|
667
|
+
key: 2,
|
|
668
|
+
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-warning.png",
|
|
669
|
+
alt: "warning icon",
|
|
670
|
+
class: "message-icon-img"
|
|
671
|
+
}, mt = {
|
|
672
|
+
key: 3,
|
|
673
|
+
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-error.png",
|
|
674
|
+
alt: "error icon",
|
|
675
|
+
class: "message-icon-img"
|
|
676
|
+
}, pt = { class: "message-content" }, dt = ["innerHTML"], ft = { key: 2 }, _t = {
|
|
677
|
+
key: 3,
|
|
678
|
+
class: "message-repeat"
|
|
679
|
+
}, gt = ["onClick"];
|
|
680
|
+
function $t(e, t, o, s, r, n) {
|
|
681
|
+
return c(), d(Q, { to: "body" }, [
|
|
682
|
+
E(X, {
|
|
683
|
+
name: "message",
|
|
684
|
+
tag: "div",
|
|
685
|
+
class: "message-container"
|
|
686
|
+
}, {
|
|
687
|
+
default: m(() => [
|
|
688
|
+
(c(!0), $(Y, null, f(s.messages, (a) => (c(), $("div", {
|
|
689
|
+
key: a.id,
|
|
690
|
+
class: G([
|
|
691
|
+
"custom-message",
|
|
692
|
+
`message-${a.type}`,
|
|
693
|
+
`message-${a.placement}`,
|
|
694
|
+
{ "message-plain": a.plain }
|
|
695
|
+
])
|
|
696
|
+
}, [
|
|
697
|
+
a.showIcon ? (c(), $("div", it, [
|
|
698
|
+
a.customIcon ? (c(), $("img", {
|
|
699
|
+
key: 0,
|
|
700
|
+
src: a.customIcon,
|
|
701
|
+
alt: "custom icon",
|
|
702
|
+
class: "message-icon-img"
|
|
703
|
+
}, null, 8, ct)) : a.type === "success" ? (c(), $("img", lt)) : a.type === "warning" ? (c(), $("img", ut)) : a.type === "error" ? (c(), $("img", mt)) : S("", !0)
|
|
704
|
+
])) : S("", !0),
|
|
705
|
+
k("div", pt, [
|
|
706
|
+
typeof a.message == "function" ? (c(), d(K(a.message), { key: 0 })) : a.dangerouslyUseHTMLString ? (c(), $("div", {
|
|
707
|
+
key: 1,
|
|
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)
|
|
711
|
+
]),
|
|
712
|
+
a.showClose ? (c(), $("button", {
|
|
713
|
+
key: 1,
|
|
714
|
+
class: "message-close",
|
|
715
|
+
onClick: (i) => s.closeMessage(a.id)
|
|
716
|
+
}, " × ", 8, gt)) : S("", !0)
|
|
717
|
+
], 2))), 128))
|
|
718
|
+
]),
|
|
719
|
+
_: 1
|
|
720
|
+
})
|
|
721
|
+
]);
|
|
722
|
+
}
|
|
723
|
+
const x = /* @__PURE__ */ T(at, [["render", $t]]), I = L([]);
|
|
724
|
+
let Mt = 0;
|
|
725
|
+
const Is = {
|
|
562
726
|
// 默认配置
|
|
563
727
|
defaultOptions: {
|
|
564
728
|
title: "",
|
|
@@ -569,90 +733,90 @@ const vs = {
|
|
|
569
733
|
offset: 20
|
|
570
734
|
},
|
|
571
735
|
// 显示通知
|
|
572
|
-
show(
|
|
573
|
-
const
|
|
574
|
-
id: ++
|
|
736
|
+
show(e = {}) {
|
|
737
|
+
const t = w(b(b({}, this.defaultOptions), e), {
|
|
738
|
+
id: ++Mt
|
|
575
739
|
});
|
|
576
|
-
return
|
|
577
|
-
this.close(
|
|
578
|
-
},
|
|
579
|
-
close: () => this.close(
|
|
740
|
+
return I.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
741
|
+
this.close(t.id);
|
|
742
|
+
}, t.duration), {
|
|
743
|
+
close: () => this.close(t.id)
|
|
580
744
|
};
|
|
581
745
|
},
|
|
582
746
|
// 关闭指定通知
|
|
583
|
-
close(
|
|
584
|
-
const
|
|
585
|
-
|
|
747
|
+
close(e) {
|
|
748
|
+
const t = I.value.findIndex((o) => o.id === e);
|
|
749
|
+
t > -1 && I.value.splice(t, 1);
|
|
586
750
|
},
|
|
587
751
|
// 关闭所有通知
|
|
588
752
|
closeAll() {
|
|
589
|
-
|
|
753
|
+
I.value = [];
|
|
590
754
|
},
|
|
591
755
|
// 便捷方法
|
|
592
|
-
success(
|
|
593
|
-
return this.show(
|
|
756
|
+
success(e = {}) {
|
|
757
|
+
return this.show(e);
|
|
594
758
|
},
|
|
595
|
-
warning(
|
|
596
|
-
return this.show(
|
|
759
|
+
warning(e = {}) {
|
|
760
|
+
return this.show(e);
|
|
597
761
|
},
|
|
598
|
-
error(
|
|
599
|
-
return this.show(
|
|
762
|
+
error(e = {}) {
|
|
763
|
+
return this.show(e);
|
|
600
764
|
}
|
|
601
|
-
},
|
|
602
|
-
const
|
|
603
|
-
|
|
604
|
-
},
|
|
765
|
+
}, bt = (e) => {
|
|
766
|
+
const t = I.value.findIndex((o) => o.id === e);
|
|
767
|
+
t > -1 && I.value.splice(t, 1);
|
|
768
|
+
}, ht = {
|
|
605
769
|
name: "MNotifiMessage",
|
|
606
770
|
setup() {
|
|
607
771
|
return {
|
|
608
|
-
notifications:
|
|
609
|
-
closeNotification:
|
|
772
|
+
notifications: I,
|
|
773
|
+
closeNotification: bt
|
|
610
774
|
};
|
|
611
775
|
}
|
|
612
|
-
},
|
|
776
|
+
}, yt = { class: "notification-content" }, vt = { class: "notification-title" }, Ct = { class: "notification-message" }, kt = {
|
|
613
777
|
key: 0,
|
|
614
778
|
class: "notification-action"
|
|
615
|
-
},
|
|
616
|
-
function
|
|
617
|
-
return
|
|
618
|
-
E(
|
|
779
|
+
}, St = ["onClick"];
|
|
780
|
+
function wt(e, t, o, s, r, n) {
|
|
781
|
+
return c(), d(Q, { to: "body" }, [
|
|
782
|
+
E(X, {
|
|
619
783
|
name: "notification",
|
|
620
784
|
tag: "div",
|
|
621
785
|
class: "notification-container"
|
|
622
786
|
}, {
|
|
623
|
-
default:
|
|
624
|
-
(
|
|
625
|
-
key:
|
|
626
|
-
class:
|
|
787
|
+
default: m(() => [
|
|
788
|
+
(c(!0), $(Y, null, f(s.notifications, (a) => (c(), $("div", {
|
|
789
|
+
key: a.id,
|
|
790
|
+
class: G([
|
|
627
791
|
"custom-notification",
|
|
628
|
-
`notification-${
|
|
792
|
+
`notification-${a.position}`
|
|
629
793
|
])
|
|
630
794
|
}, [
|
|
631
|
-
|
|
632
|
-
|
|
795
|
+
t[0] || (t[0] = k("div", { class: "notification-icon" }, [
|
|
796
|
+
k("img", {
|
|
633
797
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
|
|
634
798
|
alt: "notification icon"
|
|
635
799
|
})
|
|
636
800
|
], -1)),
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
(
|
|
642
|
-
])) :
|
|
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)))
|
|
806
|
+
])) : S("", !0)
|
|
643
807
|
]),
|
|
644
|
-
|
|
808
|
+
a.showClose ? (c(), $("button", {
|
|
645
809
|
key: 0,
|
|
646
810
|
class: "notification-close",
|
|
647
|
-
onClick: (i) => s.closeNotification(
|
|
648
|
-
}, " × ", 8,
|
|
811
|
+
onClick: (i) => s.closeNotification(a.id)
|
|
812
|
+
}, " × ", 8, St)) : S("", !0)
|
|
649
813
|
], 2))), 128))
|
|
650
814
|
]),
|
|
651
815
|
_: 1
|
|
652
816
|
})
|
|
653
817
|
]);
|
|
654
818
|
}
|
|
655
|
-
const
|
|
819
|
+
const ee = /* @__PURE__ */ T(ht, [["render", wt]]), Tt = /* @__PURE__ */ Object.assign({
|
|
656
820
|
name: "MDatePicker"
|
|
657
821
|
}, {
|
|
658
822
|
__name: "DatePicker",
|
|
@@ -662,24 +826,24 @@ const $t = /* @__PURE__ */ O(pt, [["render", Mt]]), vt = /* @__PURE__ */ Object.
|
|
|
662
826
|
default: ""
|
|
663
827
|
}
|
|
664
828
|
},
|
|
665
|
-
setup(
|
|
666
|
-
const { mergedAttrs:
|
|
829
|
+
setup(e) {
|
|
830
|
+
const { mergedAttrs: t, className: o } = P(
|
|
667
831
|
"mc-datepicker-popper",
|
|
668
832
|
"popperClass"
|
|
669
833
|
);
|
|
670
|
-
return (s,
|
|
671
|
-
const n =
|
|
672
|
-
return
|
|
673
|
-
|
|
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) => ({
|
|
674
838
|
name: i,
|
|
675
|
-
fn:
|
|
676
|
-
|
|
839
|
+
fn: m(() => [
|
|
840
|
+
u(s.$slots, i)
|
|
677
841
|
])
|
|
678
842
|
}))
|
|
679
843
|
]), 1040, ["popper-class"]);
|
|
680
844
|
};
|
|
681
845
|
}
|
|
682
|
-
}),
|
|
846
|
+
}), It = [
|
|
683
847
|
"404",
|
|
684
848
|
"billing",
|
|
685
849
|
"cart",
|
|
@@ -696,74 +860,74 @@ const $t = /* @__PURE__ */ O(pt, [["render", Mt]]), vt = /* @__PURE__ */ Object.
|
|
|
696
860
|
"subscription",
|
|
697
861
|
"todo",
|
|
698
862
|
"wishlist"
|
|
699
|
-
],
|
|
863
|
+
], Et = {
|
|
700
864
|
name: "MEmpty"
|
|
701
|
-
},
|
|
865
|
+
}, Ot = /* @__PURE__ */ Object.assign(Et, {
|
|
702
866
|
props: {
|
|
703
867
|
image: {
|
|
704
868
|
type: String,
|
|
705
869
|
default: "orders",
|
|
706
|
-
validator: (
|
|
870
|
+
validator: (e) => e.includes("/") || e.includes("http") ? !0 : It.includes(e)
|
|
707
871
|
}
|
|
708
872
|
},
|
|
709
|
-
setup(
|
|
710
|
-
const
|
|
873
|
+
setup(e) {
|
|
874
|
+
const t = e, o = B(), s = h(() => {
|
|
711
875
|
const i = o, { image: n } = i;
|
|
712
|
-
return
|
|
713
|
-
}),
|
|
714
|
-
const { image: n } =
|
|
876
|
+
return j(i, ["image"]);
|
|
877
|
+
}), r = h(() => {
|
|
878
|
+
const { image: n } = t;
|
|
715
879
|
return n.includes("/") || n.includes("http") ? n : `/images/empty/${n}.png`;
|
|
716
880
|
});
|
|
717
|
-
return (n,
|
|
718
|
-
const i =
|
|
719
|
-
return
|
|
720
|
-
|
|
721
|
-
name:
|
|
722
|
-
fn:
|
|
723
|
-
|
|
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)
|
|
724
888
|
])
|
|
725
889
|
}))
|
|
726
890
|
]), 1040, ["image"]);
|
|
727
891
|
};
|
|
728
892
|
}
|
|
729
|
-
}),
|
|
893
|
+
}), Bt = /* @__PURE__ */ Object.assign({
|
|
730
894
|
name: "MTable"
|
|
731
895
|
}, {
|
|
732
896
|
__name: "Table",
|
|
733
|
-
setup(
|
|
734
|
-
return (
|
|
735
|
-
const s =
|
|
736
|
-
return
|
|
737
|
-
|
|
897
|
+
setup(e) {
|
|
898
|
+
return (t, o) => {
|
|
899
|
+
const s = Te;
|
|
900
|
+
return c(), d(s, z(R(t.$attrs)), _({ _: 2 }, [
|
|
901
|
+
f(t.$slots, (r, n) => ({
|
|
738
902
|
name: n,
|
|
739
|
-
fn:
|
|
740
|
-
|
|
903
|
+
fn: m(() => [
|
|
904
|
+
u(t.$slots, n)
|
|
741
905
|
])
|
|
742
906
|
}))
|
|
743
907
|
]), 1040);
|
|
744
908
|
};
|
|
745
909
|
}
|
|
746
|
-
}),
|
|
910
|
+
}), Pt = /* @__PURE__ */ Object.assign({
|
|
747
911
|
name: "MTableColumn"
|
|
748
912
|
}, {
|
|
749
913
|
__name: "TableColumn",
|
|
750
|
-
setup(
|
|
751
|
-
return (
|
|
752
|
-
const s =
|
|
753
|
-
return
|
|
754
|
-
|
|
914
|
+
setup(e) {
|
|
915
|
+
return (t, o) => {
|
|
916
|
+
const s = Ie;
|
|
917
|
+
return c(), d(s, g(t.$attrs, { class: "m-table-column" }), _({ _: 2 }, [
|
|
918
|
+
f(t.$slots, (r, n) => ({
|
|
755
919
|
name: n,
|
|
756
|
-
fn:
|
|
757
|
-
|
|
920
|
+
fn: m(() => [
|
|
921
|
+
u(t.$slots, n)
|
|
758
922
|
])
|
|
759
923
|
}))
|
|
760
924
|
]), 1040);
|
|
761
925
|
};
|
|
762
926
|
}
|
|
763
|
-
}),
|
|
927
|
+
}), Nt = { class: "m-banner__content" }, jt = {
|
|
764
928
|
key: 0,
|
|
765
929
|
class: "m-banner__icon"
|
|
766
|
-
},
|
|
930
|
+
}, At = { class: "m-banner__text" }, Lt = /* @__PURE__ */ Object.assign({
|
|
767
931
|
name: "MBanner"
|
|
768
932
|
}, {
|
|
769
933
|
__name: "Banner",
|
|
@@ -777,7 +941,7 @@ const $t = /* @__PURE__ */ O(pt, [["render", Mt]]), vt = /* @__PURE__ */ Object.
|
|
|
777
941
|
type: {
|
|
778
942
|
type: String,
|
|
779
943
|
default: "info",
|
|
780
|
-
validator: (
|
|
944
|
+
validator: (e) => ["info", "success", "warning", "error"].includes(e)
|
|
781
945
|
},
|
|
782
946
|
// 是否可关闭
|
|
783
947
|
closable: {
|
|
@@ -826,280 +990,115 @@ const $t = /* @__PURE__ */ O(pt, [["render", Mt]]), vt = /* @__PURE__ */ Object.
|
|
|
826
990
|
}
|
|
827
991
|
},
|
|
828
992
|
emits: ["close", "update:visible"],
|
|
829
|
-
setup(
|
|
830
|
-
const s =
|
|
831
|
-
|
|
832
|
-
|
|
993
|
+
setup(e, { expose: t, emit: o }) {
|
|
994
|
+
const s = re(), r = e, n = o, a = L(r.visible);
|
|
995
|
+
Z(() => r.visible, (y) => {
|
|
996
|
+
a.value = y;
|
|
833
997
|
});
|
|
834
998
|
const i = h(() => {
|
|
835
|
-
const
|
|
836
|
-
return
|
|
837
|
-
}),
|
|
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 = {
|
|
838
1002
|
info: "info",
|
|
839
1003
|
success: "check-circle",
|
|
840
1004
|
warning: "warning",
|
|
841
1005
|
error: "close-circle"
|
|
842
1006
|
};
|
|
843
|
-
h(() =>
|
|
844
|
-
const
|
|
845
|
-
|
|
1007
|
+
h(() => r.icon || p[r.type]);
|
|
1008
|
+
const M = () => {
|
|
1009
|
+
a.value = !1, n("update:visible", !1), n("close");
|
|
846
1010
|
};
|
|
847
|
-
return
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
},
|
|
851
|
-
}),
|
|
852
|
-
close:
|
|
853
|
-
}), (
|
|
1011
|
+
return Z(a, (y) => {
|
|
1012
|
+
y && r.duration > 0 && setTimeout(() => {
|
|
1013
|
+
M();
|
|
1014
|
+
}, r.duration);
|
|
1015
|
+
}), t({
|
|
1016
|
+
close: M
|
|
1017
|
+
}), (y, es) => e.visible ? (c(), $("div", {
|
|
854
1018
|
key: 0,
|
|
855
|
-
class:
|
|
856
|
-
`m-banner--${
|
|
1019
|
+
class: G(["m-banner", [
|
|
1020
|
+
`m-banner--${e.type}`,
|
|
857
1021
|
{
|
|
858
|
-
"m-banner--closable":
|
|
859
|
-
"m-banner--with-icon":
|
|
1022
|
+
"m-banner--closable": e.closable,
|
|
1023
|
+
"m-banner--with-icon": e.icon || v(s).icon
|
|
860
1024
|
}
|
|
861
1025
|
]]),
|
|
862
|
-
style:
|
|
1026
|
+
style: ae(i.value)
|
|
863
1027
|
}, [
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
E(
|
|
868
|
-
name:
|
|
869
|
-
size:
|
|
1028
|
+
k("div", Nt, [
|
|
1029
|
+
e.icon || v(s).icon ? (c(), $("div", jt, [
|
|
1030
|
+
u(y.$slots, "icon", {}, () => [
|
|
1031
|
+
E(V, {
|
|
1032
|
+
name: e.icon,
|
|
1033
|
+
size: e.iconSize
|
|
870
1034
|
}, null, 8, ["name", "size"])
|
|
871
1035
|
], !0)
|
|
872
|
-
])) :
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1036
|
+
])) : S("", !0),
|
|
1037
|
+
k("div", At, [
|
|
1038
|
+
u(y.$slots, "default", {}, () => [
|
|
1039
|
+
ie(O(e.content), 1)
|
|
876
1040
|
], !0)
|
|
877
1041
|
]),
|
|
878
|
-
|
|
1042
|
+
e.closable ? (c(), $("div", {
|
|
879
1043
|
key: 1,
|
|
880
1044
|
class: "m-banner__close",
|
|
881
|
-
onClick:
|
|
1045
|
+
onClick: M
|
|
882
1046
|
}, [
|
|
883
|
-
E(
|
|
1047
|
+
E(V, {
|
|
884
1048
|
name: "lucide-x",
|
|
885
|
-
size:
|
|
1049
|
+
size: e.closeIconSize
|
|
886
1050
|
}, null, 8, ["size"])
|
|
887
|
-
])) :
|
|
1051
|
+
])) : S("", !0)
|
|
888
1052
|
])
|
|
889
|
-
], 6)) :
|
|
1053
|
+
], 6)) : S("", !0);
|
|
890
1054
|
}
|
|
891
|
-
}),
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
type: String,
|
|
902
|
-
default: "",
|
|
903
|
-
validator: (t) => ["", "card", "border-card"].includes(t)
|
|
904
|
-
},
|
|
905
|
-
// 标签位置
|
|
906
|
-
tabPosition: {
|
|
907
|
-
type: String,
|
|
908
|
-
default: "top",
|
|
909
|
-
validator: (t) => ["top", "right", "bottom", "left"].includes(t)
|
|
910
|
-
},
|
|
911
|
-
// 是否可关闭
|
|
912
|
-
closable: {
|
|
913
|
-
type: Boolean,
|
|
914
|
-
default: !1
|
|
915
|
-
},
|
|
916
|
-
// 是否可添加
|
|
917
|
-
addable: {
|
|
918
|
-
type: Boolean,
|
|
919
|
-
default: !1
|
|
920
|
-
},
|
|
921
|
-
// 是否可编辑(同时可添加和关闭)
|
|
922
|
-
editable: {
|
|
923
|
-
type: Boolean,
|
|
924
|
-
default: !1
|
|
925
|
-
},
|
|
926
|
-
// 标签宽度是否自撑开
|
|
927
|
-
stretch: {
|
|
928
|
-
type: Boolean,
|
|
929
|
-
default: !1
|
|
930
|
-
},
|
|
931
|
-
// 切换前的钩子函数
|
|
932
|
-
beforeLeave: {
|
|
933
|
-
type: Function,
|
|
934
|
-
default: null
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
emits: ["update:modelValue", "tab-click", "tab-change", "tab-remove", "tab-add", "edit"],
|
|
938
|
-
setup(t, { expose: e, emit: o }) {
|
|
939
|
-
const s = t, a = o;
|
|
940
|
-
W();
|
|
941
|
-
const n = L([]), r = L(s.modelValue);
|
|
942
|
-
R(() => s.modelValue, (u) => {
|
|
943
|
-
r.value = u;
|
|
944
|
-
}), R(r, (u) => {
|
|
945
|
-
a("update:modelValue", u), a("tab-change", u);
|
|
946
|
-
}), ue("tabsContext", {
|
|
947
|
-
registerTab: (u) => {
|
|
948
|
-
const y = n.value.findIndex((f) => f.name === u.name);
|
|
949
|
-
y >= 0 ? n.value[y] = u : n.value.push(u), !r.value && n.value.length > 0 && (r.value = n.value[0].name || 0);
|
|
950
|
-
},
|
|
951
|
-
unregisterTab: (u) => {
|
|
952
|
-
const y = n.value.findIndex((f) => f.name === u);
|
|
953
|
-
y >= 0 && n.value.splice(y, 1);
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
const i = (u, y) => Y(this, null, function* () {
|
|
957
|
-
if (u.disabled) return;
|
|
958
|
-
const f = u.name || y;
|
|
959
|
-
if (r.value !== f) {
|
|
960
|
-
if (s.beforeLeave)
|
|
961
|
-
try {
|
|
962
|
-
if ((yield s.beforeLeave(r.value, f)) === !1) return;
|
|
963
|
-
} catch (S) {
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
r.value = f, a("tab-click", { name: f, index: y, disabled: u.disabled });
|
|
967
|
-
}
|
|
968
|
-
}), d = (u, y) => {
|
|
969
|
-
const f = u.name || y;
|
|
970
|
-
a("tab-remove", f), a("edit", f, "remove");
|
|
971
|
-
}, v = () => {
|
|
972
|
-
a("tab-add"), a("edit", "", "add");
|
|
973
|
-
};
|
|
974
|
-
return e({
|
|
975
|
-
activeName: h(() => r.value)
|
|
976
|
-
}), (u, y) => (l(), $("div", {
|
|
977
|
-
class: I(["m-tabs", [`m-tabs--${t.type}`, `m-tabs--${t.tabPosition}`]])
|
|
978
|
-
}, [
|
|
979
|
-
C("div", It, [
|
|
980
|
-
C("div", Nt, [
|
|
981
|
-
(l(!0), $(x, null, b(n.value, (f, S) => {
|
|
982
|
-
var H;
|
|
983
|
-
return l(), $("div", {
|
|
984
|
-
key: f.name || S,
|
|
985
|
-
class: I([
|
|
986
|
-
"m-tabs__item",
|
|
987
|
-
{
|
|
988
|
-
"m-tabs__item--active": r.value === (f.name || S),
|
|
989
|
-
"m-tabs__item--disabled": f.disabled,
|
|
990
|
-
"m-tabs__item--closable": f.closable
|
|
991
|
-
}
|
|
992
|
-
]),
|
|
993
|
-
onClick: (ee) => i(f, S)
|
|
994
|
-
}, [
|
|
995
|
-
C("span", jt, [
|
|
996
|
-
(H = f.$slots) != null && H.label ? m(u.$slots, `tab-${f.name || S}`, { key: 0 }, void 0, !0) : (l(), $("span", At, V(f.label), 1))
|
|
997
|
-
]),
|
|
998
|
-
f.closable ? (l(), $("span", {
|
|
999
|
-
key: 0,
|
|
1000
|
-
class: "m-tabs__item-close",
|
|
1001
|
-
onClick: me((ee) => d(f, S), ["stop"])
|
|
1002
|
-
}, [
|
|
1003
|
-
E(N, {
|
|
1004
|
-
name: "lucide-x",
|
|
1005
|
-
size: 12
|
|
1006
|
-
})
|
|
1007
|
-
], 8, zt)) : w("", !0)
|
|
1008
|
-
], 10, Pt);
|
|
1009
|
-
}), 128)),
|
|
1010
|
-
t.addable || t.editable ? (l(), $("div", {
|
|
1011
|
-
key: 0,
|
|
1012
|
-
class: "m-tabs__item m-tabs__item--add",
|
|
1013
|
-
onClick: v
|
|
1014
|
-
}, [
|
|
1015
|
-
E(N, {
|
|
1016
|
-
name: "plus",
|
|
1017
|
-
size: 12
|
|
1018
|
-
})
|
|
1019
|
-
])) : w("", !0)
|
|
1020
|
-
])
|
|
1021
|
-
]),
|
|
1022
|
-
C("div", Lt, [
|
|
1023
|
-
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)
|
|
1024
1065
|
])
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1066
|
+
}))
|
|
1067
|
+
]), 1040);
|
|
1068
|
+
}
|
|
1069
|
+
const Vt = /* @__PURE__ */ T(Rt, [["render", Ft]]), Gt = {
|
|
1028
1070
|
name: "MTabPane"
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
type: [String, Number],
|
|
1045
|
-
default: ""
|
|
1046
|
-
},
|
|
1047
|
-
// 是否可关闭
|
|
1048
|
-
closable: {
|
|
1049
|
-
type: Boolean,
|
|
1050
|
-
default: !1
|
|
1051
|
-
},
|
|
1052
|
-
// 是否延迟渲染
|
|
1053
|
-
lazy: {
|
|
1054
|
-
type: Boolean,
|
|
1055
|
-
default: !1
|
|
1056
|
-
}
|
|
1057
|
-
},
|
|
1058
|
-
setup(t) {
|
|
1059
|
-
const e = t, o = W(), s = pe("tabsContext"), a = h(() => s ? s.activeName === (e.name || s.tabIndex) : !1);
|
|
1060
|
-
return de(() => {
|
|
1061
|
-
if (s) {
|
|
1062
|
-
const n = {
|
|
1063
|
-
name: e.name,
|
|
1064
|
-
label: e.label,
|
|
1065
|
-
disabled: e.disabled,
|
|
1066
|
-
closable: e.closable,
|
|
1067
|
-
$slots: o
|
|
1068
|
-
};
|
|
1069
|
-
s.registerTab(n);
|
|
1070
|
-
}
|
|
1071
|
-
}), fe(() => {
|
|
1072
|
-
s && s.unregisterTab(e.name);
|
|
1073
|
-
}), (n, r) => _e((l(), $("div", {
|
|
1074
|
-
class: I(["m-tab-pane", {
|
|
1075
|
-
"m-tab-pane--active": a.value,
|
|
1076
|
-
"m-tab-pane--disabled": t.disabled
|
|
1077
|
-
}])
|
|
1078
|
-
}, [
|
|
1079
|
-
m(n.$slots, "default", {}, void 0, !0)
|
|
1080
|
-
], 2)), [
|
|
1081
|
-
[be, a.value]
|
|
1082
|
-
]);
|
|
1083
|
-
}
|
|
1084
|
-
}), Gt = /* @__PURE__ */ O(Dt, [["__scopeId", "data-v-722bb248"]]);
|
|
1085
|
-
function D(t) {
|
|
1086
|
-
t && t.classList && t.classList.add("mc-ui-override");
|
|
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) {
|
|
1085
|
+
e && e.classList && e.classList.add("mc-ui-override");
|
|
1087
1086
|
}
|
|
1088
|
-
function
|
|
1089
|
-
|
|
1087
|
+
function qt(e) {
|
|
1088
|
+
e && e.$el && A(e.$el);
|
|
1090
1089
|
}
|
|
1091
|
-
function
|
|
1092
|
-
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((
|
|
1093
|
-
|
|
1090
|
+
function Ht() {
|
|
1091
|
+
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
|
|
1092
|
+
t.forEach((o) => {
|
|
1094
1093
|
o.addedNodes.forEach((s) => {
|
|
1095
1094
|
if (s.nodeType === 1 && s.classList) {
|
|
1096
|
-
if (s.className && s.className.includes("el-")) {
|
|
1095
|
+
if (s.className && typeof s.className == "string" && s.className.includes("el-")) {
|
|
1097
1096
|
const n = s.closest(".mc-ui-override") || s.parentElement;
|
|
1098
1097
|
n && !n.classList.contains("mc-ui-override") && n.classList.add("mc-ui-override");
|
|
1099
1098
|
}
|
|
1100
1099
|
s.querySelectorAll('[class*="el-"]').forEach((n) => {
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1100
|
+
const a = n.closest(".mc-ui-override") || n.parentElement;
|
|
1101
|
+
a && !a.classList.contains("mc-ui-override") && a.classList.add("mc-ui-override");
|
|
1103
1102
|
});
|
|
1104
1103
|
}
|
|
1105
1104
|
});
|
|
@@ -1109,32 +1108,55 @@ function Ut() {
|
|
|
1109
1108
|
subtree: !0
|
|
1110
1109
|
}));
|
|
1111
1110
|
}
|
|
1112
|
-
function
|
|
1113
|
-
typeof document != "undefined" && document.querySelectorAll(
|
|
1111
|
+
function Wt(e = '[class*="el-"]') {
|
|
1112
|
+
typeof document != "undefined" && document.querySelectorAll(e).forEach((o) => {
|
|
1114
1113
|
const s = o.closest(".mc-ui-override") || o.parentElement;
|
|
1115
1114
|
s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
|
|
1116
1115
|
});
|
|
1117
1116
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1117
|
+
function Zt(e) {
|
|
1118
|
+
return w(b({}, e), {
|
|
1120
1119
|
mounted() {
|
|
1121
|
-
|
|
1120
|
+
A(this.$el), e.mounted && e.mounted.call(this);
|
|
1122
1121
|
},
|
|
1123
1122
|
updated() {
|
|
1124
|
-
|
|
1123
|
+
A(this.$el), e.updated && e.updated.call(this);
|
|
1125
1124
|
}
|
|
1126
1125
|
});
|
|
1127
1126
|
}
|
|
1128
|
-
const
|
|
1127
|
+
const Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1129
1128
|
__proto__: null,
|
|
1130
|
-
addComponentOverride:
|
|
1131
|
-
addOverrideClass:
|
|
1132
|
-
applyGlobalOverride:
|
|
1133
|
-
createOverrideComponent:
|
|
1134
|
-
forceRefreshStyles:
|
|
1135
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1136
|
-
|
|
1137
|
-
|
|
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 }
|
|
1137
|
+
];
|
|
1138
|
+
function Xt(o) {
|
|
1139
|
+
return F(this, arguments, function* ({ id: e, component: t }) {
|
|
1140
|
+
try {
|
|
1141
|
+
if (document.getElementById(e)) return;
|
|
1142
|
+
const { createApp: s, h: r } = yield import("vue"), n = document.createElement("div");
|
|
1143
|
+
n.id = e, document.body.appendChild(n), s({
|
|
1144
|
+
render: () => r(t)
|
|
1145
|
+
}).mount(`#${e}`);
|
|
1146
|
+
} catch (s) {
|
|
1147
|
+
console.warn(`Failed to create global component ${e}:`, s);
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
function Yt() {
|
|
1152
|
+
return F(this, null, function* () {
|
|
1153
|
+
const e = Qt.map(Xt);
|
|
1154
|
+
yield Promise.all(e);
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
const l = {};
|
|
1158
|
+
function Kt(e) {
|
|
1159
|
+
const t = D.map((o) => {
|
|
1138
1160
|
if (o && o.name && typeof o.name == "string") {
|
|
1139
1161
|
let s = o.name.toLowerCase();
|
|
1140
1162
|
return {
|
|
@@ -1148,21 +1170,21 @@ function Ht(t) {
|
|
|
1148
1170
|
}
|
|
1149
1171
|
return null;
|
|
1150
1172
|
}).filter(Boolean);
|
|
1151
|
-
Object.entries(
|
|
1173
|
+
Object.entries(J).forEach(([o, s]) => {
|
|
1152
1174
|
if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
|
|
1153
|
-
const
|
|
1154
|
-
|
|
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);
|
|
1155
1177
|
const n = "M" + s.name.slice(2);
|
|
1156
|
-
|
|
1178
|
+
l[n] = s;
|
|
1157
1179
|
}
|
|
1158
1180
|
});
|
|
1159
1181
|
}
|
|
1160
|
-
const
|
|
1161
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1162
|
-
|
|
1163
|
-
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."),
|
|
1164
|
-
if (
|
|
1165
|
-
let o =
|
|
1182
|
+
const xt = (e) => {
|
|
1183
|
+
typeof window != "undefined" && Promise.resolve().then(() => Jt).then(({ applyGlobalOverride: t }) => {
|
|
1184
|
+
t();
|
|
1185
|
+
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), D.forEach((t) => {
|
|
1186
|
+
if (t && t.name && typeof t.name == "string") {
|
|
1187
|
+
let o = t.name.toLowerCase();
|
|
1166
1188
|
o = {
|
|
1167
1189
|
mradiogroup: "m-radio-group",
|
|
1168
1190
|
mradiobutton: "m-radio-button",
|
|
@@ -1170,14 +1192,14 @@ const Jt = (t) => {
|
|
|
1170
1192
|
moptiongroup: "m-option-group",
|
|
1171
1193
|
mtabs: "m-tabs",
|
|
1172
1194
|
mtabpane: "m-tab-pane"
|
|
1173
|
-
}[o] || o.replace(/^m/, "m-"),
|
|
1195
|
+
}[o] || o.replace(/^m/, "m-"), e.component(o, t);
|
|
1174
1196
|
}
|
|
1175
|
-
}),
|
|
1197
|
+
}), Kt(e), typeof window != "undefined" && Yt();
|
|
1176
1198
|
};
|
|
1177
|
-
function
|
|
1178
|
-
const
|
|
1199
|
+
function Es(e) {
|
|
1200
|
+
const t = Object.keys(e._context.components || {}), o = D.map((s) => {
|
|
1179
1201
|
if (s && s.name && typeof s.name == "string") {
|
|
1180
|
-
let
|
|
1202
|
+
let r = s.name.toLowerCase();
|
|
1181
1203
|
return {
|
|
1182
1204
|
mradiogroup: "m-radio-group",
|
|
1183
1205
|
mradiobutton: "m-radio-button",
|
|
@@ -1185,86 +1207,87 @@ function hs(t) {
|
|
|
1185
1207
|
moptiongroup: "m-option-group",
|
|
1186
1208
|
mtabs: "m-tabs",
|
|
1187
1209
|
mtabpane: "m-tab-pane"
|
|
1188
|
-
}[
|
|
1210
|
+
}[r] || r.replace(/^m/, "m-");
|
|
1189
1211
|
}
|
|
1190
1212
|
return null;
|
|
1191
1213
|
}).filter(Boolean);
|
|
1192
|
-
return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:",
|
|
1193
|
-
registered:
|
|
1214
|
+
return console.log("📊 组件注册状态报告:"), console.log("已注册的组件:", t.filter((s) => s.startsWith("m-"))), console.log("自定义组件:", o), {
|
|
1215
|
+
registered: t,
|
|
1194
1216
|
custom: o,
|
|
1195
|
-
conflicts:
|
|
1217
|
+
conflicts: t.filter(
|
|
1196
1218
|
(s) => s.startsWith("m-") && o.includes(s)
|
|
1197
1219
|
)
|
|
1198
1220
|
};
|
|
1199
1221
|
}
|
|
1200
|
-
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;
|
|
1201
1223
|
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
|
-
|
|
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
|
|
1269
1292
|
};
|
|
1270
1293
|
//# sourceMappingURL=index.mjs.map
|