@mc-markets/ui 1.0.86 → 1.0.90
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/README.md +40 -141
- package/dist/404.html +22 -22
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +5 -13
- package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.vue.d.ts +3 -0
- package/dist/components/Breadcrumb/BreadcrumbSeparator.vue.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/TabCard/TabCard.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +2 -0
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +605 -661
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/packages/components/Alert/Alert.vue +139 -139
- package/packages/components/Banner/Banner.vue +299 -299
- package/packages/components/Breadcrumb/Breadcrumb.vue +113 -77
- package/packages/components/Breadcrumb/BreadcrumbSeparator.vue +31 -0
- package/packages/components/Button/Button.vue +17 -17
- package/packages/components/DatePicker/DatePicker.vue +85 -86
- package/packages/components/Dialog/Dialog.vue +61 -61
- package/packages/components/Empty/Empty.vue +74 -74
- package/packages/components/Form/Form.vue +30 -30
- package/packages/components/FormItem/FormItem.vue +19 -19
- package/packages/components/Icon/Icon.vue +210 -210
- package/packages/components/Input/Input.vue +15 -15
- package/packages/components/Message/Message.vue +503 -503
- package/packages/components/NotifiMessage/NotifiMessage.vue +293 -293
- package/packages/components/Notification/Notification.vue +19 -19
- package/packages/components/Option/Option.vue +13 -13
- package/packages/components/OptionGroup/OptionGroup.vue +13 -13
- package/packages/components/Pagination/Pagination.vue +61 -61
- package/packages/components/Radio/Radio.vue +67 -67
- package/packages/components/RadioButton/RadioButton.vue +110 -110
- package/packages/components/RadioGroup/RadioGroup.vue +155 -155
- package/packages/components/Select/Select.vue +22 -22
- package/packages/components/Switch/Switch.vue +47 -47
- package/packages/components/TabCard/TabCard.vue +107 -177
- package/packages/components/TabCard/TabCardItem.vue +105 -102
- package/packages/components/Table/Table.vue +17 -17
- package/packages/components/Table/TableColumn.vue +20 -20
- package/packages/components/Tabs/TabPane.vue +79 -79
- package/packages/components/Tabs/Tabs.vue +267 -267
- package/packages/components/Tag/Tag.vue +211 -164
- package/packages/components/Tooltip/Tooltip.vue +58 -58
- package/packages/hooks/useClassName.js +23 -23
- package/packages/styles/README.md +129 -129
- package/packages/styles/components/button.scss +121 -121
- package/packages/styles/components/checkbox.scss +18 -18
- package/packages/styles/components/dialog.scss +47 -47
- package/packages/styles/components/form.scss +18 -18
- package/packages/styles/components/input.scss +14 -14
- package/packages/styles/components/select.scss +62 -60
- package/packages/styles/components/table.scss +37 -37
- package/packages/styles/components/tabs.scss +76 -76
- package/packages/styles/components/tag.scss +142 -142
- package/packages/styles/font/iconfont.scss +363 -363
- package/packages/styles/index.scss +94 -94
- package/packages/styles/variables/border-mode.css +6 -6
- package/packages/styles/variables/color-modes-dark.css +143 -143
- package/packages/styles/variables/index.scss +5 -5
- package/packages/styles/variables/primitives-style.css +112 -112
- package/packages/styles/variables/radius-mode.css +14 -14
- package/packages/styles/variables/spacing-mode.css +20 -20
- package/packages/styles/variables/typography-desktop.css +40 -40
- package/packages/styles/variables/typography-mobile.css +40 -40
- package/packages/utils/classNames.js +23 -23
- package/packages/utils/styleUtils.js +105 -105
- package/dist/components/Breadcrumb/BreadcrumbItem.vue.d.ts +0 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.vue.d.ts.map +0 -1
- package/packages/components/Breadcrumb/BreadcrumbItem.vue +0 -142
package/dist/index.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fe = Object.defineProperty, _e = Object.defineProperties;
|
|
2
|
+
var ge = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Q = (e, t, n) => t in e ? fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, w = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
X.call(t, n) && Q(e, n, t[n]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var n of F(t))
|
|
10
|
+
Y.call(t, n) && Q(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, E = (e, t) => _e(e, ge(t));
|
|
13
|
+
var D = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var s in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var s of
|
|
19
|
-
t.indexOf(s) < 0 &&
|
|
16
|
+
X.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
|
|
17
|
+
if (e != null && F)
|
|
18
|
+
for (var s of F(e))
|
|
19
|
+
t.indexOf(s) < 0 && Y.call(e, s) && (n[s] = e[s]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var a = (
|
|
22
|
+
var H = (e, t, n) => new Promise((s, o) => {
|
|
23
|
+
var a = (d) => {
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
} catch (
|
|
27
|
-
o(
|
|
25
|
+
l(n.next(d));
|
|
26
|
+
} catch (g) {
|
|
27
|
+
o(g);
|
|
28
28
|
}
|
|
29
|
-
}, r = (
|
|
29
|
+
}, r = (d) => {
|
|
30
30
|
try {
|
|
31
|
-
|
|
32
|
-
} catch (
|
|
33
|
-
o(
|
|
31
|
+
l(n.throw(d));
|
|
32
|
+
} catch (g) {
|
|
33
|
+
o(g);
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, l = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(a, r);
|
|
36
|
+
l((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import * as
|
|
39
|
-
import { computed as h, createElementBlock as
|
|
40
|
-
import { ElButton as
|
|
38
|
+
import * as ee from "element-plus";
|
|
39
|
+
import { computed as h, createElementBlock as c, openBlock as i, mergeProps as $, renderSlot as m, createBlock as f, createSlots as v, renderList as _, withCtx as p, ref as O, useAttrs as R, unref as I, normalizeProps as U, guardReactiveProps as q, createCommentVNode as C, createElementVNode as y, Fragment as j, normalizeClass as T, mergeModels as K, useModel as be, createVNode as L, Teleport as te, TransitionGroup as se, resolveDynamicComponent as ne, toDisplayString as x, useSlots as ve, watch as V, normalizeStyle as oe, createTextVNode as ae, provide as re, onMounted as le, nextTick as he, withDirectives as ye, vShow as $e, inject as ie, onUnmounted as Me } from "vue";
|
|
40
|
+
import { ElButton as Ce, ElInput as ke, ElForm as we, ElFormItem as Se, ElTooltip as Te, ElSelect as Ie, ElOption as Be, ElOptionGroup as Oe, ElPagination as Ee, ElRadio as xe, ElRadioGroup as Pe, ElRadioButton as je, ElSwitch as Ae, ElTag as Ne, ElAlert as Le, ElDialog as Ve, ElNotification as Re, ElDatePicker as ze, ElEmpty as Fe, ElTable as De, ElTableColumn as Ge } 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
|
|
63
|
+
const S = (e, t) => {
|
|
64
64
|
const n = e.__vccOpts || e;
|
|
65
65
|
for (const [s, o] of t)
|
|
66
66
|
n[s] = o;
|
|
67
67
|
return n;
|
|
68
|
-
},
|
|
68
|
+
}, Ue = /* @__PURE__ */ Object.assign({
|
|
69
69
|
name: "MIcon"
|
|
70
70
|
}, {
|
|
71
71
|
__name: "Icon",
|
|
@@ -106,64 +106,64 @@ const T = (e, t) => {
|
|
|
106
106
|
emits: ["click"],
|
|
107
107
|
setup(e, { emit: t }) {
|
|
108
108
|
const n = e, s = t, o = h(() => {
|
|
109
|
-
const
|
|
110
|
-
return n.name &&
|
|
109
|
+
const l = ["iconfont"];
|
|
110
|
+
return n.name && l.push(`${n.prefix}-${n.name}`), n.spin && l.push("icon-spin"), n.pulse && l.push("icon-pulse"), n.flip && l.push(`icon-flip-${n.flip}`), l;
|
|
111
111
|
}), a = h(() => {
|
|
112
|
-
const
|
|
113
|
-
return n.size && (typeof n.size == "number" ?
|
|
114
|
-
}), r = (
|
|
115
|
-
s("click",
|
|
112
|
+
const l = {};
|
|
113
|
+
return n.size && (typeof n.size == "number" ? l.fontSize = `${n.size}px` : l.fontSize = n.size), n.color && (l.color = n.color), n.rotate !== 0 && (l.transform = `rotate(${n.rotate}deg)`), l;
|
|
114
|
+
}), r = (l) => {
|
|
115
|
+
s("click", l);
|
|
116
116
|
};
|
|
117
|
-
return (
|
|
117
|
+
return (l, d) => (i(), c("i", $({
|
|
118
118
|
class: o.value,
|
|
119
119
|
style: a.value
|
|
120
|
-
},
|
|
121
|
-
|
|
120
|
+
}, l.$attrs, { onClick: r }), [
|
|
121
|
+
m(l.$slots, "default", {}, void 0, !0)
|
|
122
122
|
], 16));
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), Z = /* @__PURE__ */ S(Ue, [["__scopeId", "data-v-94ce8db4"]]), qe = /* @__PURE__ */ Object.assign({
|
|
125
125
|
name: "MButton"
|
|
126
126
|
}, {
|
|
127
127
|
__name: "Button",
|
|
128
128
|
setup(e) {
|
|
129
129
|
return (t, n) => {
|
|
130
|
-
const s =
|
|
131
|
-
return
|
|
132
|
-
|
|
130
|
+
const s = Ce;
|
|
131
|
+
return i(), f(s, $(t.$attrs, { class: "m-button" }), v({ _: 2 }, [
|
|
132
|
+
_(t.$slots, (o, a) => ({
|
|
133
133
|
name: a,
|
|
134
|
-
fn:
|
|
135
|
-
|
|
134
|
+
fn: p(() => [
|
|
135
|
+
m(t.$slots, a, {}, void 0, !0)
|
|
136
136
|
])
|
|
137
137
|
}))
|
|
138
138
|
]), 1040);
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), We = /* @__PURE__ */ S(qe, [["__scopeId", "data-v-79a4d7ee"]]), He = /* @__PURE__ */ Object.assign({
|
|
142
142
|
name: "MInput"
|
|
143
143
|
}, {
|
|
144
144
|
__name: "Input",
|
|
145
145
|
setup(e) {
|
|
146
146
|
return (t, n) => {
|
|
147
|
-
const s =
|
|
148
|
-
return
|
|
147
|
+
const s = ke;
|
|
148
|
+
return i(), f(s, $(t.$attrs, {
|
|
149
149
|
class: ["m-input", { solid: t.$attrs.styleType === "solid" }]
|
|
150
150
|
}), v({ _: 2 }, [
|
|
151
|
-
|
|
151
|
+
_(t.$slots, (o, a) => ({
|
|
152
152
|
name: a,
|
|
153
|
-
fn:
|
|
154
|
-
|
|
153
|
+
fn: p(() => [
|
|
154
|
+
m(t.$slots, a)
|
|
155
155
|
])
|
|
156
156
|
}))
|
|
157
157
|
]), 1040, ["class"]);
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), Ze = /* @__PURE__ */ Object.assign({
|
|
161
161
|
name: "MForm"
|
|
162
162
|
}, {
|
|
163
163
|
__name: "Form",
|
|
164
164
|
setup(e, { expose: t }) {
|
|
165
|
-
const n =
|
|
166
|
-
return
|
|
165
|
+
const n = O();
|
|
166
|
+
return R(), t({
|
|
167
167
|
validate: (s) => {
|
|
168
168
|
var o;
|
|
169
169
|
return (o = n.value) == null ? void 0 : o.validate(s);
|
|
@@ -185,51 +185,51 @@ const T = (e, t) => {
|
|
|
185
185
|
return (o = n.value) == null ? void 0 : o.clearValidate(s);
|
|
186
186
|
}
|
|
187
187
|
}), (s, o) => {
|
|
188
|
-
const a =
|
|
189
|
-
return
|
|
188
|
+
const a = we;
|
|
189
|
+
return i(), f(a, $({
|
|
190
190
|
ref_key: "formRef",
|
|
191
191
|
ref: n
|
|
192
192
|
}, s.$attrs, { class: "m-form" }), v({ _: 2 }, [
|
|
193
|
-
|
|
194
|
-
name:
|
|
195
|
-
fn:
|
|
196
|
-
|
|
193
|
+
_(s.$slots, (r, l) => ({
|
|
194
|
+
name: l,
|
|
195
|
+
fn: p(() => [
|
|
196
|
+
m(s.$slots, l)
|
|
197
197
|
])
|
|
198
198
|
}))
|
|
199
199
|
]), 1040);
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), Je = /* @__PURE__ */ Object.assign({
|
|
203
203
|
name: "MFormItem"
|
|
204
204
|
}, {
|
|
205
205
|
__name: "FormItem",
|
|
206
206
|
setup(e) {
|
|
207
207
|
return (t, n) => {
|
|
208
|
-
const s =
|
|
209
|
-
return
|
|
210
|
-
|
|
208
|
+
const s = Se;
|
|
209
|
+
return i(), f(s, $(t.$attrs, { class: "m-form-item" }), v({ _: 2 }, [
|
|
210
|
+
_(t.$slots, (o, a) => ({
|
|
211
211
|
name: a,
|
|
212
|
-
fn:
|
|
213
|
-
|
|
212
|
+
fn: p(() => [
|
|
213
|
+
m(t.$slots, a)
|
|
214
214
|
])
|
|
215
215
|
}))
|
|
216
216
|
]), 1040);
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
220
|
-
const n =
|
|
219
|
+
}), Qe = (...e) => e.filter(Boolean).join(" "), Xe = (e, ...t) => {
|
|
220
|
+
const n = w({}, e);
|
|
221
221
|
return t.forEach((s) => {
|
|
222
222
|
delete n[s];
|
|
223
223
|
}), n;
|
|
224
224
|
};
|
|
225
|
-
function
|
|
226
|
-
const n =
|
|
225
|
+
function A(e, t = "popperClass") {
|
|
226
|
+
const n = R(), s = h(() => Xe(n, t)), o = h(() => Qe(e, n[t]));
|
|
227
227
|
return {
|
|
228
228
|
mergedAttrs: s,
|
|
229
229
|
className: o
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const Ye = /* @__PURE__ */ Object.assign({
|
|
233
233
|
name: "MTooltip"
|
|
234
234
|
}, {
|
|
235
235
|
__name: "Tooltip",
|
|
@@ -240,91 +240,91 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
setup(e) {
|
|
243
|
-
const { mergedAttrs: t, className: n } =
|
|
243
|
+
const { mergedAttrs: t, className: n } = A("mc-tooltip-popper");
|
|
244
244
|
return (s, o) => {
|
|
245
|
-
const a =
|
|
246
|
-
return
|
|
247
|
-
|
|
248
|
-
name:
|
|
249
|
-
fn:
|
|
250
|
-
|
|
245
|
+
const a = Te;
|
|
246
|
+
return i(), f(a, $(I(t), { "popper-class": I(n) }), v({ _: 2 }, [
|
|
247
|
+
_(s.$slots, (r, l) => ({
|
|
248
|
+
name: l,
|
|
249
|
+
fn: p(() => [
|
|
250
|
+
m(s.$slots, l)
|
|
251
251
|
])
|
|
252
252
|
}))
|
|
253
253
|
]), 1040, ["popper-class"]);
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
}),
|
|
256
|
+
}), Ke = /* @__PURE__ */ Object.assign({
|
|
257
257
|
name: "MSelect"
|
|
258
258
|
}, {
|
|
259
259
|
__name: "Select",
|
|
260
260
|
setup(e) {
|
|
261
261
|
return (t, n) => {
|
|
262
|
-
const s =
|
|
263
|
-
return
|
|
262
|
+
const s = Ie;
|
|
263
|
+
return i(), f(s, $({
|
|
264
264
|
class: ["m-select", { solid: t.$attrs.styleType === "solid" }],
|
|
265
265
|
"show-arrow": !1
|
|
266
266
|
}, t.$attrs), v({ _: 2 }, [
|
|
267
|
-
|
|
267
|
+
_(t.$slots, (o, a) => ({
|
|
268
268
|
name: a,
|
|
269
|
-
fn:
|
|
270
|
-
|
|
269
|
+
fn: p(() => [
|
|
270
|
+
m(t.$slots, a)
|
|
271
271
|
])
|
|
272
272
|
}))
|
|
273
273
|
]), 1040, ["class"]);
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
}),
|
|
276
|
+
}), et = /* @__PURE__ */ Object.assign({
|
|
277
277
|
name: "MOption"
|
|
278
278
|
}, {
|
|
279
279
|
__name: "Option",
|
|
280
280
|
setup(e) {
|
|
281
281
|
return (t, n) => {
|
|
282
282
|
const s = Be;
|
|
283
|
-
return
|
|
284
|
-
|
|
283
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
284
|
+
_(t.$slots, (o, a) => ({
|
|
285
285
|
name: a,
|
|
286
|
-
fn:
|
|
287
|
-
|
|
286
|
+
fn: p(() => [
|
|
287
|
+
m(t.$slots, a)
|
|
288
288
|
])
|
|
289
289
|
}))
|
|
290
290
|
]), 1040);
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
}),
|
|
293
|
+
}), tt = /* @__PURE__ */ Object.assign({
|
|
294
294
|
name: "MOptionGroup"
|
|
295
295
|
}, {
|
|
296
296
|
__name: "OptionGroup",
|
|
297
297
|
setup(e) {
|
|
298
298
|
return (t, n) => {
|
|
299
|
-
const s =
|
|
300
|
-
return
|
|
301
|
-
|
|
299
|
+
const s = Oe;
|
|
300
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
301
|
+
_(t.$slots, (o, a) => ({
|
|
302
302
|
name: a,
|
|
303
|
-
fn:
|
|
304
|
-
|
|
303
|
+
fn: p(() => [
|
|
304
|
+
m(t.$slots, a)
|
|
305
305
|
])
|
|
306
306
|
}))
|
|
307
307
|
]), 1040);
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
}),
|
|
310
|
+
}), st = /* @__PURE__ */ Object.assign({
|
|
311
311
|
name: "MPagination"
|
|
312
312
|
}, {
|
|
313
313
|
__name: "Pagination",
|
|
314
314
|
setup(e) {
|
|
315
315
|
return (t, n) => {
|
|
316
|
-
const s =
|
|
317
|
-
return
|
|
318
|
-
|
|
316
|
+
const s = Ee;
|
|
317
|
+
return i(), f(s, $(t.$attrs, { class: "m-pagination" }), v({ _: 2 }, [
|
|
318
|
+
_(t.$slots, (o, a) => ({
|
|
319
319
|
name: a,
|
|
320
|
-
fn:
|
|
321
|
-
|
|
320
|
+
fn: p(() => [
|
|
321
|
+
m(t.$slots, a)
|
|
322
322
|
])
|
|
323
323
|
}))
|
|
324
324
|
]), 1040);
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), nt = /* @__PURE__ */ Object.assign({
|
|
328
328
|
name: "MRadio"
|
|
329
329
|
}, {
|
|
330
330
|
__name: "Radio",
|
|
@@ -335,20 +335,20 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
setup(e) {
|
|
338
|
-
const { mergedAttrs: t } =
|
|
338
|
+
const { mergedAttrs: t } = A("mc-radio-popper");
|
|
339
339
|
return (n, s) => {
|
|
340
|
-
const o =
|
|
341
|
-
return
|
|
342
|
-
|
|
340
|
+
const o = xe;
|
|
341
|
+
return i(), f(o, $(I(t), { class: "m-radio" }), v({ _: 2 }, [
|
|
342
|
+
_(n.$slots, (a, r) => ({
|
|
343
343
|
name: r,
|
|
344
|
-
fn:
|
|
345
|
-
|
|
344
|
+
fn: p(() => [
|
|
345
|
+
m(n.$slots, r)
|
|
346
346
|
])
|
|
347
347
|
}))
|
|
348
348
|
]), 1040);
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
}),
|
|
351
|
+
}), ot = /* @__PURE__ */ Object.assign({
|
|
352
352
|
name: "MRadioGroup"
|
|
353
353
|
}, {
|
|
354
354
|
__name: "RadioGroup",
|
|
@@ -359,29 +359,29 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
|
-
const t =
|
|
362
|
+
const t = R(), n = h(() => {
|
|
363
363
|
const o = "mc-radio-group-popper";
|
|
364
364
|
return t.popperClass ? `${o} ${t.popperClass}`.trim() : o;
|
|
365
365
|
}), s = h(() => {
|
|
366
366
|
const r = t, { popperClass: o } = r;
|
|
367
|
-
return
|
|
367
|
+
return D(r, ["popperClass"]);
|
|
368
368
|
});
|
|
369
369
|
return (o, a) => {
|
|
370
|
-
const r =
|
|
371
|
-
return
|
|
370
|
+
const r = Pe;
|
|
371
|
+
return i(), f(r, $(s.value, {
|
|
372
372
|
"popper-class": n.value,
|
|
373
373
|
class: "m-radio-group"
|
|
374
374
|
}), v({ _: 2 }, [
|
|
375
|
-
|
|
376
|
-
name:
|
|
377
|
-
fn:
|
|
378
|
-
|
|
375
|
+
_(o.$slots, (l, d) => ({
|
|
376
|
+
name: d,
|
|
377
|
+
fn: p(() => [
|
|
378
|
+
m(o.$slots, d)
|
|
379
379
|
])
|
|
380
380
|
}))
|
|
381
381
|
]), 1040, ["popper-class"]);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
}),
|
|
384
|
+
}), at = /* @__PURE__ */ Object.assign({
|
|
385
385
|
name: "MRadioButton"
|
|
386
386
|
}, {
|
|
387
387
|
__name: "RadioButton",
|
|
@@ -392,20 +392,20 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
392
392
|
}
|
|
393
393
|
},
|
|
394
394
|
setup(e) {
|
|
395
|
-
const { mergedAttrs: t } =
|
|
395
|
+
const { mergedAttrs: t } = A("mc-radio-button-popper");
|
|
396
396
|
return (n, s) => {
|
|
397
|
-
const o =
|
|
398
|
-
return
|
|
399
|
-
|
|
397
|
+
const o = je;
|
|
398
|
+
return i(), f(o, $(I(t), { class: "m-radio-button" }), v({ _: 2 }, [
|
|
399
|
+
_(n.$slots, (a, r) => ({
|
|
400
400
|
name: r,
|
|
401
|
-
fn:
|
|
402
|
-
|
|
401
|
+
fn: p(() => [
|
|
402
|
+
m(n.$slots, r)
|
|
403
403
|
])
|
|
404
404
|
}))
|
|
405
405
|
]), 1040);
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
}),
|
|
408
|
+
}), rt = /* @__PURE__ */ Object.assign({
|
|
409
409
|
name: "MSwitch"
|
|
410
410
|
}, {
|
|
411
411
|
__name: "Switch",
|
|
@@ -416,26 +416,26 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
setup(e) {
|
|
419
|
-
const { mergedAttrs: t, className: n } =
|
|
419
|
+
const { mergedAttrs: t, className: n } = A("mc-switch-popper");
|
|
420
420
|
return (s, o) => {
|
|
421
|
-
const a =
|
|
422
|
-
return
|
|
423
|
-
"popper-class":
|
|
421
|
+
const a = Ae;
|
|
422
|
+
return i(), f(a, $(I(t), {
|
|
423
|
+
"popper-class": I(n),
|
|
424
424
|
class: "m-switch"
|
|
425
425
|
}), v({ _: 2 }, [
|
|
426
|
-
|
|
427
|
-
name:
|
|
428
|
-
fn:
|
|
429
|
-
|
|
426
|
+
_(s.$slots, (r, l) => ({
|
|
427
|
+
name: l,
|
|
428
|
+
fn: p(() => [
|
|
429
|
+
m(s.$slots, l)
|
|
430
430
|
])
|
|
431
431
|
}))
|
|
432
432
|
]), 1040, ["popper-class"]);
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
}),
|
|
435
|
+
}), lt = {
|
|
436
436
|
key: 0,
|
|
437
437
|
class: "custom-spinner"
|
|
438
|
-
},
|
|
438
|
+
}, it = { class: "ldio-spinner" }, ct = /* @__PURE__ */ Object.assign({
|
|
439
439
|
name: "MTag"
|
|
440
440
|
}, {
|
|
441
441
|
__name: "Tag",
|
|
@@ -451,46 +451,55 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
451
451
|
loading: {
|
|
452
452
|
type: Boolean,
|
|
453
453
|
default: !1
|
|
454
|
+
},
|
|
455
|
+
status: {
|
|
456
|
+
type: String,
|
|
457
|
+
default: "",
|
|
458
|
+
validator: (e) => ["", "success", "warning", "danger"].includes(e)
|
|
454
459
|
}
|
|
455
460
|
},
|
|
456
461
|
setup(e) {
|
|
457
|
-
const t = e, n = h(() =>
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
+
const t = e, n = h(() => {
|
|
463
|
+
if (t.status)
|
|
464
|
+
return t.status;
|
|
465
|
+
}), s = h(() => t.status === "warning" ? !0 : t.loading), o = h(() => t.prefixIcon ? t.prefixIcon : t.status === "success" ? "icon-circle-check-filled" : t.status === "danger" ? "icon-lucide_circle-x-filled" : ""), a = h(() => t.suffixIcon ? t.suffixIcon : "");
|
|
466
|
+
return (r, l) => {
|
|
467
|
+
const d = Ne;
|
|
468
|
+
return i(), f(d, $(r.$attrs, {
|
|
469
|
+
type: n.value,
|
|
470
|
+
class: ["m-tag", { "is-loading": s.value }]
|
|
462
471
|
}), v({ _: 2 }, [
|
|
463
|
-
|
|
464
|
-
name:
|
|
465
|
-
fn:
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
(
|
|
472
|
+
_(r.$slots, (g, M) => ({
|
|
473
|
+
name: M,
|
|
474
|
+
fn: p(() => [
|
|
475
|
+
s.value && !o.value ? (i(), c("div", lt, [
|
|
476
|
+
y("div", it, [
|
|
477
|
+
(i(), c(j, null, _(8, (N) => y("div", { key: N })), 64))
|
|
469
478
|
])
|
|
470
|
-
])) :
|
|
479
|
+
])) : o.value ? (i(), c("i", {
|
|
471
480
|
key: 1,
|
|
472
|
-
class:
|
|
481
|
+
class: T(["prefixIcon", ["iconfont", o.value]])
|
|
473
482
|
}, null, 2)) : C("", !0),
|
|
474
|
-
|
|
475
|
-
|
|
483
|
+
y("div", null, [
|
|
484
|
+
m(r.$slots, M)
|
|
476
485
|
]),
|
|
477
|
-
|
|
486
|
+
a.value ? (i(), c("i", {
|
|
478
487
|
key: 2,
|
|
479
|
-
class:
|
|
488
|
+
class: T(["suffixIcon", ["iconfont", a.value]])
|
|
480
489
|
}, null, 2)) : C("", !0)
|
|
481
490
|
])
|
|
482
491
|
}))
|
|
483
|
-
]), 1040, ["class"]);
|
|
492
|
+
]), 1040, ["type", "class"]);
|
|
484
493
|
};
|
|
485
494
|
}
|
|
486
|
-
}),
|
|
495
|
+
}), ut = ["src", "alt"], dt = ["success", "warning", "error"], mt = {
|
|
487
496
|
name: "MAlert"
|
|
488
|
-
},
|
|
497
|
+
}, pt = /* @__PURE__ */ Object.assign(mt, {
|
|
489
498
|
props: {
|
|
490
499
|
type: {
|
|
491
500
|
type: String,
|
|
492
501
|
default: "success",
|
|
493
|
-
validator: (e) =>
|
|
502
|
+
validator: (e) => dt.includes(e)
|
|
494
503
|
},
|
|
495
504
|
useCustomIcon: {
|
|
496
505
|
type: Boolean,
|
|
@@ -498,41 +507,41 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
498
507
|
}
|
|
499
508
|
},
|
|
500
509
|
setup(e) {
|
|
501
|
-
const t = e, n =
|
|
502
|
-
const
|
|
503
|
-
return
|
|
510
|
+
const t = e, n = R(), s = h(() => {
|
|
511
|
+
const l = n, { useCustomIcon: a } = l, r = D(l, ["useCustomIcon"]);
|
|
512
|
+
return E(w({}, r), {
|
|
504
513
|
type: t.type
|
|
505
514
|
// 确保 type 属性正确传递给 el-alert
|
|
506
515
|
});
|
|
507
516
|
}), o = h(() => t.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${t.type}.png` : null);
|
|
508
517
|
return (a, r) => {
|
|
509
|
-
const
|
|
510
|
-
return
|
|
518
|
+
const l = Le;
|
|
519
|
+
return i(), f(l, $(s.value, { class: "mc-alert" }), v({ _: 2 }, [
|
|
511
520
|
o.value ? {
|
|
512
521
|
name: "icon",
|
|
513
|
-
fn:
|
|
514
|
-
|
|
522
|
+
fn: p(() => [
|
|
523
|
+
y("img", {
|
|
515
524
|
src: o.value,
|
|
516
525
|
alt: `${e.type} icon`,
|
|
517
526
|
class: "mc-alert-icon"
|
|
518
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, ut)
|
|
519
528
|
]),
|
|
520
529
|
key: "0"
|
|
521
530
|
} : void 0,
|
|
522
|
-
|
|
523
|
-
name:
|
|
524
|
-
fn:
|
|
525
|
-
|
|
531
|
+
_(a.$slots, (d, g) => ({
|
|
532
|
+
name: g,
|
|
533
|
+
fn: p(() => [
|
|
534
|
+
m(a.$slots, g)
|
|
526
535
|
])
|
|
527
536
|
}))
|
|
528
537
|
]), 1040);
|
|
529
538
|
};
|
|
530
539
|
}
|
|
531
|
-
}),
|
|
540
|
+
}), ft = /* @__PURE__ */ Object.assign({
|
|
532
541
|
name: "MDialog"
|
|
533
542
|
}, {
|
|
534
543
|
__name: "Dialog",
|
|
535
|
-
props: /* @__PURE__ */
|
|
544
|
+
props: /* @__PURE__ */ K({
|
|
536
545
|
width: {
|
|
537
546
|
type: String,
|
|
538
547
|
default: "440px"
|
|
@@ -560,13 +569,13 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
560
569
|
},
|
|
561
570
|
modelModifiers: {}
|
|
562
571
|
}),
|
|
563
|
-
emits: /* @__PURE__ */
|
|
572
|
+
emits: /* @__PURE__ */ K(["close"], ["update:modelValue"]),
|
|
564
573
|
setup(e, { emit: t }) {
|
|
565
|
-
const n =
|
|
574
|
+
const n = be(e, "modelValue");
|
|
566
575
|
return (s, o) => {
|
|
567
|
-
const a =
|
|
568
|
-
return
|
|
569
|
-
|
|
576
|
+
const a = Ve;
|
|
577
|
+
return i(), c("div", null, [
|
|
578
|
+
L(a, $({
|
|
570
579
|
modelValue: n.value,
|
|
571
580
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
|
|
572
581
|
width: e.width,
|
|
@@ -578,22 +587,22 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
578
587
|
class: "m-dialog",
|
|
579
588
|
"header-class": "m-header"
|
|
580
589
|
}), v({
|
|
581
|
-
default:
|
|
582
|
-
|
|
590
|
+
default: p(() => [
|
|
591
|
+
m(s.$slots, "default")
|
|
583
592
|
]),
|
|
584
593
|
_: 2
|
|
585
594
|
}, [
|
|
586
595
|
s.$slots.header ? {
|
|
587
596
|
name: "header",
|
|
588
|
-
fn:
|
|
589
|
-
|
|
597
|
+
fn: p(({ close: r, titleId: l, titleClass: d }) => [
|
|
598
|
+
m(s.$slots, "header", U(q({ close: r, titleId: l, titleClass: d })))
|
|
590
599
|
]),
|
|
591
600
|
key: "0"
|
|
592
601
|
} : void 0,
|
|
593
602
|
s.$slots.footer ? {
|
|
594
603
|
name: "footer",
|
|
595
|
-
fn:
|
|
596
|
-
|
|
604
|
+
fn: p(() => [
|
|
605
|
+
m(s.$slots, "footer")
|
|
597
606
|
]),
|
|
598
607
|
key: "1"
|
|
599
608
|
} : void 0
|
|
@@ -601,23 +610,23 @@ const et = /* @__PURE__ */ Object.assign({
|
|
|
601
610
|
]);
|
|
602
611
|
};
|
|
603
612
|
}
|
|
604
|
-
}),
|
|
613
|
+
}), _t = {
|
|
605
614
|
name: "MNotification"
|
|
606
615
|
};
|
|
607
|
-
function
|
|
608
|
-
const r =
|
|
609
|
-
return
|
|
610
|
-
|
|
611
|
-
name:
|
|
612
|
-
fn:
|
|
613
|
-
|
|
616
|
+
function gt(e, t, n, s, o, a) {
|
|
617
|
+
const r = Re;
|
|
618
|
+
return i(), f(r, $(e.$attrs, { class: "mc-notification" }), v({ _: 2 }, [
|
|
619
|
+
_(e.$slots, (l, d) => ({
|
|
620
|
+
name: d,
|
|
621
|
+
fn: p(() => [
|
|
622
|
+
m(e.$slots, d)
|
|
614
623
|
])
|
|
615
624
|
}))
|
|
616
625
|
]), 1040);
|
|
617
626
|
}
|
|
618
|
-
const
|
|
619
|
-
let
|
|
620
|
-
const
|
|
627
|
+
const bt = /* @__PURE__ */ S(_t, [["render", gt]]), B = O([]);
|
|
628
|
+
let vt = 0;
|
|
629
|
+
const ht = {
|
|
621
630
|
// 默认配置
|
|
622
631
|
defaultOptions: {
|
|
623
632
|
message: "",
|
|
@@ -639,17 +648,17 @@ const $t = {
|
|
|
639
648
|
// 显示消息
|
|
640
649
|
show(e = {}) {
|
|
641
650
|
typeof e == "string" && (e = { message: e });
|
|
642
|
-
const t =
|
|
643
|
-
id: ++
|
|
651
|
+
const t = E(w(w({}, this.defaultOptions), e), {
|
|
652
|
+
id: ++vt
|
|
644
653
|
});
|
|
645
654
|
if (t.grouping) {
|
|
646
|
-
const n =
|
|
655
|
+
const n = B.value.findIndex(
|
|
647
656
|
(s) => s.message === t.message && s.type === t.type && s.grouping
|
|
648
657
|
);
|
|
649
658
|
if (n > -1)
|
|
650
|
-
return
|
|
659
|
+
return B.value[n].repeatNum++, { close: () => this.close(B.value[n].id) };
|
|
651
660
|
}
|
|
652
|
-
return
|
|
661
|
+
return B.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
653
662
|
this.close(t.id);
|
|
654
663
|
}, t.duration), {
|
|
655
664
|
close: () => this.close(t.id)
|
|
@@ -657,104 +666,104 @@ const $t = {
|
|
|
657
666
|
},
|
|
658
667
|
// 关闭指定消息
|
|
659
668
|
close(e) {
|
|
660
|
-
const t =
|
|
669
|
+
const t = B.value.findIndex((n) => n.id === e);
|
|
661
670
|
if (t > -1) {
|
|
662
|
-
const n =
|
|
663
|
-
n.onClose && n.onClose(n),
|
|
671
|
+
const n = B.value[t];
|
|
672
|
+
n.onClose && n.onClose(n), B.value.splice(t, 1);
|
|
664
673
|
}
|
|
665
674
|
},
|
|
666
675
|
// 关闭所有消息
|
|
667
676
|
closeAll() {
|
|
668
|
-
|
|
677
|
+
B.value = [];
|
|
669
678
|
},
|
|
670
679
|
// 便捷方法
|
|
671
680
|
success(e = {}) {
|
|
672
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
681
|
+
return typeof e == "string" && (e = { message: e }), this.show(E(w({}, e), { type: "success" }));
|
|
673
682
|
},
|
|
674
683
|
warning(e = {}) {
|
|
675
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
684
|
+
return typeof e == "string" && (e = { message: e }), this.show(E(w({}, e), { type: "warning" }));
|
|
676
685
|
},
|
|
677
686
|
error(e = {}) {
|
|
678
|
-
return typeof e == "string" && (e = { message: e }), this.show(
|
|
687
|
+
return typeof e == "string" && (e = { message: e }), this.show(E(w({}, e), { type: "error" }));
|
|
679
688
|
}
|
|
680
|
-
},
|
|
681
|
-
|
|
682
|
-
},
|
|
689
|
+
}, yt = (e) => {
|
|
690
|
+
ht.close(e);
|
|
691
|
+
}, $t = {
|
|
683
692
|
name: "MMessage",
|
|
684
693
|
setup() {
|
|
685
694
|
return {
|
|
686
|
-
messages:
|
|
687
|
-
closeMessage:
|
|
695
|
+
messages: B,
|
|
696
|
+
closeMessage: yt
|
|
688
697
|
};
|
|
689
698
|
}
|
|
690
|
-
},
|
|
699
|
+
}, Mt = {
|
|
691
700
|
key: 0,
|
|
692
701
|
class: "message-icon"
|
|
693
|
-
},
|
|
702
|
+
}, Ct = ["src"], kt = {
|
|
694
703
|
key: 1,
|
|
695
704
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-success.png",
|
|
696
705
|
alt: "success icon",
|
|
697
706
|
class: "message-icon-img"
|
|
698
|
-
},
|
|
707
|
+
}, wt = {
|
|
699
708
|
key: 2,
|
|
700
709
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-warning.png",
|
|
701
710
|
alt: "warning icon",
|
|
702
711
|
class: "message-icon-img"
|
|
703
|
-
},
|
|
712
|
+
}, St = {
|
|
704
713
|
key: 3,
|
|
705
714
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-error.png",
|
|
706
715
|
alt: "error icon",
|
|
707
716
|
class: "message-icon-img"
|
|
708
|
-
},
|
|
717
|
+
}, Tt = { class: "message-content" }, It = ["innerHTML"], Bt = { key: 2 }, Ot = {
|
|
709
718
|
key: 3,
|
|
710
719
|
class: "message-repeat"
|
|
711
|
-
},
|
|
712
|
-
function
|
|
713
|
-
return
|
|
714
|
-
|
|
720
|
+
}, Et = ["onClick"];
|
|
721
|
+
function xt(e, t, n, s, o, a) {
|
|
722
|
+
return i(), f(te, { to: "body" }, [
|
|
723
|
+
L(se, {
|
|
715
724
|
name: "message",
|
|
716
725
|
tag: "div",
|
|
717
726
|
class: "message-container"
|
|
718
727
|
}, {
|
|
719
|
-
default:
|
|
720
|
-
(
|
|
728
|
+
default: p(() => [
|
|
729
|
+
(i(!0), c(j, null, _(s.messages, (r) => (i(), c("div", {
|
|
721
730
|
key: r.id,
|
|
722
|
-
class:
|
|
731
|
+
class: T([
|
|
723
732
|
"custom-message",
|
|
724
733
|
`message-${r.type}`,
|
|
725
734
|
`message-${r.placement}`,
|
|
726
735
|
{ "message-plain": r.plain }
|
|
727
736
|
])
|
|
728
737
|
}, [
|
|
729
|
-
r.showIcon ? (
|
|
730
|
-
r.customIcon ? (
|
|
738
|
+
r.showIcon ? (i(), c("div", Mt, [
|
|
739
|
+
r.customIcon ? (i(), c("img", {
|
|
731
740
|
key: 0,
|
|
732
741
|
src: r.customIcon,
|
|
733
742
|
alt: "custom icon",
|
|
734
743
|
class: "message-icon-img"
|
|
735
|
-
}, null, 8,
|
|
744
|
+
}, null, 8, Ct)) : r.type === "success" ? (i(), c("img", kt)) : r.type === "warning" ? (i(), c("img", wt)) : r.type === "error" ? (i(), c("img", St)) : C("", !0)
|
|
736
745
|
])) : C("", !0),
|
|
737
|
-
|
|
738
|
-
typeof r.message == "function" ? (
|
|
746
|
+
y("div", Tt, [
|
|
747
|
+
typeof r.message == "function" ? (i(), f(ne(r.message), { key: 0 })) : r.dangerouslyUseHTMLString ? (i(), c("div", {
|
|
739
748
|
key: 1,
|
|
740
749
|
innerHTML: r.message
|
|
741
|
-
}, null, 8,
|
|
742
|
-
r.repeatNum > 1 ? (
|
|
750
|
+
}, null, 8, It)) : (i(), c("span", Bt, x(r.message), 1)),
|
|
751
|
+
r.repeatNum > 1 ? (i(), c("span", Ot, x(r.repeatNum), 1)) : C("", !0)
|
|
743
752
|
]),
|
|
744
|
-
r.showClose ? (
|
|
753
|
+
r.showClose ? (i(), c("button", {
|
|
745
754
|
key: 1,
|
|
746
755
|
class: "message-close",
|
|
747
|
-
onClick: (
|
|
748
|
-
}, " × ", 8,
|
|
756
|
+
onClick: (l) => s.closeMessage(r.id)
|
|
757
|
+
}, " × ", 8, Et)) : C("", !0)
|
|
749
758
|
], 2))), 128))
|
|
750
759
|
]),
|
|
751
760
|
_: 1
|
|
752
761
|
})
|
|
753
762
|
]);
|
|
754
763
|
}
|
|
755
|
-
const
|
|
756
|
-
let
|
|
757
|
-
const
|
|
764
|
+
const ce = /* @__PURE__ */ S($t, [["render", xt]]), P = O([]);
|
|
765
|
+
let Pt = 0;
|
|
766
|
+
const sn = {
|
|
758
767
|
// 默认配置
|
|
759
768
|
defaultOptions: {
|
|
760
769
|
title: "",
|
|
@@ -766,10 +775,10 @@ const mn = {
|
|
|
766
775
|
},
|
|
767
776
|
// 显示通知
|
|
768
777
|
show(e = {}) {
|
|
769
|
-
const t =
|
|
770
|
-
id: ++
|
|
778
|
+
const t = E(w(w({}, this.defaultOptions), e), {
|
|
779
|
+
id: ++Pt
|
|
771
780
|
});
|
|
772
|
-
return
|
|
781
|
+
return P.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
773
782
|
this.close(t.id);
|
|
774
783
|
}, t.duration), {
|
|
775
784
|
close: () => this.close(t.id)
|
|
@@ -777,12 +786,12 @@ const mn = {
|
|
|
777
786
|
},
|
|
778
787
|
// 关闭指定通知
|
|
779
788
|
close(e) {
|
|
780
|
-
const t =
|
|
781
|
-
t > -1 &&
|
|
789
|
+
const t = P.value.findIndex((n) => n.id === e);
|
|
790
|
+
t > -1 && P.value.splice(t, 1);
|
|
782
791
|
},
|
|
783
792
|
// 关闭所有通知
|
|
784
793
|
closeAll() {
|
|
785
|
-
|
|
794
|
+
P.value = [];
|
|
786
795
|
},
|
|
787
796
|
// 便捷方法
|
|
788
797
|
success(e = {}) {
|
|
@@ -794,61 +803,61 @@ const mn = {
|
|
|
794
803
|
error(e = {}) {
|
|
795
804
|
return this.show(e);
|
|
796
805
|
}
|
|
797
|
-
},
|
|
798
|
-
const t =
|
|
799
|
-
t > -1 &&
|
|
800
|
-
},
|
|
806
|
+
}, jt = (e) => {
|
|
807
|
+
const t = P.value.findIndex((n) => n.id === e);
|
|
808
|
+
t > -1 && P.value.splice(t, 1);
|
|
809
|
+
}, At = {
|
|
801
810
|
name: "MNotifiMessage",
|
|
802
811
|
setup() {
|
|
803
812
|
return {
|
|
804
|
-
notifications:
|
|
805
|
-
closeNotification:
|
|
813
|
+
notifications: P,
|
|
814
|
+
closeNotification: jt
|
|
806
815
|
};
|
|
807
816
|
}
|
|
808
|
-
},
|
|
817
|
+
}, Nt = { class: "notification-content" }, Lt = { class: "notification-title" }, Vt = { class: "notification-message" }, Rt = {
|
|
809
818
|
key: 0,
|
|
810
819
|
class: "notification-action"
|
|
811
|
-
},
|
|
820
|
+
}, zt = ["onClick"];
|
|
812
821
|
function Ft(e, t, n, s, o, a) {
|
|
813
|
-
return
|
|
814
|
-
|
|
822
|
+
return i(), f(te, { to: "body" }, [
|
|
823
|
+
L(se, {
|
|
815
824
|
name: "notification",
|
|
816
825
|
tag: "div",
|
|
817
826
|
class: "notification-container"
|
|
818
827
|
}, {
|
|
819
|
-
default:
|
|
820
|
-
(
|
|
828
|
+
default: p(() => [
|
|
829
|
+
(i(!0), c(j, null, _(s.notifications, (r) => (i(), c("div", {
|
|
821
830
|
key: r.id,
|
|
822
|
-
class:
|
|
831
|
+
class: T([
|
|
823
832
|
"custom-notification",
|
|
824
833
|
`notification-${r.position}`
|
|
825
834
|
])
|
|
826
835
|
}, [
|
|
827
|
-
t[0] || (t[0] =
|
|
828
|
-
|
|
836
|
+
t[0] || (t[0] = y("div", { class: "notification-icon" }, [
|
|
837
|
+
y("img", {
|
|
829
838
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
|
|
830
839
|
alt: "notification icon"
|
|
831
840
|
})
|
|
832
841
|
], -1)),
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
r.slotContent ? (
|
|
837
|
-
(
|
|
842
|
+
y("div", Nt, [
|
|
843
|
+
y("div", Lt, x(r.title), 1),
|
|
844
|
+
y("div", Vt, x(r.message), 1),
|
|
845
|
+
r.slotContent ? (i(), c("div", Rt, [
|
|
846
|
+
(i(), f(ne(r.slotContent)))
|
|
838
847
|
])) : C("", !0)
|
|
839
848
|
]),
|
|
840
|
-
r.showClose ? (
|
|
849
|
+
r.showClose ? (i(), c("button", {
|
|
841
850
|
key: 0,
|
|
842
851
|
class: "notification-close",
|
|
843
|
-
onClick: (
|
|
844
|
-
}, " × ", 8,
|
|
852
|
+
onClick: (l) => s.closeNotification(r.id)
|
|
853
|
+
}, " × ", 8, zt)) : C("", !0)
|
|
845
854
|
], 2))), 128))
|
|
846
855
|
]),
|
|
847
856
|
_: 1
|
|
848
857
|
})
|
|
849
858
|
]);
|
|
850
859
|
}
|
|
851
|
-
const
|
|
860
|
+
const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.assign({
|
|
852
861
|
name: "MDatePicker"
|
|
853
862
|
}, {
|
|
854
863
|
__name: "DatePicker",
|
|
@@ -858,31 +867,30 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
858
867
|
default: ""
|
|
859
868
|
},
|
|
860
869
|
styleType: {
|
|
861
|
-
type: String
|
|
862
|
-
default: "default"
|
|
870
|
+
type: String
|
|
863
871
|
}
|
|
864
872
|
},
|
|
865
873
|
setup(e) {
|
|
866
|
-
const { mergedAttrs: t, className: n } =
|
|
874
|
+
const { mergedAttrs: t, className: n } = A(
|
|
867
875
|
"mc-datepicker-popper",
|
|
868
876
|
"popperClass"
|
|
869
877
|
);
|
|
870
878
|
return (s, o) => {
|
|
871
|
-
const a =
|
|
872
|
-
return
|
|
873
|
-
class: ["m-datepicker", e.styleType],
|
|
874
|
-
"popper-class":
|
|
879
|
+
const a = ze;
|
|
880
|
+
return i(), f(a, $(I(t), {
|
|
881
|
+
class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
|
|
882
|
+
"popper-class": I(n)
|
|
875
883
|
}), v({ _: 2 }, [
|
|
876
|
-
|
|
877
|
-
name:
|
|
878
|
-
fn:
|
|
879
|
-
|
|
884
|
+
_(s.$slots, (r, l) => ({
|
|
885
|
+
name: l,
|
|
886
|
+
fn: p(() => [
|
|
887
|
+
m(s.$slots, l)
|
|
880
888
|
])
|
|
881
889
|
}))
|
|
882
890
|
]), 1040, ["popper-class", "class"]);
|
|
883
891
|
};
|
|
884
892
|
}
|
|
885
|
-
}),
|
|
893
|
+
}), Gt = [
|
|
886
894
|
"404",
|
|
887
895
|
"billing",
|
|
888
896
|
"cart",
|
|
@@ -899,74 +907,74 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
899
907
|
"subscription",
|
|
900
908
|
"todo",
|
|
901
909
|
"wishlist"
|
|
902
|
-
],
|
|
910
|
+
], Ut = {
|
|
903
911
|
name: "MEmpty"
|
|
904
|
-
},
|
|
912
|
+
}, qt = /* @__PURE__ */ Object.assign(Ut, {
|
|
905
913
|
props: {
|
|
906
914
|
image: {
|
|
907
915
|
type: String,
|
|
908
916
|
default: "orders",
|
|
909
|
-
validator: (e) => e.includes("/") || e.includes("http") ? !0 :
|
|
917
|
+
validator: (e) => e.includes("/") || e.includes("http") ? !0 : Gt.includes(e)
|
|
910
918
|
}
|
|
911
919
|
},
|
|
912
920
|
setup(e) {
|
|
913
|
-
const t = e, n =
|
|
914
|
-
const
|
|
915
|
-
return
|
|
921
|
+
const t = e, n = R(), s = h(() => {
|
|
922
|
+
const l = n, { image: a } = l;
|
|
923
|
+
return D(l, ["image"]);
|
|
916
924
|
}), o = h(() => {
|
|
917
925
|
const { image: a } = t;
|
|
918
|
-
return a.includes("/") || a.includes("http") ? a :
|
|
926
|
+
return a.includes("/") || a.includes("http") ? a : `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/empty/${a}.png`;
|
|
919
927
|
});
|
|
920
928
|
return (a, r) => {
|
|
921
|
-
const
|
|
922
|
-
return
|
|
923
|
-
|
|
924
|
-
name:
|
|
925
|
-
fn:
|
|
926
|
-
|
|
929
|
+
const l = Fe;
|
|
930
|
+
return i(), f(l, $(s.value, { image: o.value }), v({ _: 2 }, [
|
|
931
|
+
_(a.$slots, (d, g) => ({
|
|
932
|
+
name: g,
|
|
933
|
+
fn: p(() => [
|
|
934
|
+
m(a.$slots, g)
|
|
927
935
|
])
|
|
928
936
|
}))
|
|
929
937
|
]), 1040, ["image"]);
|
|
930
938
|
};
|
|
931
939
|
}
|
|
932
|
-
}),
|
|
940
|
+
}), Wt = /* @__PURE__ */ Object.assign({
|
|
933
941
|
name: "MTable"
|
|
934
942
|
}, {
|
|
935
943
|
__name: "Table",
|
|
936
944
|
setup(e) {
|
|
937
945
|
return (t, n) => {
|
|
938
|
-
const s =
|
|
939
|
-
return
|
|
940
|
-
|
|
946
|
+
const s = De;
|
|
947
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
948
|
+
_(t.$slots, (o, a) => ({
|
|
941
949
|
name: a,
|
|
942
|
-
fn:
|
|
943
|
-
|
|
950
|
+
fn: p(() => [
|
|
951
|
+
m(t.$slots, a)
|
|
944
952
|
])
|
|
945
953
|
}))
|
|
946
954
|
]), 1040);
|
|
947
955
|
};
|
|
948
956
|
}
|
|
949
|
-
}),
|
|
957
|
+
}), Ht = /* @__PURE__ */ Object.assign({
|
|
950
958
|
name: "MTableColumn"
|
|
951
959
|
}, {
|
|
952
960
|
__name: "TableColumn",
|
|
953
961
|
setup(e) {
|
|
954
962
|
return (t, n) => {
|
|
955
|
-
const s =
|
|
956
|
-
return
|
|
957
|
-
|
|
963
|
+
const s = Ge;
|
|
964
|
+
return i(), f(s, $(t.$attrs, { class: "m-table-column" }), v({ _: 2 }, [
|
|
965
|
+
_(t.$slots, (o, a) => ({
|
|
958
966
|
name: a,
|
|
959
|
-
fn:
|
|
960
|
-
|
|
967
|
+
fn: p(() => [
|
|
968
|
+
m(t.$slots, a)
|
|
961
969
|
])
|
|
962
970
|
}))
|
|
963
971
|
]), 1040);
|
|
964
972
|
};
|
|
965
973
|
}
|
|
966
|
-
}),
|
|
974
|
+
}), Zt = { class: "m-banner__content" }, Jt = {
|
|
967
975
|
key: 0,
|
|
968
976
|
class: "m-banner__icon"
|
|
969
|
-
},
|
|
977
|
+
}, Qt = { class: "m-banner__text" }, Xt = /* @__PURE__ */ Object.assign({
|
|
970
978
|
name: "MBanner"
|
|
971
979
|
}, {
|
|
972
980
|
__name: "Banner",
|
|
@@ -1030,60 +1038,60 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
1030
1038
|
},
|
|
1031
1039
|
emits: ["close", "update:visible"],
|
|
1032
1040
|
setup(e, { expose: t, emit: n }) {
|
|
1033
|
-
const s =
|
|
1034
|
-
|
|
1041
|
+
const s = ve(), o = e, a = n, r = O(o.visible);
|
|
1042
|
+
V(() => o.visible, (M) => {
|
|
1035
1043
|
r.value = M;
|
|
1036
1044
|
});
|
|
1037
|
-
const
|
|
1045
|
+
const l = h(() => {
|
|
1038
1046
|
const M = {};
|
|
1039
1047
|
return o.backgroundColor && (M.backgroundColor = o.backgroundColor), o.textColor && (M.color = o.textColor), o.borderColor && (M.borderColor = o.borderColor), M;
|
|
1040
|
-
}),
|
|
1048
|
+
}), d = {
|
|
1041
1049
|
info: "info",
|
|
1042
1050
|
success: "check-circle",
|
|
1043
1051
|
warning: "warning",
|
|
1044
1052
|
error: "close-circle"
|
|
1045
1053
|
};
|
|
1046
|
-
h(() => o.icon ||
|
|
1047
|
-
const
|
|
1054
|
+
h(() => o.icon || d[o.type]);
|
|
1055
|
+
const g = () => {
|
|
1048
1056
|
r.value = !1, a("update:visible", !1), a("close");
|
|
1049
1057
|
};
|
|
1050
|
-
return
|
|
1058
|
+
return V(r, (M) => {
|
|
1051
1059
|
M && o.duration > 0 && setTimeout(() => {
|
|
1052
|
-
|
|
1060
|
+
g();
|
|
1053
1061
|
}, o.duration);
|
|
1054
1062
|
}), t({
|
|
1055
|
-
close:
|
|
1056
|
-
}), (M,
|
|
1063
|
+
close: g
|
|
1064
|
+
}), (M, N) => e.visible ? (i(), c("div", {
|
|
1057
1065
|
key: 0,
|
|
1058
|
-
class:
|
|
1066
|
+
class: T(["m-banner", [
|
|
1059
1067
|
`m-banner--${e.type}`,
|
|
1060
1068
|
{
|
|
1061
1069
|
"m-banner--closable": e.closable,
|
|
1062
|
-
"m-banner--with-icon": e.icon ||
|
|
1070
|
+
"m-banner--with-icon": e.icon || I(s).icon
|
|
1063
1071
|
}
|
|
1064
1072
|
]]),
|
|
1065
|
-
style:
|
|
1073
|
+
style: oe(l.value)
|
|
1066
1074
|
}, [
|
|
1067
|
-
|
|
1068
|
-
e.icon ||
|
|
1069
|
-
|
|
1070
|
-
|
|
1075
|
+
y("div", Zt, [
|
|
1076
|
+
e.icon || I(s).icon ? (i(), c("div", Jt, [
|
|
1077
|
+
m(M.$slots, "icon", {}, () => [
|
|
1078
|
+
L(Z, {
|
|
1071
1079
|
name: e.icon,
|
|
1072
1080
|
size: e.iconSize
|
|
1073
1081
|
}, null, 8, ["name", "size"])
|
|
1074
1082
|
], !0)
|
|
1075
1083
|
])) : C("", !0),
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1084
|
+
y("div", Qt, [
|
|
1085
|
+
m(M.$slots, "default", {}, () => [
|
|
1086
|
+
ae(x(e.content), 1)
|
|
1079
1087
|
], !0)
|
|
1080
1088
|
]),
|
|
1081
|
-
e.closable ? (
|
|
1089
|
+
e.closable ? (i(), c("div", {
|
|
1082
1090
|
key: 1,
|
|
1083
1091
|
class: "m-banner__close",
|
|
1084
|
-
onClick:
|
|
1092
|
+
onClick: g
|
|
1085
1093
|
}, [
|
|
1086
|
-
|
|
1094
|
+
L(Z, {
|
|
1087
1095
|
name: "lucide-x",
|
|
1088
1096
|
size: e.closeIconSize
|
|
1089
1097
|
}, null, 8, ["size"])
|
|
@@ -1091,7 +1099,7 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
1091
1099
|
])
|
|
1092
1100
|
], 6)) : C("", !0);
|
|
1093
1101
|
}
|
|
1094
|
-
}),
|
|
1102
|
+
}), Yt = /* @__PURE__ */ S(Xt, [["__scopeId", "data-v-6543ff81"]]), Kt = {
|
|
1095
1103
|
name: "MTabs",
|
|
1096
1104
|
props: {
|
|
1097
1105
|
modelValue: {
|
|
@@ -1110,18 +1118,18 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
1110
1118
|
},
|
|
1111
1119
|
emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
|
|
1112
1120
|
setup(e, { emit: t }) {
|
|
1113
|
-
const n =
|
|
1114
|
-
|
|
1121
|
+
const n = O(null), s = O([]), o = O(e.modelValue), a = O({ width: "0px", left: "0px" }), r = () => {
|
|
1122
|
+
he(() => {
|
|
1115
1123
|
if (!n.value || s.value.length === 0) {
|
|
1116
1124
|
a.value = { width: "0px", left: "0px" };
|
|
1117
1125
|
return;
|
|
1118
1126
|
}
|
|
1119
|
-
const
|
|
1120
|
-
if (!
|
|
1127
|
+
const b = o.value;
|
|
1128
|
+
if (!b) {
|
|
1121
1129
|
a.value = { width: "0px", left: "0px" };
|
|
1122
1130
|
return;
|
|
1123
1131
|
}
|
|
1124
|
-
const k = s.value.findIndex((
|
|
1132
|
+
const k = s.value.findIndex((pe) => pe.name === b);
|
|
1125
1133
|
if (k === -1) {
|
|
1126
1134
|
a.value = { width: "0px", left: "0px" };
|
|
1127
1135
|
return;
|
|
@@ -1131,41 +1139,41 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
1131
1139
|
a.value = { width: "0px", left: "0px" };
|
|
1132
1140
|
return;
|
|
1133
1141
|
}
|
|
1134
|
-
const
|
|
1142
|
+
const me = W.offsetLeft + W.offsetWidth / 2 - 8;
|
|
1135
1143
|
a.value = {
|
|
1136
1144
|
width: "16px",
|
|
1137
|
-
left: `${
|
|
1145
|
+
left: `${me}px`
|
|
1138
1146
|
};
|
|
1139
1147
|
});
|
|
1140
|
-
},
|
|
1141
|
-
if (
|
|
1148
|
+
}, l = (b) => {
|
|
1149
|
+
if (b === o.value) return;
|
|
1142
1150
|
const k = o.value;
|
|
1143
|
-
o.value =
|
|
1144
|
-
},
|
|
1145
|
-
t("tab-remove",
|
|
1146
|
-
},
|
|
1151
|
+
o.value = b, t("update:modelValue", b), t("tab-click", b), t("tab-change", b, k), r();
|
|
1152
|
+
}, d = (b) => {
|
|
1153
|
+
t("tab-remove", b), t("edit", b, "remove");
|
|
1154
|
+
}, g = () => {
|
|
1147
1155
|
t("tab-add"), t("edit", null, "add");
|
|
1148
|
-
}, M = (
|
|
1149
|
-
const k = s.value.findIndex((z) => z.name ===
|
|
1150
|
-
k === -1 ? s.value.push(
|
|
1151
|
-
},
|
|
1152
|
-
const k = s.value.findIndex((z) => z.name ===
|
|
1156
|
+
}, M = (b) => {
|
|
1157
|
+
const k = s.value.findIndex((z) => z.name === b.name);
|
|
1158
|
+
k === -1 ? s.value.push(b) : s.value[k] = b;
|
|
1159
|
+
}, N = (b) => {
|
|
1160
|
+
const k = s.value.findIndex((z) => z.name === b);
|
|
1153
1161
|
k > -1 && s.value.splice(k, 1);
|
|
1154
1162
|
};
|
|
1155
|
-
return
|
|
1163
|
+
return re("tabsContext", {
|
|
1156
1164
|
activeTab: o,
|
|
1157
1165
|
registerTab: M,
|
|
1158
|
-
unregisterTab:
|
|
1159
|
-
handleTabRemove:
|
|
1160
|
-
handleTabAdd:
|
|
1161
|
-
}),
|
|
1162
|
-
|
|
1163
|
-
}),
|
|
1166
|
+
unregisterTab: N,
|
|
1167
|
+
handleTabRemove: d,
|
|
1168
|
+
handleTabAdd: g
|
|
1169
|
+
}), V(() => e.modelValue, (b, k) => {
|
|
1170
|
+
b !== o.value && (o.value = b, t("tab-change", b, k), r());
|
|
1171
|
+
}), V(s, () => {
|
|
1164
1172
|
r();
|
|
1165
|
-
}, { deep: !0 }),
|
|
1173
|
+
}, { deep: !0 }), le(() => {
|
|
1166
1174
|
if (!o.value && s.value.length > 0) {
|
|
1167
|
-
const
|
|
1168
|
-
o.value =
|
|
1175
|
+
const b = s.value[0];
|
|
1176
|
+
o.value = b.name, t("update:modelValue", o.value);
|
|
1169
1177
|
}
|
|
1170
1178
|
r();
|
|
1171
1179
|
}), {
|
|
@@ -1173,45 +1181,45 @@ const fe = /* @__PURE__ */ T(Vt, [["render", Ft]]), Ut = /* @__PURE__ */ Object.
|
|
|
1173
1181
|
tabs: s,
|
|
1174
1182
|
activeTab: o,
|
|
1175
1183
|
activeBarStyle: a,
|
|
1176
|
-
handleTabClick:
|
|
1177
|
-
handleTabRemove:
|
|
1178
|
-
handleTabAdd:
|
|
1184
|
+
handleTabClick: l,
|
|
1185
|
+
handleTabRemove: d,
|
|
1186
|
+
handleTabAdd: g,
|
|
1179
1187
|
registerTab: M,
|
|
1180
|
-
unregisterTab:
|
|
1188
|
+
unregisterTab: N,
|
|
1181
1189
|
updateActiveBarPosition: r
|
|
1182
1190
|
};
|
|
1183
1191
|
}
|
|
1184
|
-
},
|
|
1192
|
+
}, es = { class: "m-tabs__header" }, ts = {
|
|
1185
1193
|
class: "m-tabs__nav",
|
|
1186
1194
|
ref: "navRef"
|
|
1187
|
-
},
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1190
|
-
class:
|
|
1195
|
+
}, ss = ["onClick"], ns = { class: "m-tabs__content" };
|
|
1196
|
+
function os(e, t, n, s, o, a) {
|
|
1197
|
+
return i(), c("div", {
|
|
1198
|
+
class: T(["m-tabs", { "style-solid": n.styleType === "solid" }])
|
|
1191
1199
|
}, [
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
(
|
|
1200
|
+
y("div", es, [
|
|
1201
|
+
y("div", ts, [
|
|
1202
|
+
(i(!0), c(j, null, _(s.tabs, (r, l) => (i(), c("div", {
|
|
1195
1203
|
key: r.name,
|
|
1196
|
-
class:
|
|
1204
|
+
class: T([
|
|
1197
1205
|
"m-tabs__item",
|
|
1198
1206
|
{ "is-active": s.activeTab === r.name }
|
|
1199
1207
|
]),
|
|
1200
|
-
onClick: (
|
|
1201
|
-
},
|
|
1202
|
-
n.styleType !== "solid" ? (
|
|
1208
|
+
onClick: (d) => s.handleTabClick(r.name)
|
|
1209
|
+
}, x(r.label), 11, ss))), 128)),
|
|
1210
|
+
n.styleType !== "solid" ? (i(), c("div", {
|
|
1203
1211
|
key: 0,
|
|
1204
1212
|
class: "m-tabs__active-bar",
|
|
1205
|
-
style:
|
|
1213
|
+
style: oe(s.activeBarStyle)
|
|
1206
1214
|
}, null, 4)) : C("", !0)
|
|
1207
1215
|
], 512)
|
|
1208
1216
|
]),
|
|
1209
|
-
|
|
1210
|
-
|
|
1217
|
+
y("div", ns, [
|
|
1218
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
1211
1219
|
])
|
|
1212
1220
|
], 2);
|
|
1213
1221
|
}
|
|
1214
|
-
const
|
|
1222
|
+
const as = /* @__PURE__ */ S(Kt, [["render", os], ["__scopeId", "data-v-c0a2c4d8"]]), rs = {
|
|
1215
1223
|
name: "MTabPane",
|
|
1216
1224
|
props: {
|
|
1217
1225
|
label: {
|
|
@@ -1232,8 +1240,8 @@ const cs = /* @__PURE__ */ T(ts, [["render", rs], ["__scopeId", "data-v-37dc138d
|
|
|
1232
1240
|
}
|
|
1233
1241
|
},
|
|
1234
1242
|
setup(e) {
|
|
1235
|
-
const t =
|
|
1236
|
-
return
|
|
1243
|
+
const t = ie("tabsContext"), n = h(() => e.name || e.label), s = h(() => t.activeTab.value === n.value);
|
|
1244
|
+
return le(() => {
|
|
1237
1245
|
const o = {
|
|
1238
1246
|
label: e.label,
|
|
1239
1247
|
name: n.value,
|
|
@@ -1241,7 +1249,7 @@ const cs = /* @__PURE__ */ T(ts, [["render", rs], ["__scopeId", "data-v-37dc138d
|
|
|
1241
1249
|
closable: e.closable
|
|
1242
1250
|
};
|
|
1243
1251
|
t.registerTab(o);
|
|
1244
|
-
}),
|
|
1252
|
+
}), Me(() => {
|
|
1245
1253
|
t.unregisterTab(n.value);
|
|
1246
1254
|
}), {
|
|
1247
1255
|
isActive: s,
|
|
@@ -1249,73 +1257,16 @@ const cs = /* @__PURE__ */ T(ts, [["render", rs], ["__scopeId", "data-v-37dc138d
|
|
|
1249
1257
|
};
|
|
1250
1258
|
}
|
|
1251
1259
|
};
|
|
1252
|
-
function
|
|
1253
|
-
return
|
|
1254
|
-
class:
|
|
1260
|
+
function ls(e, t, n, s, o, a) {
|
|
1261
|
+
return ye((i(), c("div", {
|
|
1262
|
+
class: T(["m-tab-pane", { "is-active": s.isActive }])
|
|
1255
1263
|
}, [
|
|
1256
|
-
|
|
1264
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
1257
1265
|
], 2)), [
|
|
1258
|
-
[
|
|
1266
|
+
[$e, s.isActive]
|
|
1259
1267
|
]);
|
|
1260
1268
|
}
|
|
1261
|
-
const
|
|
1262
|
-
name: "MTabCard"
|
|
1263
|
-
}, {
|
|
1264
|
-
__name: "TabCard",
|
|
1265
|
-
props: {
|
|
1266
|
-
modelValue: {
|
|
1267
|
-
type: [String, Number],
|
|
1268
|
-
default: ""
|
|
1269
|
-
},
|
|
1270
|
-
disabled: {
|
|
1271
|
-
type: Boolean,
|
|
1272
|
-
default: !1
|
|
1273
|
-
},
|
|
1274
|
-
options: {
|
|
1275
|
-
type: Array,
|
|
1276
|
-
default: () => []
|
|
1277
|
-
}
|
|
1278
|
-
},
|
|
1279
|
-
emits: ["update:modelValue", "change", "tab-click"],
|
|
1280
|
-
setup(e, { emit: t }) {
|
|
1281
|
-
const n = e, s = t;
|
|
1282
|
-
P();
|
|
1283
|
-
const o = w(n.modelValue), a = h(() => n.options.map((c) => typeof c == "string" ? { label: c, name: c, disabled: !1 } : {
|
|
1284
|
-
label: c.label || c.name || "",
|
|
1285
|
-
name: c.name || c.label || "",
|
|
1286
|
-
disabled: c.disabled || !1
|
|
1287
|
-
})), r = (c, u) => {
|
|
1288
|
-
if (u || n.disabled || c === o.value)
|
|
1289
|
-
return;
|
|
1290
|
-
const p = o.value;
|
|
1291
|
-
o.value = c, s("update:modelValue", c), s("change", c, p), s("tab-click", c);
|
|
1292
|
-
};
|
|
1293
|
-
return A(() => n.modelValue, (c) => {
|
|
1294
|
-
c !== o.value && (o.value = c);
|
|
1295
|
-
}), Q("tabCardContext", {
|
|
1296
|
-
activeTab: o,
|
|
1297
|
-
handleTabClick: r
|
|
1298
|
-
}), (c, u) => (l(), i("div", {
|
|
1299
|
-
class: S(["m-tab-card", { "is-disabled": e.disabled }])
|
|
1300
|
-
}, [
|
|
1301
|
-
$("div", ds, [
|
|
1302
|
-
(l(!0), i(L, null, b(a.value, (p, M) => (l(), i("div", {
|
|
1303
|
-
key: p.name,
|
|
1304
|
-
class: S([
|
|
1305
|
-
"m-tab-card__item",
|
|
1306
|
-
{
|
|
1307
|
-
"is-active": o.value === p.name,
|
|
1308
|
-
"is-disabled": p.disabled
|
|
1309
|
-
}
|
|
1310
|
-
]),
|
|
1311
|
-
onClick: (R) => r(p.name, p.disabled)
|
|
1312
|
-
}, [
|
|
1313
|
-
$("span", ps, B(p.label), 1)
|
|
1314
|
-
], 10, ms))), 128))
|
|
1315
|
-
])
|
|
1316
|
-
], 2));
|
|
1317
|
-
}
|
|
1318
|
-
}), _s = /* @__PURE__ */ T(fs, [["__scopeId", "data-v-dd55f784"]]), bs = { class: "m-tab-card-item__text" }, gs = /* @__PURE__ */ Object.assign({
|
|
1269
|
+
const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-92dbedb7"]]), cs = { class: "m-tab-card-item__text" }, us = /* @__PURE__ */ Object.assign({
|
|
1319
1270
|
name: "MTabCardItem"
|
|
1320
1271
|
}, {
|
|
1321
1272
|
__name: "TabCardItem",
|
|
@@ -1335,11 +1286,11 @@ const us = /* @__PURE__ */ T(ls, [["render", is], ["__scopeId", "data-v-31f89b3b
|
|
|
1335
1286
|
},
|
|
1336
1287
|
emits: ["click"],
|
|
1337
1288
|
setup(e, { emit: t }) {
|
|
1338
|
-
const n = e, s = t, o =
|
|
1289
|
+
const n = e, s = t, o = ie("tabCardContext"), a = h(() => o.activeTab.value === n.name), r = () => {
|
|
1339
1290
|
n.disabled || (o.handleTabClick(n.name, n.disabled), s("click", n.name));
|
|
1340
1291
|
};
|
|
1341
|
-
return (
|
|
1342
|
-
class:
|
|
1292
|
+
return (l, d) => (i(), c("div", {
|
|
1293
|
+
class: T([
|
|
1343
1294
|
"m-tab-card-item",
|
|
1344
1295
|
{
|
|
1345
1296
|
"is-active": a.value,
|
|
@@ -1348,136 +1299,133 @@ const us = /* @__PURE__ */ T(ls, [["render", is], ["__scopeId", "data-v-31f89b3b
|
|
|
1348
1299
|
]),
|
|
1349
1300
|
onClick: r
|
|
1350
1301
|
}, [
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1302
|
+
y("span", cs, [
|
|
1303
|
+
m(l.$slots, "default", {}, () => [
|
|
1304
|
+
ae(x(e.label), 1)
|
|
1354
1305
|
], !0)
|
|
1355
1306
|
])
|
|
1356
1307
|
], 2));
|
|
1357
1308
|
}
|
|
1358
|
-
}),
|
|
1359
|
-
|
|
1360
|
-
"aria-label": "Breadcrumb"
|
|
1361
|
-
}, ys = /* @__PURE__ */ Object.assign({
|
|
1362
|
-
name: "MBreadcrumb"
|
|
1309
|
+
}), de = /* @__PURE__ */ S(us, [["__scopeId", "data-v-27e448d5"]]), ds = { class: "m-tab-card__container" }, ms = /* @__PURE__ */ Object.assign({
|
|
1310
|
+
name: "MTabCard"
|
|
1363
1311
|
}, {
|
|
1364
|
-
__name: "
|
|
1312
|
+
__name: "TabCard",
|
|
1365
1313
|
props: {
|
|
1366
|
-
|
|
1367
|
-
type: String,
|
|
1368
|
-
default: "
|
|
1314
|
+
modelValue: {
|
|
1315
|
+
type: [String, Number],
|
|
1316
|
+
default: ""
|
|
1369
1317
|
},
|
|
1370
|
-
|
|
1371
|
-
type:
|
|
1372
|
-
default:
|
|
1318
|
+
disabled: {
|
|
1319
|
+
type: Boolean,
|
|
1320
|
+
default: !1
|
|
1321
|
+
},
|
|
1322
|
+
options: {
|
|
1323
|
+
type: Array,
|
|
1324
|
+
default: () => []
|
|
1373
1325
|
}
|
|
1374
1326
|
},
|
|
1327
|
+
emits: ["update:modelValue", "change", "tab-click"],
|
|
1328
|
+
setup(e, { emit: t }) {
|
|
1329
|
+
const n = e, s = t;
|
|
1330
|
+
A();
|
|
1331
|
+
const o = O(n.modelValue), a = h(() => n.options.map((l) => typeof l == "string" ? { label: l, name: l, disabled: !1 } : {
|
|
1332
|
+
label: l.label || l.name || "",
|
|
1333
|
+
name: l.name || l.label || "",
|
|
1334
|
+
disabled: l.disabled || !1
|
|
1335
|
+
})), r = (l, d) => {
|
|
1336
|
+
if (d || n.disabled || l === o.value)
|
|
1337
|
+
return;
|
|
1338
|
+
const g = o.value;
|
|
1339
|
+
o.value = l, s("update:modelValue", l), s("change", l, g), s("tab-click", l);
|
|
1340
|
+
};
|
|
1341
|
+
return V(() => n.modelValue, (l) => {
|
|
1342
|
+
l !== o.value && (o.value = l);
|
|
1343
|
+
}), re("tabCardContext", {
|
|
1344
|
+
activeTab: o,
|
|
1345
|
+
handleTabClick: r
|
|
1346
|
+
}), (l, d) => (i(), c("div", {
|
|
1347
|
+
class: T(["m-tab-card", { "is-disabled": e.disabled }])
|
|
1348
|
+
}, [
|
|
1349
|
+
y("div", ds, [
|
|
1350
|
+
(i(!0), c(j, null, _(a.value, (g, M) => (i(), f(de, {
|
|
1351
|
+
key: g.name,
|
|
1352
|
+
name: g.name,
|
|
1353
|
+
label: g.label,
|
|
1354
|
+
disabled: g.disabled
|
|
1355
|
+
}, null, 8, ["name", "label", "disabled"]))), 128))
|
|
1356
|
+
])
|
|
1357
|
+
], 2));
|
|
1358
|
+
}
|
|
1359
|
+
}), ps = /* @__PURE__ */ S(ms, [["__scopeId", "data-v-da12e61c"]]), fs = {
|
|
1360
|
+
class: "breadcrumb-separator-icon",
|
|
1361
|
+
width: "6",
|
|
1362
|
+
height: "10",
|
|
1363
|
+
viewBox: "0 0 6 10",
|
|
1364
|
+
fill: "none",
|
|
1365
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1366
|
+
}, _s = /* @__PURE__ */ Object.assign({
|
|
1367
|
+
name: "BreadcrumbSeparator"
|
|
1368
|
+
}, {
|
|
1369
|
+
__name: "BreadcrumbSeparator",
|
|
1375
1370
|
setup(e) {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
separator: t.separator,
|
|
1385
|
-
separatorIcon: t.separatorIcon,
|
|
1386
|
-
registerItem: s,
|
|
1387
|
-
unregisterItem: o,
|
|
1388
|
-
isLastItem: a
|
|
1389
|
-
}), (r, c) => (l(), i("nav", hs, [
|
|
1390
|
-
d(r.$slots, "default", {}, void 0, !0)
|
|
1391
|
-
]));
|
|
1371
|
+
return (t, n) => (i(), c("svg", fs, [...n[0] || (n[0] = [
|
|
1372
|
+
y("path", {
|
|
1373
|
+
"fill-rule": "evenodd",
|
|
1374
|
+
"clip-rule": "evenodd",
|
|
1375
|
+
d: "M0.52827 0.529247C0.788619 0.268897 1.21073 0.268897 1.47108 0.529247L5.47108 4.52925C5.73143 4.7896 5.73143 5.21171 5.47108 5.47206L1.47108 9.47206C1.21073 9.73241 0.788619 9.73241 0.52827 9.47206C0.26792 9.21171 0.26792 8.7896 0.52827 8.52925L4.05687 5.00065L0.52827 1.47206C0.26792 1.21171 0.26792 0.789596 0.52827 0.529247Z",
|
|
1376
|
+
fill: "currentColor"
|
|
1377
|
+
}, null, -1)
|
|
1378
|
+
])]));
|
|
1392
1379
|
}
|
|
1393
|
-
}),
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
*/
|
|
1399
|
-
var oe;
|
|
1400
|
-
(function(e) {
|
|
1401
|
-
e.pop = "pop", e.push = "push";
|
|
1402
|
-
})(oe || (oe = {}));
|
|
1403
|
-
var ae;
|
|
1404
|
-
(function(e) {
|
|
1405
|
-
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
1406
|
-
})(ae || (ae = {}));
|
|
1407
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
1408
|
-
var re;
|
|
1409
|
-
(function(e) {
|
|
1410
|
-
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
1411
|
-
})(re || (re = {}));
|
|
1412
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
1413
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
1414
|
-
const Ms = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
1415
|
-
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
1416
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
1417
|
-
function Cs() {
|
|
1418
|
-
return H(Ms);
|
|
1419
|
-
}
|
|
1420
|
-
const ks = { class: "m-breadcrumb__item" }, Is = {
|
|
1421
|
-
key: 1,
|
|
1422
|
-
class: "m-breadcrumb__inner"
|
|
1423
|
-
}, Ss = {
|
|
1424
|
-
key: 2,
|
|
1425
|
-
class: "m-breadcrumb__separator"
|
|
1426
|
-
}, Ts = {
|
|
1427
|
-
key: 3,
|
|
1428
|
-
class: "m-breadcrumb__separator"
|
|
1429
|
-
}, ws = /* @__PURE__ */ Object.assign({
|
|
1430
|
-
name: "MBreadcrumbItem"
|
|
1380
|
+
}), gs = /* @__PURE__ */ S(_s, [["__scopeId", "data-v-d39afcb7"]]), bs = {
|
|
1381
|
+
class: "m-breadcrumb",
|
|
1382
|
+
"aria-label": "Breadcrumb"
|
|
1383
|
+
}, vs = ["onClick"], hs = /* @__PURE__ */ Object.assign({
|
|
1384
|
+
name: "MBreadcrumb"
|
|
1431
1385
|
}, {
|
|
1432
|
-
__name: "
|
|
1386
|
+
__name: "Breadcrumb",
|
|
1433
1387
|
props: {
|
|
1434
|
-
|
|
1435
|
-
type:
|
|
1436
|
-
default:
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
default: !1
|
|
1388
|
+
items: {
|
|
1389
|
+
type: Array,
|
|
1390
|
+
default: () => [],
|
|
1391
|
+
validator: (e) => e.every(
|
|
1392
|
+
(t) => typeof t == "object" && t.label !== void 0
|
|
1393
|
+
)
|
|
1441
1394
|
}
|
|
1442
1395
|
},
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1396
|
+
emits: ["click"],
|
|
1397
|
+
setup(e, { emit: t }) {
|
|
1398
|
+
const n = t, s = (o) => {
|
|
1399
|
+
if (o.to) {
|
|
1400
|
+
if (n("click", o), typeof o.to == "string")
|
|
1401
|
+
o.to.startsWith("http://") || o.to.startsWith("https://") ? window.location.href = o.to : (o.replace ? window.history.replaceState({}, "", o.to) : window.history.pushState({}, "", o.to), window.dispatchEvent(new PopStateEvent("popstate")));
|
|
1402
|
+
else if (typeof o.to == "object" && o.to.path) {
|
|
1403
|
+
const a = o.to.path;
|
|
1404
|
+
o.replace ? window.history.replaceState({}, "", a) : window.history.pushState({}, "", a), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1453
1407
|
};
|
|
1454
|
-
return
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
], 2)) : (l(), i("span", Is, [
|
|
1466
|
-
d(p.$slots, "default", {}, void 0, !0)
|
|
1467
|
-
])),
|
|
1468
|
-
o.value && !r.value ? (l(), i("i", Ss, [
|
|
1469
|
-
(l(), _(K(o.value)))
|
|
1470
|
-
])) : r.value ? C("", !0) : (l(), i("span", Ts, B(s.value), 1))
|
|
1408
|
+
return (o, a) => (i(), c("nav", bs, [
|
|
1409
|
+
(i(!0), c(j, null, _(e.items, (r, l) => (i(), c(j, { key: l }, [
|
|
1410
|
+
y("span", {
|
|
1411
|
+
class: T(["m-breadcrumb__item", { "is-link": r.to }]),
|
|
1412
|
+
onClick: (d) => s(r)
|
|
1413
|
+
}, x(r.label), 11, vs),
|
|
1414
|
+
l < e.items.length - 1 ? (i(), f(gs, {
|
|
1415
|
+
key: 0,
|
|
1416
|
+
class: "m-breadcrumb__separator"
|
|
1417
|
+
})) : C("", !0)
|
|
1418
|
+
], 64))), 128))
|
|
1471
1419
|
]));
|
|
1472
1420
|
}
|
|
1473
|
-
}),
|
|
1474
|
-
function
|
|
1421
|
+
}), ys = /* @__PURE__ */ S(hs, [["__scopeId", "data-v-8657c9f7"]]);
|
|
1422
|
+
function G(e) {
|
|
1475
1423
|
e && e.classList && e.classList.add("mc-ui-override");
|
|
1476
1424
|
}
|
|
1477
|
-
function
|
|
1478
|
-
e && e.$el &&
|
|
1425
|
+
function $s(e) {
|
|
1426
|
+
e && e.$el && G(e.$el);
|
|
1479
1427
|
}
|
|
1480
|
-
function
|
|
1428
|
+
function Ms() {
|
|
1481
1429
|
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
|
|
1482
1430
|
t.forEach((n) => {
|
|
1483
1431
|
n.addedNodes.forEach((s) => {
|
|
@@ -1498,35 +1446,35 @@ function Bs() {
|
|
|
1498
1446
|
subtree: !0
|
|
1499
1447
|
}));
|
|
1500
1448
|
}
|
|
1501
|
-
function
|
|
1449
|
+
function Cs(e = '[class*="el-"]') {
|
|
1502
1450
|
typeof document != "undefined" && document.querySelectorAll(e).forEach((n) => {
|
|
1503
1451
|
const s = n.closest(".mc-ui-override") || n.parentElement;
|
|
1504
1452
|
s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
|
|
1505
1453
|
});
|
|
1506
1454
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return
|
|
1455
|
+
function ks(e) {
|
|
1456
|
+
return E(w({}, e), {
|
|
1509
1457
|
mounted() {
|
|
1510
|
-
|
|
1458
|
+
G(this.$el), e.mounted && e.mounted.call(this);
|
|
1511
1459
|
},
|
|
1512
1460
|
updated() {
|
|
1513
|
-
|
|
1461
|
+
G(this.$el), e.updated && e.updated.call(this);
|
|
1514
1462
|
}
|
|
1515
1463
|
});
|
|
1516
1464
|
}
|
|
1517
|
-
const
|
|
1465
|
+
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1518
1466
|
__proto__: null,
|
|
1519
|
-
addComponentOverride:
|
|
1520
|
-
addOverrideClass:
|
|
1521
|
-
applyGlobalOverride:
|
|
1522
|
-
createOverrideComponent:
|
|
1523
|
-
forceRefreshStyles:
|
|
1524
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1525
|
-
{ id: "global-message-container", component:
|
|
1526
|
-
{ id: "global-notification-container", component:
|
|
1467
|
+
addComponentOverride: $s,
|
|
1468
|
+
addOverrideClass: G,
|
|
1469
|
+
applyGlobalOverride: Ms,
|
|
1470
|
+
createOverrideComponent: ks,
|
|
1471
|
+
forceRefreshStyles: Cs
|
|
1472
|
+
}, Symbol.toStringTag, { value: "Module" })), J = [Z, We, He, Ze, Je, Ye, Ke, et, tt, st, nt, ot, at, rt, ct, pt, ft, bt, ce, ue, Dt, qt, Wt, Ht, Yt, as, is, ps, de, ys], Ss = [
|
|
1473
|
+
{ id: "global-message-container", component: ce },
|
|
1474
|
+
{ id: "global-notification-container", component: ue }
|
|
1527
1475
|
];
|
|
1528
|
-
function
|
|
1529
|
-
return
|
|
1476
|
+
function Ts(n) {
|
|
1477
|
+
return H(this, arguments, function* ({ id: e, component: t }) {
|
|
1530
1478
|
try {
|
|
1531
1479
|
if (document.getElementById(e)) return;
|
|
1532
1480
|
const { createApp: s, h: o } = yield import("vue"), a = document.createElement("div");
|
|
@@ -1538,15 +1486,15 @@ function As(n) {
|
|
|
1538
1486
|
}
|
|
1539
1487
|
});
|
|
1540
1488
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1543
|
-
const e =
|
|
1489
|
+
function Is() {
|
|
1490
|
+
return H(this, null, function* () {
|
|
1491
|
+
const e = Ss.map(Ts);
|
|
1544
1492
|
yield Promise.all(e);
|
|
1545
1493
|
});
|
|
1546
1494
|
}
|
|
1547
|
-
const
|
|
1548
|
-
function
|
|
1549
|
-
const t =
|
|
1495
|
+
const u = {};
|
|
1496
|
+
function Bs(e) {
|
|
1497
|
+
const t = J.map((n) => {
|
|
1550
1498
|
if (n && n.name && typeof n.name == "string") {
|
|
1551
1499
|
let s = n.name.toLowerCase();
|
|
1552
1500
|
return {
|
|
@@ -1558,25 +1506,24 @@ function Ls(e) {
|
|
|
1558
1506
|
mtabpane: "m-tab-pane",
|
|
1559
1507
|
mtabcard: "m-tab-card",
|
|
1560
1508
|
mtabcarditem: "m-tab-card-item",
|
|
1561
|
-
mbreadcrumb: "m-breadcrumb"
|
|
1562
|
-
mbreadcrumbitem: "m-breadcrumb-item"
|
|
1509
|
+
mbreadcrumb: "m-breadcrumb"
|
|
1563
1510
|
}[s] || s.replace(/^m/, "m-");
|
|
1564
1511
|
}
|
|
1565
1512
|
return null;
|
|
1566
1513
|
}).filter(Boolean);
|
|
1567
|
-
Object.entries(
|
|
1514
|
+
Object.entries(ee).forEach(([n, s]) => {
|
|
1568
1515
|
if (s && s.name && typeof s.name == "string" && s.name.startsWith("El")) {
|
|
1569
1516
|
const o = "m-" + s.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1570
1517
|
t.includes(o) || e._context.components[o] || e.component(o, s);
|
|
1571
1518
|
const a = "M" + s.name.slice(2);
|
|
1572
|
-
|
|
1519
|
+
u[a] = s;
|
|
1573
1520
|
}
|
|
1574
1521
|
});
|
|
1575
1522
|
}
|
|
1576
|
-
const
|
|
1577
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1523
|
+
const Os = (e) => {
|
|
1524
|
+
typeof window != "undefined" && Promise.resolve().then(() => ws).then(({ applyGlobalOverride: t }) => {
|
|
1578
1525
|
t();
|
|
1579
|
-
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."),
|
|
1526
|
+
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), J.forEach((t) => {
|
|
1580
1527
|
if (t && t.name && typeof t.name == "string") {
|
|
1581
1528
|
let n = t.name.toLowerCase();
|
|
1582
1529
|
n = {
|
|
@@ -1588,14 +1535,13 @@ const Rs = (e) => {
|
|
|
1588
1535
|
mtabpane: "m-tab-pane",
|
|
1589
1536
|
mtabcard: "m-tab-card",
|
|
1590
1537
|
mtabcarditem: "m-tab-card-item",
|
|
1591
|
-
mbreadcrumb: "m-breadcrumb"
|
|
1592
|
-
mbreadcrumbitem: "m-breadcrumb-item"
|
|
1538
|
+
mbreadcrumb: "m-breadcrumb"
|
|
1593
1539
|
}[n] || n.replace(/^m/, "m-"), e.component(n, t);
|
|
1594
1540
|
}
|
|
1595
|
-
}),
|
|
1541
|
+
}), Bs(e), typeof window != "undefined" && Is();
|
|
1596
1542
|
};
|
|
1597
|
-
function
|
|
1598
|
-
const t = Object.keys(e._context.components || {}), n =
|
|
1543
|
+
function nn(e) {
|
|
1544
|
+
const t = Object.keys(e._context.components || {}), n = J.map((s) => {
|
|
1599
1545
|
if (s && s.name && typeof s.name == "string") {
|
|
1600
1546
|
let o = s.name.toLowerCase();
|
|
1601
1547
|
return {
|
|
@@ -1607,8 +1553,7 @@ function pn(e) {
|
|
|
1607
1553
|
mtabpane: "m-tab-pane",
|
|
1608
1554
|
mtabcard: "m-tab-card",
|
|
1609
1555
|
mtabcarditem: "m-tab-card-item",
|
|
1610
|
-
mbreadcrumb: "m-breadcrumb"
|
|
1611
|
-
mbreadcrumbitem: "m-breadcrumb-item"
|
|
1556
|
+
mbreadcrumb: "m-breadcrumb"
|
|
1612
1557
|
}[o] || o.replace(/^m/, "m-");
|
|
1613
1558
|
}
|
|
1614
1559
|
return null;
|
|
@@ -1621,77 +1566,76 @@ function pn(e) {
|
|
|
1621
1566
|
)
|
|
1622
1567
|
};
|
|
1623
1568
|
}
|
|
1624
|
-
const
|
|
1569
|
+
const on = { install: Os }, an = ee.ElMessageBox, rn = w({}, u), ln = u.MButtonGroup, cn = u.MCarousel, un = u.MCarouselItem, dn = u.MCascader, mn = u.MCascaderPanel, pn = u.MCheckTag, fn = u.MCalendar, _n = u.MTimePicker, gn = u.MDateTimePicker, bn = u.MColorPicker, vn = u.MTransfer, hn = u.MTree, yn = u.MTreeSelect, $n = u.MUpload, Mn = u.MImage, Cn = u.MImageViewer, kn = u.MBacktop, wn = u.MInfiniteScroll, Sn = u.MAffix, Tn = u.MScrollbar, In = u.MResult, Bn = u.MSkeleton, On = u.MLoading, En = u.MSpinner, xn = u.MProgress, Pn = u.MBadge, jn = u.MAvatar, An = u.MImagePreview, Nn = u.MTeleport, Ln = u.MConfigProvider;
|
|
1625
1570
|
export {
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
at as
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
bn as mComponents
|
|
1571
|
+
Sn as MAffix,
|
|
1572
|
+
pt as MAlert,
|
|
1573
|
+
jn as MAvatar,
|
|
1574
|
+
kn as MBacktop,
|
|
1575
|
+
Pn as MBadge,
|
|
1576
|
+
Yt as MBanner,
|
|
1577
|
+
ys as MBreadcrumb,
|
|
1578
|
+
We as MButton,
|
|
1579
|
+
ln as MButtonGroup,
|
|
1580
|
+
fn as MCalendar,
|
|
1581
|
+
cn as MCarousel,
|
|
1582
|
+
un as MCarouselItem,
|
|
1583
|
+
dn as MCascader,
|
|
1584
|
+
mn as MCascaderPanel,
|
|
1585
|
+
pn as MCheckTag,
|
|
1586
|
+
bn as MColorPicker,
|
|
1587
|
+
Ln as MConfigProvider,
|
|
1588
|
+
Dt as MDatePicker,
|
|
1589
|
+
gn as MDateTimePicker,
|
|
1590
|
+
ft as MDialog,
|
|
1591
|
+
qt as MEmpty,
|
|
1592
|
+
Ze as MForm,
|
|
1593
|
+
Je as MFormItem,
|
|
1594
|
+
Z as MIcon,
|
|
1595
|
+
Mn as MImage,
|
|
1596
|
+
An as MImagePreview,
|
|
1597
|
+
Cn as MImageViewer,
|
|
1598
|
+
wn as MInfiniteScroll,
|
|
1599
|
+
He as MInput,
|
|
1600
|
+
On as MLoading,
|
|
1601
|
+
ce as MMessage,
|
|
1602
|
+
an as MMessageBox,
|
|
1603
|
+
ue as MNotifiMessage,
|
|
1604
|
+
bt as MNotification,
|
|
1605
|
+
st as MPagination,
|
|
1606
|
+
xn as MProgress,
|
|
1607
|
+
nt as MRadio,
|
|
1608
|
+
at as MRadioButton,
|
|
1609
|
+
ot as MRadioGroup,
|
|
1610
|
+
In as MResult,
|
|
1611
|
+
Tn as MScrollbar,
|
|
1612
|
+
Ke as MSelect,
|
|
1613
|
+
Bn as MSkeleton,
|
|
1614
|
+
En as MSpinner,
|
|
1615
|
+
rt as MSwitch,
|
|
1616
|
+
ps as MTabCard,
|
|
1617
|
+
de as MTabCardItem,
|
|
1618
|
+
is as MTabPane,
|
|
1619
|
+
Wt as MTable,
|
|
1620
|
+
Ht as MTableColumn,
|
|
1621
|
+
as as MTabs,
|
|
1622
|
+
ct as MTag,
|
|
1623
|
+
Nn as MTeleport,
|
|
1624
|
+
_n as MTimePicker,
|
|
1625
|
+
Ye as MTooltip,
|
|
1626
|
+
vn as MTransfer,
|
|
1627
|
+
hn as MTree,
|
|
1628
|
+
yn as MTreeSelect,
|
|
1629
|
+
$n as MUpload,
|
|
1630
|
+
ht as Message,
|
|
1631
|
+
sn as NotifiMessage,
|
|
1632
|
+
$s as addComponentOverride,
|
|
1633
|
+
G as addOverrideClass,
|
|
1634
|
+
Ms as applyGlobalOverride,
|
|
1635
|
+
nn as checkComponentRegistration,
|
|
1636
|
+
ks as createOverrideComponent,
|
|
1637
|
+
on as default,
|
|
1638
|
+
Cs as forceRefreshStyles,
|
|
1639
|
+
rn as mComponents
|
|
1696
1640
|
};
|
|
1697
1641
|
//# sourceMappingURL=index.mjs.map
|