@mc-markets/ui 1.1.46 → 1.1.48
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +55 -55
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/packages/components/Picker/Picker.vue +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/index.js"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/index.js"],"names":[],"mappings":";;;;AA2LA,qFAA6D;AAM7D,6BAAqD;AAGrD,+BAA4D;AAC5D,4BAAsD;AACtD,gCAA8D;AAC9D,4BAAsD;AACtD,iCAAgE;AAChE,4BAAsD;AACtD,4BAAsD;AACtD,8BAA0D;AAC1D,kCAAkE;AAClE,+BAA4D;AAC5D,4BAAsD;AACtD,wBAA8C;AAC9C,8BAA0D;AAC1D,0BAAkD;AAClD,yBAAgD;AAChD,+BAA4D;AAC5D,2BAAoD;AACpD,kCAAkE;AAClE,yBAAgD;AAChD,6BAAwD;AACxD,0BAAkD;AAClD,4BAAsD;AACtD,2BAAoD;AACpD,2BAAoD;AACpD,4BAAsD;AACtD,yBAAgD;AAChD,0BAAkD;AAClD,gCAA8D;AAC9D,4BAAsD;AACtD,kCAAkE;AAxFlE,yCAiCC;kBA7JiB,4BAA4B;oBAC1B,gCAAgC;mBACjC,8BAA8B;kBAC/B,4BAA4B;sBACxB,oCAAoC;qBACrC,kCAAkC;oBACnC,gCAAgC;oBAChC,gCAAgC;yBAC3B,0CAA0C;wBAC3C,wCAAwC;mBAC7C,8BAA8B;wBACzB,wCAAwC;yBACvC,0CAA0C;oBAC/C,gCAAgC;iBACnC,0BAA0B;mBACxB,8BAA8B;oBAC7B,gCAAgC;0BAC1B,4CAA4C;qBACpC,kCAAkC;2BACtB,8CAA8C;wBACpE,wCAAwC;mBAC7C,8BAA8B;mBAC9B,8BAA8B;yBACxB,oCAAoC;oBACzC,gCAAgC;kBAClC,4BAA4B;qBACzB,+BAA+B;qBAC/B,kCAAkC;yBAC9B,sCAAsC;wBACvC,wCAAwC;oBAC5C,gCAAgC;uCAhCb,cAAc;wBAoBnB,kCAAkC;8BACtB,8CAA8C"}
|
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ var Se = (e, t) => {
|
|
|
19
19
|
t.indexOf(o) < 0 && st.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var De = (e, t, n) => new Promise((o, a) => {
|
|
23
23
|
var l = (i) => {
|
|
24
24
|
try {
|
|
25
25
|
r(n.next(i));
|
|
@@ -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 h, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Ie, createCommentVNode as
|
|
40
|
+
import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as h, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Ie, createCommentVNode as D, 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";
|
|
@@ -300,7 +300,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
300
300
|
]), 1040, ["popper-class"]);
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
}),
|
|
303
|
+
}), Nn = /* @__PURE__ */ Object.assign({
|
|
304
304
|
name: "MSelect"
|
|
305
305
|
}, {
|
|
306
306
|
__name: "Select",
|
|
@@ -323,7 +323,7 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
323
323
|
]), 1040, ["class"]);
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Dn = /* @__PURE__ */ Object.assign({
|
|
327
327
|
name: "MOption"
|
|
328
328
|
}, {
|
|
329
329
|
__name: "Option",
|
|
@@ -555,14 +555,14 @@ const Bn = /* @__PURE__ */ Object.assign({
|
|
|
555
555
|
])) : l.value ? (d(), m("i", {
|
|
556
556
|
key: 1,
|
|
557
557
|
class: U(["prefixIcon", ["iconfont", l.value]])
|
|
558
|
-
}, null, 2)) :
|
|
558
|
+
}, null, 2)) : D("", !0),
|
|
559
559
|
C("div", null, [
|
|
560
560
|
h(c.$slots, k)
|
|
561
561
|
]),
|
|
562
562
|
s.value ? (d(), m("i", {
|
|
563
563
|
key: 2,
|
|
564
564
|
class: U(["suffixIcon", ["iconfont", s.value]])
|
|
565
|
-
}, null, 2)) :
|
|
565
|
+
}, null, 2)) : D("", !0)
|
|
566
566
|
])
|
|
567
567
|
}))
|
|
568
568
|
]), 1040, ["type", "class"]);
|
|
@@ -820,20 +820,20 @@ function _o(e, t, n, o, a, l) {
|
|
|
820
820
|
src: s.customIcon,
|
|
821
821
|
alt: "custom icon",
|
|
822
822
|
class: "message-icon-img"
|
|
823
|
-
}, null, 8, lo)) : s.type === "success" ? (d(), m("img", io)) : s.type === "warning" ? (d(), m("img", co)) : s.type === "error" ? (d(), m("img", uo)) :
|
|
824
|
-
])) :
|
|
823
|
+
}, null, 8, lo)) : s.type === "success" ? (d(), m("img", io)) : s.type === "warning" ? (d(), m("img", co)) : s.type === "error" ? (d(), m("img", uo)) : D("", !0)
|
|
824
|
+
])) : D("", !0),
|
|
825
825
|
C("div", fo, [
|
|
826
826
|
typeof s.message == "function" ? (d(), E(ht(s.message), { key: 0 })) : s.dangerouslyUseHTMLString ? (d(), m("div", {
|
|
827
827
|
key: 1,
|
|
828
828
|
innerHTML: s.message
|
|
829
829
|
}, null, 8, mo)) : (d(), m("span", po, K(s.message), 1)),
|
|
830
|
-
s.repeatNum > 1 ? (d(), m("span", vo, K(s.repeatNum), 1)) :
|
|
830
|
+
s.repeatNum > 1 ? (d(), m("span", vo, K(s.repeatNum), 1)) : D("", !0)
|
|
831
831
|
]),
|
|
832
832
|
s.showClose ? (d(), m("button", {
|
|
833
833
|
key: 1,
|
|
834
834
|
class: "message-close",
|
|
835
835
|
onClick: (r) => o.closeMessage(s.id)
|
|
836
|
-
}, " × ", 8, go)) :
|
|
836
|
+
}, " × ", 8, go)) : D("", !0)
|
|
837
837
|
], 2))), 128))
|
|
838
838
|
]),
|
|
839
839
|
_: 1
|
|
@@ -923,13 +923,13 @@ function Ro(e, t, n, o, a, l) {
|
|
|
923
923
|
C("div", So, K(s.message), 1),
|
|
924
924
|
s.slotContent ? (d(), m("div", Eo, [
|
|
925
925
|
(d(), E(ht(s.slotContent)))
|
|
926
|
-
])) :
|
|
926
|
+
])) : D("", !0)
|
|
927
927
|
]),
|
|
928
928
|
s.showClose ? (d(), m("button", {
|
|
929
929
|
key: 0,
|
|
930
930
|
class: "notification-close",
|
|
931
931
|
onClick: (r) => o.closeNotification(s.id)
|
|
932
|
-
}, " × ", 8, Mo)) :
|
|
932
|
+
}, " × ", 8, Mo)) : D("", !0)
|
|
933
933
|
], 2))), 128))
|
|
934
934
|
]),
|
|
935
935
|
_: 1
|
|
@@ -1169,7 +1169,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
|
|
|
1169
1169
|
size: e.iconSize
|
|
1170
1170
|
}, null, 8, ["name", "size"])
|
|
1171
1171
|
], !0)
|
|
1172
|
-
])) :
|
|
1172
|
+
])) : D("", !0),
|
|
1173
1173
|
C("div", Lo, [
|
|
1174
1174
|
h(u.$slots, "default", {}, () => [
|
|
1175
1175
|
Ue(K(e.content), 1)
|
|
@@ -1184,15 +1184,15 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
|
|
|
1184
1184
|
name: "lucide-x",
|
|
1185
1185
|
size: e.closeIconSize
|
|
1186
1186
|
}, null, 8, ["size"])
|
|
1187
|
-
])) :
|
|
1187
|
+
])) : D("", !0)
|
|
1188
1188
|
])
|
|
1189
|
-
], 6)) :
|
|
1189
|
+
], 6)) : D("", !0);
|
|
1190
1190
|
}
|
|
1191
|
-
}),
|
|
1191
|
+
}), No = /* @__PURE__ */ G(Bo, [["__scopeId", "data-v-00c80323"]]);
|
|
1192
1192
|
function we(e) {
|
|
1193
1193
|
e && e.classList && e.classList.add("mc-ui-override");
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Do(e) {
|
|
1196
1196
|
e && e.$el && we(e.$el);
|
|
1197
1197
|
}
|
|
1198
1198
|
function Fo() {
|
|
@@ -1265,14 +1265,14 @@ function Vo(e) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1267
1267
|
__proto__: null,
|
|
1268
|
-
addComponentOverride:
|
|
1268
|
+
addComponentOverride: Do,
|
|
1269
1269
|
addOverrideClass: we,
|
|
1270
1270
|
applyGlobalOverride: Fo,
|
|
1271
1271
|
createOverrideComponent: Vo,
|
|
1272
1272
|
enableH5Override: jo,
|
|
1273
1273
|
forceRefreshStyles: zo,
|
|
1274
1274
|
isH5: Ve
|
|
1275
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1275
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
1276
1276
|
// 滚动相关
|
|
1277
1277
|
SCROLL_RATIO: 0.8,
|
|
1278
1278
|
// 滚动比例
|
|
@@ -1329,7 +1329,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1329
1329
|
let p = f.offsetLeft;
|
|
1330
1330
|
if (Ve()) {
|
|
1331
1331
|
const w = window.getComputedStyle(o.value), P = parseFloat(w.paddingLeft) || 0;
|
|
1332
|
-
if (Math.abs(p - P) >
|
|
1332
|
+
if (Math.abs(p - P) > N.H5_POSITION_TOLERANCE) {
|
|
1333
1333
|
const I = o.value.getBoundingClientRect();
|
|
1334
1334
|
p = f.getBoundingClientRect().left - I.left;
|
|
1335
1335
|
}
|
|
@@ -1351,9 +1351,9 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1351
1351
|
de();
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
|
-
const T = be(P) + P.offsetWidth / 2 -
|
|
1354
|
+
const T = be(P) + P.offsetWidth / 2 - N.ACTIVE_BAR_OFFSET;
|
|
1355
1355
|
k.value = {
|
|
1356
|
-
width: `${
|
|
1356
|
+
width: `${N.ACTIVE_BAR_WIDTH}px`,
|
|
1357
1357
|
left: `${T}px`
|
|
1358
1358
|
}, f && Y(P);
|
|
1359
1359
|
});
|
|
@@ -1364,14 +1364,14 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1364
1364
|
const re = I + T / 2, Yt = o.value.scrollWidth, Ht = Math.max(0, Yt - w);
|
|
1365
1365
|
let Ce = re - w / 2;
|
|
1366
1366
|
Ce = Math.max(0, Math.min(Ce, Ht));
|
|
1367
|
-
const Be = I - P,
|
|
1368
|
-
Xt && Jt >
|
|
1367
|
+
const Be = I - P, Ne = A - P, Kt = Be >= 0 && Ne <= w, tt = w * N.EDGE_THRESHOLD_RATIO, qt = Be >= 0 && Be < tt, Zt = Ne > w - tt && Ne <= w, Xt = !Kt || qt || Zt, Jt = Math.abs(P - Ce);
|
|
1368
|
+
Xt && Jt > N.SCROLL_MIN_DIFF && p.scrollTo({ left: Ce, behavior: "smooth" });
|
|
1369
1369
|
} else
|
|
1370
1370
|
I < P ? p.scrollTo({
|
|
1371
|
-
left: I -
|
|
1371
|
+
left: I - N.SCROLL_MARGIN,
|
|
1372
1372
|
behavior: "smooth"
|
|
1373
1373
|
}) : A > P + w && p.scrollTo({
|
|
1374
|
-
left: A - w +
|
|
1374
|
+
left: A - w + N.SCROLL_MARGIN,
|
|
1375
1375
|
behavior: "smooth"
|
|
1376
1376
|
});
|
|
1377
1377
|
}, fe = (f) => {
|
|
@@ -1390,7 +1390,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1390
1390
|
le(() => {
|
|
1391
1391
|
Xe(), me();
|
|
1392
1392
|
});
|
|
1393
|
-
},
|
|
1393
|
+
}, N.SORT_DELAY);
|
|
1394
1394
|
}, Xe = () => {
|
|
1395
1395
|
if (!l.value || s.value.length === 0) return;
|
|
1396
1396
|
const f = l.value.querySelectorAll(".m-tab-pane");
|
|
@@ -1431,7 +1431,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
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;
|
|
1434
|
-
},
|
|
1434
|
+
}, N.RESET_DELAY);
|
|
1435
1435
|
});
|
|
1436
1436
|
};
|
|
1437
1437
|
V(s, (f) => {
|
|
@@ -1451,7 +1451,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
const A = Math.max(0, P - I);
|
|
1454
|
-
v.value = w >
|
|
1454
|
+
v.value = w > N.SCROLL_PRECISION, b.value = w < A - N.SCROLL_PRECISION;
|
|
1455
1455
|
}, Qe = () => {
|
|
1456
1456
|
z && (cancelAnimationFrame(z), z = null), F && (clearTimeout(F), F = null);
|
|
1457
1457
|
}, Vt = () => {
|
|
@@ -1459,17 +1459,17 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1459
1459
|
J(), z = null;
|
|
1460
1460
|
}), F = setTimeout(() => {
|
|
1461
1461
|
J(), te && (te = !1), F = null;
|
|
1462
|
-
},
|
|
1462
|
+
}, N.SCROLL_DEBOUNCE);
|
|
1463
1463
|
}, et = (f) => {
|
|
1464
1464
|
if (!a.value) return;
|
|
1465
1465
|
te = !0;
|
|
1466
|
-
const p = a.value.clientWidth *
|
|
1466
|
+
const p = a.value.clientWidth * N.SCROLL_RATIO;
|
|
1467
1467
|
a.value.scrollBy({
|
|
1468
1468
|
left: f === "left" ? -p : p,
|
|
1469
1469
|
behavior: "smooth"
|
|
1470
1470
|
}), setTimeout(() => {
|
|
1471
1471
|
J(), te = !1;
|
|
1472
|
-
},
|
|
1472
|
+
}, N.SCROLL_ANIMATION);
|
|
1473
1473
|
}, Gt = () => {
|
|
1474
1474
|
et("left");
|
|
1475
1475
|
}, Wt = () => {
|
|
@@ -1483,10 +1483,10 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1483
1483
|
return ke(() => {
|
|
1484
1484
|
c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), Ut(), y(), setTimeout(() => {
|
|
1485
1485
|
y();
|
|
1486
|
-
},
|
|
1486
|
+
}, N.INIT_DELAY), requestAnimationFrame(() => {
|
|
1487
1487
|
setTimeout(() => {
|
|
1488
1488
|
y();
|
|
1489
|
-
},
|
|
1489
|
+
}, N.INIT_DELAY);
|
|
1490
1490
|
}), le(() => {
|
|
1491
1491
|
J();
|
|
1492
1492
|
}), a.value && o.value && (X = new ResizeObserver(() => {
|
|
@@ -1529,7 +1529,7 @@ function Ko(e, t, n, o, a, l) {
|
|
|
1529
1529
|
key: 0,
|
|
1530
1530
|
class: "m-tabs__arrow m-tabs__arrow--left iconfont icon-chevron-left",
|
|
1531
1531
|
onClick: t[0] || (t[0] = (...s) => o.handleScrollLeft && o.handleScrollLeft(...s))
|
|
1532
|
-
})) :
|
|
1532
|
+
})) : D("", !0),
|
|
1533
1533
|
C("div", {
|
|
1534
1534
|
class: "m-tabs__header",
|
|
1535
1535
|
ref: "headerRef",
|
|
@@ -1548,14 +1548,14 @@ function Ko(e, t, n, o, a, l) {
|
|
|
1548
1548
|
key: 0,
|
|
1549
1549
|
class: "m-tabs__active-bar",
|
|
1550
1550
|
style: bt(o.activeBarStyle)
|
|
1551
|
-
}, null, 4)) :
|
|
1551
|
+
}, null, 4)) : D("", !0)
|
|
1552
1552
|
], 512)
|
|
1553
1553
|
], 544),
|
|
1554
1554
|
o.showRightArrow ? (d(), m("i", {
|
|
1555
1555
|
key: 1,
|
|
1556
1556
|
class: "m-tabs__arrow m-tabs__arrow--right iconfont icon-chevron-right",
|
|
1557
1557
|
onClick: t[2] || (t[2] = (...s) => o.handleScrollRight && o.handleScrollRight(...s))
|
|
1558
|
-
})) :
|
|
1558
|
+
})) : D("", !0)
|
|
1559
1559
|
]),
|
|
1560
1560
|
(d(), m("div", {
|
|
1561
1561
|
class: "m-tabs__content",
|
|
@@ -1766,7 +1766,7 @@ const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283
|
|
|
1766
1766
|
r < e.items.length - 1 ? (d(), E(ls, {
|
|
1767
1767
|
key: 0,
|
|
1768
1768
|
class: "m-breadcrumb__separator"
|
|
1769
|
-
})) :
|
|
1769
|
+
})) : D("", !0)
|
|
1770
1770
|
], 64))), 128))
|
|
1771
1771
|
]));
|
|
1772
1772
|
}
|
|
@@ -2014,7 +2014,7 @@ const [Ls, ct] = he("badge"), Bs = {
|
|
|
2014
2014
|
showZero: ae,
|
|
2015
2015
|
position: Z("top-right")
|
|
2016
2016
|
};
|
|
2017
|
-
var
|
|
2017
|
+
var Ns = ge({
|
|
2018
2018
|
name: Ls,
|
|
2019
2019
|
props: Bs,
|
|
2020
2020
|
setup(e, {
|
|
@@ -2072,7 +2072,7 @@ var Ds = ge({
|
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
2074
|
});
|
|
2075
|
-
const
|
|
2075
|
+
const Ds = Le(Ns);
|
|
2076
2076
|
let At = 2e3;
|
|
2077
2077
|
const Fs = () => ++At, js = (e) => {
|
|
2078
2078
|
At = e;
|
|
@@ -2165,7 +2165,7 @@ var Ks = ge({
|
|
|
2165
2165
|
badge: i,
|
|
2166
2166
|
color: c
|
|
2167
2167
|
} = e, u = Ys(s);
|
|
2168
|
-
return x(
|
|
2168
|
+
return x(Ds, S({
|
|
2169
2169
|
dot: l,
|
|
2170
2170
|
tag: a,
|
|
2171
2171
|
class: [o.value, u ? "" : `${o.value}-${s}`],
|
|
@@ -2264,7 +2264,7 @@ function Qs(e, t) {
|
|
|
2264
2264
|
u ? s() : r();
|
|
2265
2265
|
});
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Nt(e) {
|
|
2268
2268
|
const t = _(!1);
|
|
2269
2269
|
return V(
|
|
2270
2270
|
e,
|
|
@@ -2296,7 +2296,7 @@ var oa = ge({
|
|
|
2296
2296
|
attrs: t,
|
|
2297
2297
|
slots: n
|
|
2298
2298
|
}) {
|
|
2299
|
-
const o = _(), a =
|
|
2299
|
+
const o = _(), a = Nt(() => e.show || !e.lazyRender), l = (r) => {
|
|
2300
2300
|
e.lockScroll && kt(r);
|
|
2301
2301
|
}, s = a(() => {
|
|
2302
2302
|
var r;
|
|
@@ -2348,7 +2348,7 @@ var la = ge({
|
|
|
2348
2348
|
slots: o
|
|
2349
2349
|
}) {
|
|
2350
2350
|
let a, l;
|
|
2351
|
-
const s = _(), r = _(), i =
|
|
2351
|
+
const s = _(), r = _(), i = Nt(() => e.show || !e.lazyRender), c = R(() => {
|
|
2352
2352
|
const y = {
|
|
2353
2353
|
zIndex: s.value
|
|
2354
2354
|
};
|
|
@@ -2539,7 +2539,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
|
|
|
2539
2539
|
_: 3
|
|
2540
2540
|
}, 16, ["show"]));
|
|
2541
2541
|
}
|
|
2542
|
-
}), ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-
|
|
2542
|
+
}), ga = /* @__PURE__ */ G(va, [["__scopeId", "data-v-8fc4b37a"]]), Dt = [ze, On, kn, xn, Pn, Bn, Nn, Dn, Fn, jn, zn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, No, qo, Qo, ss, Mt, ds, ga];
|
|
2543
2543
|
function Ft(e) {
|
|
2544
2544
|
return !e || typeof e != "string" || !e.startsWith("M") ? null : "m-" + e.slice(1).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
2545
2545
|
}
|
|
@@ -2548,7 +2548,7 @@ const _a = [
|
|
|
2548
2548
|
{ id: "global-notification-container", component: Et }
|
|
2549
2549
|
];
|
|
2550
2550
|
function ha(n) {
|
|
2551
|
-
return
|
|
2551
|
+
return De(this, arguments, function* ({ id: e, component: t }) {
|
|
2552
2552
|
try {
|
|
2553
2553
|
if (document.getElementById(e)) return;
|
|
2554
2554
|
const { createApp: o, h: a } = yield import("vue"), l = document.createElement("div");
|
|
@@ -2561,14 +2561,14 @@ function ha(n) {
|
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
2563
|
function ba() {
|
|
2564
|
-
return
|
|
2564
|
+
return De(this, null, function* () {
|
|
2565
2565
|
const e = _a.map(ha);
|
|
2566
2566
|
yield Promise.all(e);
|
|
2567
2567
|
});
|
|
2568
2568
|
}
|
|
2569
2569
|
const g = {};
|
|
2570
2570
|
function ya(e) {
|
|
2571
|
-
const t =
|
|
2571
|
+
const t = Dt.map((n) => Ft(n == null ? void 0 : n.name)).filter(Boolean);
|
|
2572
2572
|
Object.entries(pt).forEach(([n, o]) => {
|
|
2573
2573
|
if (o && o.name && typeof o.name == "string" && o.name.startsWith("El")) {
|
|
2574
2574
|
const a = "m-" + o.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
@@ -2581,9 +2581,9 @@ function ya(e) {
|
|
|
2581
2581
|
const Ca = (e) => {
|
|
2582
2582
|
typeof window != "undefined" && Promise.resolve().then(() => Go).then(({ applyGlobalOverride: t, enableH5Override: n }) => {
|
|
2583
2583
|
t(), n({ mode: "auto", breakpoint: 768 });
|
|
2584
|
-
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."),
|
|
2585
|
-
const n = Ft(t == null ? void 0 : t.name);
|
|
2586
|
-
n && e.component(n, t);
|
|
2584
|
+
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Dt.forEach((t) => {
|
|
2585
|
+
const n = Ft(t == null ? void 0 : t.name), o = t == null ? void 0 : t.name;
|
|
2586
|
+
n && e.component(n, t), o && e.component(o, t);
|
|
2587
2587
|
}), ya(e), typeof window != "undefined" && ba();
|
|
2588
2588
|
}, 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;
|
|
2589
2589
|
export {
|
|
@@ -2592,7 +2592,7 @@ export {
|
|
|
2592
2592
|
Sr as MAvatar,
|
|
2593
2593
|
mr as MBacktop,
|
|
2594
2594
|
$r as MBadge,
|
|
2595
|
-
|
|
2595
|
+
No as MBanner,
|
|
2596
2596
|
ds as MBreadcrumb,
|
|
2597
2597
|
On as MButton,
|
|
2598
2598
|
Xa as MButtonGroup,
|
|
@@ -2621,7 +2621,7 @@ export {
|
|
|
2621
2621
|
qa as MMessageBox,
|
|
2622
2622
|
Et as MNotifiMessage,
|
|
2623
2623
|
to as MNotification,
|
|
2624
|
-
|
|
2624
|
+
Dn as MOption,
|
|
2625
2625
|
Fn as MOptionGroup,
|
|
2626
2626
|
jn as MPagination,
|
|
2627
2627
|
ga as MPicker,
|
|
@@ -2631,7 +2631,7 @@ export {
|
|
|
2631
2631
|
Vn as MRadioGroup,
|
|
2632
2632
|
_r as MResult,
|
|
2633
2633
|
gr as MScrollbar,
|
|
2634
|
-
|
|
2634
|
+
Nn as MSelect,
|
|
2635
2635
|
hr as MSkeleton,
|
|
2636
2636
|
yr as MSpinner,
|
|
2637
2637
|
Wn as MSwitch,
|
|
@@ -2651,7 +2651,7 @@ export {
|
|
|
2651
2651
|
ur as MUpload,
|
|
2652
2652
|
oo as Message,
|
|
2653
2653
|
Ha as NotifiMessage,
|
|
2654
|
-
|
|
2654
|
+
Do as addComponentOverride,
|
|
2655
2655
|
we as addOverrideClass,
|
|
2656
2656
|
Fo as applyGlobalOverride,
|
|
2657
2657
|
Vo as createOverrideComponent,
|