@mc-markets/ui 1.1.43 → 1.1.45
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/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var Ne = (e, t, n) => new Promise((o, a) => {
|
|
|
37
37
|
});
|
|
38
38
|
import * as pt from "element-plus";
|
|
39
39
|
import { ElForm as nn } from "element-plus";
|
|
40
|
-
import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as y, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as
|
|
40
|
+
import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as y, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Ie, createCommentVNode as N, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as je, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Te, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as K, useSlots as on, watch as V, normalizeStyle as bt, createTextVNode as Ue, provide as Oe, onMounted as ke, nextTick as le, onUnmounted as Ye, withDirectives as xe, vShow as Pe, inject as He, onDeactivated as Ae, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
|
|
41
41
|
import { ElButton as ln, ElInput as cn, ElFormItem as un, ElTooltip as dn, ElSelect as fn, ElOption as mn, ElOptionGroup as pn, ElPagination as vn, ElRadio as gn, ElRadioGroup as _n, ElRadioButton as hn, ElSwitch as bn, ElTag as yn, ElAlert as Cn, ElDialog as $n, ElNotification as Sn, ElDatePicker as En, ElEmpty as Mn, ElTable as Rn, ElTableColumn as wn } from "element-plus/es";
|
|
42
42
|
import "element-plus/es/components/base/style/index";
|
|
43
43
|
import "element-plus/es/components/button/style/index";
|
|
@@ -121,7 +121,7 @@ const G = (e, t) => {
|
|
|
121
121
|
y(r.$slots, "default", {}, void 0, !0)
|
|
122
122
|
], 16));
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
124
|
+
}), ze = /* @__PURE__ */ G(In, [["__scopeId", "data-v-74564eea"]]);
|
|
125
125
|
function L(e = "innerRef", t = {}) {
|
|
126
126
|
const { compatibilityKeys: n = {} } = t, o = _(), a = new Proxy({}, {
|
|
127
127
|
get(l, s) {
|
|
@@ -226,7 +226,7 @@ const Tn = /* @__PURE__ */ Object.assign({
|
|
|
226
226
|
__name: "Form",
|
|
227
227
|
setup(e, { expose: t }) {
|
|
228
228
|
const { innerRef: n, exposedProxy: o } = L("formRef");
|
|
229
|
-
return t(o), (a, l) => (d(), E(
|
|
229
|
+
return t(o), (a, l) => (d(), E(j(nn), S({
|
|
230
230
|
ref_key: "formRef",
|
|
231
231
|
ref: n
|
|
232
232
|
}, a.$attrs, { class: "m-form" }), O({ _: 2 }, [
|
|
@@ -290,7 +290,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
290
290
|
return d(), E(i, S({
|
|
291
291
|
ref_key: "tooltipRef",
|
|
292
292
|
ref: a
|
|
293
|
-
},
|
|
293
|
+
}, j(n), { "popper-class": j(o) }), O({ _: 2 }, [
|
|
294
294
|
M(s.$slots, (c, u) => ({
|
|
295
295
|
name: u,
|
|
296
296
|
fn: $(() => [
|
|
@@ -365,7 +365,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
365
365
|
]), 1040);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
}),
|
|
368
|
+
}), jn = /* @__PURE__ */ Object.assign({
|
|
369
369
|
name: "MPagination"
|
|
370
370
|
}, {
|
|
371
371
|
__name: "Pagination",
|
|
@@ -386,7 +386,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
386
386
|
]), 1040);
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
}),
|
|
389
|
+
}), zn = /* @__PURE__ */ Object.assign({
|
|
390
390
|
name: "MRadio"
|
|
391
391
|
}, {
|
|
392
392
|
__name: "Radio",
|
|
@@ -403,7 +403,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
403
403
|
return d(), E(r, S({
|
|
404
404
|
ref_key: "radioRef",
|
|
405
405
|
ref: o
|
|
406
|
-
},
|
|
406
|
+
}, j(n), { class: "m-radio" }), O({ _: 2 }, [
|
|
407
407
|
M(l.$slots, (i, c) => ({
|
|
408
408
|
name: c,
|
|
409
409
|
fn: $(() => [
|
|
@@ -466,7 +466,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
466
466
|
return d(), E(r, S({
|
|
467
467
|
ref_key: "radioButtonRef",
|
|
468
468
|
ref: o
|
|
469
|
-
},
|
|
469
|
+
}, j(n), { class: "m-radio-button" }), O({ _: 2 }, [
|
|
470
470
|
M(l.$slots, (i, c) => ({
|
|
471
471
|
name: c,
|
|
472
472
|
fn: $(() => [
|
|
@@ -493,8 +493,8 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
493
493
|
return d(), E(i, S({
|
|
494
494
|
ref_key: "switchRef",
|
|
495
495
|
ref: a
|
|
496
|
-
},
|
|
497
|
-
"popper-class":
|
|
496
|
+
}, j(n), {
|
|
497
|
+
"popper-class": j(o),
|
|
498
498
|
class: "m-switch"
|
|
499
499
|
}), O({ _: 2 }, [
|
|
500
500
|
M(s.$slots, (c, u) => ({
|
|
@@ -647,7 +647,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
647
647
|
}),
|
|
648
648
|
emits: /* @__PURE__ */ Re(["close"], ["update:modelValue"]),
|
|
649
649
|
setup(e, { expose: t, emit: n }) {
|
|
650
|
-
const o =
|
|
650
|
+
const o = je(e, "modelValue"), { innerRef: a, exposedProxy: l } = L("dialogRef");
|
|
651
651
|
return t(l), (s, r) => {
|
|
652
652
|
const i = $n;
|
|
653
653
|
return d(), m("div", null, [
|
|
@@ -842,7 +842,7 @@ function _o(e, t, n, o, a, l) {
|
|
|
842
842
|
}
|
|
843
843
|
const St = /* @__PURE__ */ G(ao, [["render", _o]]), se = _([]);
|
|
844
844
|
let ho = 0;
|
|
845
|
-
const
|
|
845
|
+
const Ha = {
|
|
846
846
|
// 默认配置
|
|
847
847
|
defaultOptions: {
|
|
848
848
|
title: "",
|
|
@@ -959,9 +959,9 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
|
|
|
959
959
|
return d(), E(i, S({
|
|
960
960
|
ref_key: "datePickerRef",
|
|
961
961
|
ref: a
|
|
962
|
-
},
|
|
962
|
+
}, j(n), {
|
|
963
963
|
class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
|
|
964
|
-
"popper-class":
|
|
964
|
+
"popper-class": j(o)
|
|
965
965
|
}), O({ _: 2 }, [
|
|
966
966
|
M(s.$slots, (c, u) => ({
|
|
967
967
|
name: u,
|
|
@@ -1156,15 +1156,15 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
|
|
|
1156
1156
|
`m-banner--${e.type}`,
|
|
1157
1157
|
{
|
|
1158
1158
|
"m-banner--closable": e.closable,
|
|
1159
|
-
"m-banner--with-icon": e.icon ||
|
|
1159
|
+
"m-banner--with-icon": e.icon || j(o).icon
|
|
1160
1160
|
}
|
|
1161
1161
|
]]),
|
|
1162
1162
|
style: bt(r.value)
|
|
1163
1163
|
}, [
|
|
1164
1164
|
C("div", Po, [
|
|
1165
|
-
e.icon ||
|
|
1165
|
+
e.icon || j(o).icon ? (d(), m("div", Ao, [
|
|
1166
1166
|
y(u.$slots, "icon", {}, () => [
|
|
1167
|
-
x(
|
|
1167
|
+
x(ze, {
|
|
1168
1168
|
name: e.icon,
|
|
1169
1169
|
size: e.iconSize
|
|
1170
1170
|
}, null, 8, ["name", "size"])
|
|
@@ -1180,7 +1180,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
|
|
|
1180
1180
|
class: "m-banner__close",
|
|
1181
1181
|
onClick: c
|
|
1182
1182
|
}, [
|
|
1183
|
-
x(
|
|
1183
|
+
x(ze, {
|
|
1184
1184
|
name: "lucide-x",
|
|
1185
1185
|
size: e.closeIconSize
|
|
1186
1186
|
}, null, 8, ["size"])
|
|
@@ -1216,7 +1216,7 @@ function Fo() {
|
|
|
1216
1216
|
subtree: !0
|
|
1217
1217
|
}));
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function jo(e = {}) {
|
|
1220
1220
|
if (typeof window == "undefined" || typeof document == "undefined") return () => {
|
|
1221
1221
|
};
|
|
1222
1222
|
const {
|
|
@@ -1239,7 +1239,7 @@ function zo(e = {}) {
|
|
|
1239
1239
|
window.removeEventListener("resize", i);
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function zo(e = '[class*="el-"]') {
|
|
1243
1243
|
typeof document != "undefined" && document.querySelectorAll(e).forEach((n) => {
|
|
1244
1244
|
const o = n.closest(".mc-ui-override") || n.parentElement;
|
|
1245
1245
|
o && !o.classList.contains("mc-ui-override") && o.classList.add("mc-ui-override");
|
|
@@ -1269,8 +1269,8 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1269
1269
|
addOverrideClass: we,
|
|
1270
1270
|
applyGlobalOverride: Fo,
|
|
1271
1271
|
createOverrideComponent: Vo,
|
|
1272
|
-
enableH5Override:
|
|
1273
|
-
forceRefreshStyles:
|
|
1272
|
+
enableH5Override: jo,
|
|
1273
|
+
forceRefreshStyles: zo,
|
|
1274
1274
|
isH5: Ve
|
|
1275
1275
|
}, Symbol.toStringTag, { value: "Module" })), D = {
|
|
1276
1276
|
// 滚动相关
|
|
@@ -1322,7 +1322,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1322
1322
|
emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
|
|
1323
1323
|
setup(e, { emit: t, slots: n }) {
|
|
1324
1324
|
const o = _(null), a = _(null), l = _(null), s = _([]), r = _(e.modelValue), i = _(0), c = _(0), u = _([]), v = _(!1), h = _(!1), k = _({ width: "0px", left: "0px" });
|
|
1325
|
-
let B = null,
|
|
1325
|
+
let B = null, z = null, F = null, te = !1, ue = !1, X = null;
|
|
1326
1326
|
const de = () => {
|
|
1327
1327
|
k.value = { width: "0px", left: "0px" };
|
|
1328
1328
|
}, be = (f) => {
|
|
@@ -1423,11 +1423,11 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1423
1423
|
}), V(() => e.modelValue, (f, p) => {
|
|
1424
1424
|
f !== r.value && (r.value = f, t("tab-change", f, p), b());
|
|
1425
1425
|
});
|
|
1426
|
-
const
|
|
1426
|
+
const jt = (f) => {
|
|
1427
1427
|
if (c.value === 0) return !1;
|
|
1428
1428
|
const p = f.length, w = f.map((T) => String(T.name)), P = p !== c.value, I = p === c.value && w.some((T, A) => A >= u.value.length || T !== u.value[A]);
|
|
1429
1429
|
return P || I;
|
|
1430
|
-
},
|
|
1430
|
+
}, zt = () => {
|
|
1431
1431
|
i.value++, ue = !0, le(() => {
|
|
1432
1432
|
setTimeout(() => {
|
|
1433
1433
|
Xe(), s.value.length > 0 && (c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), me()), ue = !1;
|
|
@@ -1436,8 +1436,8 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1436
1436
|
};
|
|
1437
1437
|
V(s, (f) => {
|
|
1438
1438
|
if (!(ue || f.length === 0)) {
|
|
1439
|
-
if (
|
|
1440
|
-
|
|
1439
|
+
if (jt(f)) {
|
|
1440
|
+
zt();
|
|
1441
1441
|
return;
|
|
1442
1442
|
}
|
|
1443
1443
|
c.value = f.length, u.value = f.map((p) => String(p.name)), me();
|
|
@@ -1453,10 +1453,10 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1453
1453
|
const A = Math.max(0, P - I);
|
|
1454
1454
|
v.value = w > D.SCROLL_PRECISION, h.value = w < A - D.SCROLL_PRECISION;
|
|
1455
1455
|
}, Qe = () => {
|
|
1456
|
-
|
|
1456
|
+
z && (cancelAnimationFrame(z), z = null), F && (clearTimeout(F), F = null);
|
|
1457
1457
|
}, Vt = () => {
|
|
1458
|
-
J(), te || b(!1), Qe(),
|
|
1459
|
-
J(),
|
|
1458
|
+
J(), te || b(!1), Qe(), z = requestAnimationFrame(() => {
|
|
1459
|
+
J(), z = null;
|
|
1460
1460
|
}), F = setTimeout(() => {
|
|
1461
1461
|
J(), te && (te = !1), F = null;
|
|
1462
1462
|
}, D.SCROLL_DEBOUNCE);
|
|
@@ -1808,7 +1808,7 @@ function Ot(e, t, n = {}) {
|
|
|
1808
1808
|
const i = (v) => {
|
|
1809
1809
|
if (s)
|
|
1810
1810
|
return;
|
|
1811
|
-
const h =
|
|
1811
|
+
const h = j(v);
|
|
1812
1812
|
h && !r && (h.addEventListener(e, t, {
|
|
1813
1813
|
capture: l,
|
|
1814
1814
|
passive: a
|
|
@@ -1816,7 +1816,7 @@ function Ot(e, t, n = {}) {
|
|
|
1816
1816
|
}, c = (v) => {
|
|
1817
1817
|
if (s)
|
|
1818
1818
|
return;
|
|
1819
|
-
const h =
|
|
1819
|
+
const h = j(v);
|
|
1820
1820
|
h && r && (h.removeEventListener(e, t, l), r = !1);
|
|
1821
1821
|
};
|
|
1822
1822
|
Ye(() => c(o)), Ae(() => c(o)), Tt(() => i(o));
|
|
@@ -2074,9 +2074,9 @@ var Ds = ge({
|
|
|
2074
2074
|
});
|
|
2075
2075
|
const Ns = Le(Ds);
|
|
2076
2076
|
let At = 2e3;
|
|
2077
|
-
const Fs = () => ++At,
|
|
2077
|
+
const Fs = () => ++At, js = (e) => {
|
|
2078
2078
|
At = e;
|
|
2079
|
-
}, [Lt,
|
|
2079
|
+
}, [Lt, zs] = he("config-provider"), Bt = Symbol(Lt), Vs = {
|
|
2080
2080
|
tag: Z("div"),
|
|
2081
2081
|
theme: Z("light"),
|
|
2082
2082
|
zIndex: Number,
|
|
@@ -2127,9 +2127,9 @@ ge({
|
|
|
2127
2127
|
}), e.themeVarsScope === "global" && Me(n.value, {});
|
|
2128
2128
|
}
|
|
2129
2129
|
return Oe(Bt, e), rn(() => {
|
|
2130
|
-
e.zIndex !== void 0 &&
|
|
2130
|
+
e.zIndex !== void 0 && js(e.zIndex);
|
|
2131
2131
|
}), () => x(e.tag, {
|
|
2132
|
-
class:
|
|
2132
|
+
class: zs(),
|
|
2133
2133
|
style: e.themeVarsScope === "local" ? n.value : void 0
|
|
2134
2134
|
}, {
|
|
2135
2135
|
default: () => {
|
|
@@ -2225,8 +2225,8 @@ function Js() {
|
|
|
2225
2225
|
move: (k) => {
|
|
2226
2226
|
const B = k.touches[0];
|
|
2227
2227
|
n.value = (B.clientX < 0 ? 0 : B.clientX) - e.value, o.value = B.clientY - t.value, a.value = Math.abs(n.value), l.value = Math.abs(o.value);
|
|
2228
|
-
const
|
|
2229
|
-
(!s.value || a.value <
|
|
2228
|
+
const z = 10;
|
|
2229
|
+
(!s.value || a.value < z && l.value < z) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
|
|
2230
2230
|
},
|
|
2231
2231
|
start: (k) => {
|
|
2232
2232
|
u(), e.value = k.touches[0].clientX, t.value = k.touches[0].clientY;
|
|
@@ -2252,9 +2252,9 @@ function Qs(e, t) {
|
|
|
2252
2252
|
const v = n.deltaY.value > 0 ? a : o, h = bs(
|
|
2253
2253
|
u.target,
|
|
2254
2254
|
e.value
|
|
2255
|
-
), { scrollHeight: k, offsetHeight: B, scrollTop:
|
|
2255
|
+
), { scrollHeight: k, offsetHeight: B, scrollTop: z } = h;
|
|
2256
2256
|
let F = "11";
|
|
2257
|
-
|
|
2257
|
+
z === 0 ? F = B >= k ? "00" : "01" : z + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
|
|
2258
2258
|
}, s = () => {
|
|
2259
2259
|
document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", l, { passive: !1 }), ve || document.body.classList.add(dt), ve++;
|
|
2260
2260
|
}, r = () => {
|
|
@@ -2386,7 +2386,7 @@ var la = ge({
|
|
|
2386
2386
|
}
|
|
2387
2387
|
}, B = (b) => {
|
|
2388
2388
|
t("clickCloseIcon", b), v();
|
|
2389
|
-
},
|
|
2389
|
+
}, z = () => {
|
|
2390
2390
|
if (e.closeable)
|
|
2391
2391
|
return x(qs, {
|
|
2392
2392
|
role: "button",
|
|
@@ -2426,7 +2426,7 @@ var la = ge({
|
|
|
2426
2426
|
"van-safe-area-bottom": me
|
|
2427
2427
|
}],
|
|
2428
2428
|
onKeydown: X
|
|
2429
|
-
}, n, ft()), [(b = o.default) == null ? void 0 : b.call(o),
|
|
2429
|
+
}, n, ft()), [(b = o.default) == null ? void 0 : b.call(o), z()]), [[Pe, pe]]);
|
|
2430
2430
|
}), be = () => {
|
|
2431
2431
|
const {
|
|
2432
2432
|
position: b,
|
|
@@ -2464,7 +2464,9 @@ var la = ge({
|
|
|
2464
2464
|
}) : x(H, null, [k(), be()]);
|
|
2465
2465
|
}
|
|
2466
2466
|
});
|
|
2467
|
-
const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { class: "list-container" }, fa = ["onClick"], ma = { class: "label" }, pa = { class: "active-icon" }, va = {
|
|
2467
|
+
const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { class: "list-container" }, fa = ["onClick"], ma = { class: "label" }, pa = { class: "active-icon" }, va = /* @__PURE__ */ Object.assign({
|
|
2468
|
+
name: "MPicker"
|
|
2469
|
+
}, {
|
|
2468
2470
|
__name: "Picker",
|
|
2469
2471
|
props: /* @__PURE__ */ Re({
|
|
2470
2472
|
title: {
|
|
@@ -2490,12 +2492,12 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
|
|
|
2490
2492
|
}),
|
|
2491
2493
|
emits: /* @__PURE__ */ Re(["confirm"], ["update:modelValue", "update:show"]),
|
|
2492
2494
|
setup(e, { emit: t }) {
|
|
2493
|
-
const n = t, o = e, a =
|
|
2495
|
+
const n = t, o = e, a = je(e, "modelValue"), l = je(e, "show"), s = (i) => {
|
|
2494
2496
|
a.value = i[o.columnsFieldNames.value], n("confirm", i), r();
|
|
2495
2497
|
}, r = () => {
|
|
2496
2498
|
l.value = !1;
|
|
2497
2499
|
};
|
|
2498
|
-
return (i, c) => (d(), E(
|
|
2500
|
+
return (i, c) => (d(), E(j(ia), S({
|
|
2499
2501
|
show: l.value,
|
|
2500
2502
|
"onUpdate:show": c[0] || (c[0] = (u) => l.value = u),
|
|
2501
2503
|
round: "",
|
|
@@ -2536,15 +2538,15 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
|
|
|
2536
2538
|
_: 3
|
|
2537
2539
|
}, 16, ["show"]));
|
|
2538
2540
|
}
|
|
2539
|
-
},
|
|
2541
|
+
}), ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-ac0dc874"]]), Nt = [ze, On, kn, xn, Pn, Bn, Dn, Nn, Fn, jn, zn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, Do, qo, Qo, ss, Mt, ds, ga];
|
|
2540
2542
|
function Ft(e) {
|
|
2541
2543
|
return !e || typeof e != "string" || !e.startsWith("M") ? null : "m-" + e.slice(1).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
2542
2544
|
}
|
|
2543
|
-
const
|
|
2545
|
+
const _a = [
|
|
2544
2546
|
{ id: "global-message-container", component: St },
|
|
2545
2547
|
{ id: "global-notification-container", component: Et }
|
|
2546
2548
|
];
|
|
2547
|
-
function
|
|
2549
|
+
function ha(n) {
|
|
2548
2550
|
return Ne(this, arguments, function* ({ id: e, component: t }) {
|
|
2549
2551
|
try {
|
|
2550
2552
|
if (document.getElementById(e)) return;
|
|
@@ -2557,14 +2559,14 @@ function _a(n) {
|
|
|
2557
2559
|
}
|
|
2558
2560
|
});
|
|
2559
2561
|
}
|
|
2560
|
-
function
|
|
2562
|
+
function ba() {
|
|
2561
2563
|
return Ne(this, null, function* () {
|
|
2562
|
-
const e =
|
|
2564
|
+
const e = _a.map(ha);
|
|
2563
2565
|
yield Promise.all(e);
|
|
2564
2566
|
});
|
|
2565
2567
|
}
|
|
2566
2568
|
const g = {};
|
|
2567
|
-
function
|
|
2569
|
+
function ya(e) {
|
|
2568
2570
|
const t = Nt.map((n) => Ft(n == null ? void 0 : n.name)).filter(Boolean);
|
|
2569
2571
|
Object.entries(pt).forEach(([n, o]) => {
|
|
2570
2572
|
if (o && o.name && typeof o.name == "string" && o.name.startsWith("El")) {
|
|
@@ -2575,14 +2577,14 @@ function ba(e) {
|
|
|
2575
2577
|
}
|
|
2576
2578
|
});
|
|
2577
2579
|
}
|
|
2578
|
-
const
|
|
2580
|
+
const Ca = (e) => {
|
|
2579
2581
|
typeof window != "undefined" && Promise.resolve().then(() => Go).then(({ applyGlobalOverride: t, enableH5Override: n }) => {
|
|
2580
2582
|
t(), n({ mode: "auto", breakpoint: 768 });
|
|
2581
2583
|
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Nt.forEach((t) => {
|
|
2582
2584
|
const n = Ft(t == null ? void 0 : t.name);
|
|
2583
2585
|
n && e.component(n, t);
|
|
2584
|
-
}),
|
|
2585
|
-
}, Ka = { install:
|
|
2586
|
+
}), ya(e), typeof window != "undefined" && ba();
|
|
2587
|
+
}, Ka = { install: Ca }, qa = pt.ElMessageBox, Za = W({}, g), Xa = g.MButtonGroup, Ja = g.MCarousel, Qa = g.MCarouselItem, er = g.MCascader, tr = g.MCascaderPanel, nr = g.MCheckTag, or = g.MCalendar, sr = g.MTimePicker, ar = g.MDateTimePicker, rr = g.MColorPicker, lr = g.MTransfer, ir = g.MTree, cr = g.MTreeSelect, ur = g.MUpload, dr = g.MImage, fr = g.MImageViewer, mr = g.MBacktop, pr = g.MInfiniteScroll, vr = g.MAffix, gr = g.MScrollbar, _r = g.MResult, hr = g.MSkeleton, br = g.MLoading, yr = g.MSpinner, Cr = g.MProgress, $r = g.MBadge, Sr = g.MAvatar, Er = g.MImagePreview, Mr = g.MTeleport, Rr = g.MConfigProvider;
|
|
2586
2588
|
export {
|
|
2587
2589
|
vr as MAffix,
|
|
2588
2590
|
Xn as MAlert,
|
|
@@ -2607,7 +2609,7 @@ export {
|
|
|
2607
2609
|
Oo as MEmpty,
|
|
2608
2610
|
xn as MForm,
|
|
2609
2611
|
Pn as MFormItem,
|
|
2610
|
-
|
|
2612
|
+
ze as MIcon,
|
|
2611
2613
|
dr as MImage,
|
|
2612
2614
|
Er as MImagePreview,
|
|
2613
2615
|
fr as MImageViewer,
|
|
@@ -2620,10 +2622,10 @@ export {
|
|
|
2620
2622
|
to as MNotification,
|
|
2621
2623
|
Nn as MOption,
|
|
2622
2624
|
Fn as MOptionGroup,
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
+
jn as MPagination,
|
|
2626
|
+
ga as MPicker,
|
|
2625
2627
|
Cr as MProgress,
|
|
2626
|
-
|
|
2628
|
+
zn as MRadio,
|
|
2627
2629
|
Gn as MRadioButton,
|
|
2628
2630
|
Vn as MRadioGroup,
|
|
2629
2631
|
_r as MResult,
|
|
@@ -2647,14 +2649,14 @@ export {
|
|
|
2647
2649
|
cr as MTreeSelect,
|
|
2648
2650
|
ur as MUpload,
|
|
2649
2651
|
oo as Message,
|
|
2650
|
-
|
|
2652
|
+
Ha as NotifiMessage,
|
|
2651
2653
|
No as addComponentOverride,
|
|
2652
2654
|
we as addOverrideClass,
|
|
2653
2655
|
Fo as applyGlobalOverride,
|
|
2654
2656
|
Vo as createOverrideComponent,
|
|
2655
2657
|
Ka as default,
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
+
jo as enableH5Override,
|
|
2659
|
+
zo as forceRefreshStyles,
|
|
2658
2660
|
Ve as isH5,
|
|
2659
2661
|
Za as mComponents
|
|
2660
2662
|
};
|