mc-plus 1.0.45 → 1.0.47
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/es/hooks-CpOgf4oa.js +106 -0
- package/dist/es/index.js +65 -62
- package/dist/es/{mc-alert-message-k3WbJimg.js → mc-alert-message-B-3A1yRi.js} +5 -5
- package/dist/es/{mc-button-CampFLJM.js → mc-button-BwTUiTGy.js} +4 -4
- package/dist/es/{mc-checkbox-BE6z-oTd.js → mc-checkbox-Cd1bcVpx.js} +4 -4
- package/dist/es/{mc-collapse-CuwnM1Rg.js → mc-collapse-D0Xp-9K8.js} +2 -2
- package/dist/es/{mc-copy-3Xzfbgzj.js → mc-copy-BnlJcF2Q.js} +6 -6
- package/dist/es/{mc-count-D2iCTiNY.js → mc-count-qEofXpZ_.js} +4 -4
- package/dist/es/{mc-currency-icon-BaeyUVW6.js → mc-currency-icon-BTqny3FX.js} +5 -5
- package/dist/es/mc-divider-D1tnKCh-.js +7 -0
- package/dist/es/{mc-drawer-Cy0sTuBS.js → mc-drawer-4oIoyTm2.js} +8 -8
- package/dist/es/{mc-footer-Dz_LkIr1.js → mc-footer-x_PWke8m.js} +4 -4
- package/dist/es/{mc-form-BVetW0D3.js → mc-form-B7uARlTB.js} +6 -6
- package/dist/es/{mc-icon-Bn35tPxY.js → mc-icon-DaMzEM1e.js} +5 -5
- package/dist/es/{mc-input-BSIRw_tD.js → mc-input-B4QMFJw7.js} +14 -14
- package/dist/es/{mc-lightbox-CzbLLoGX.js → mc-lightbox-JDLk96JU.js} +8 -8
- package/dist/es/{mc-modal-header-DA2psuc8.js → mc-modal-header-D8GufqP0.js} +4 -4
- package/dist/es/{mc-otp-CtbAqsbO.js → mc-otp-CQH6UcmP.js} +10 -10
- package/dist/es/{mc-overlay-DKDYwb_d.js → mc-overlay-B413yNUM.js} +4 -4
- package/dist/es/{mc-popper-DyzLa9K-.js → mc-popper-CDrhKzC3.js} +6 -6
- package/dist/es/mc-progress-bar-RfjhsnH2.js +29 -0
- package/dist/es/mc-radio-DjGnAoWf.js +30 -0
- package/dist/es/mc-reset-Df8FkgAX.js +13 -0
- package/dist/es/{mc-select-Da0ahcnF.js → mc-select-PxeW0ghC.js} +40 -40
- package/dist/es/{mc-status-CuUPFNRd.js → mc-status-K-Mx4U19.js} +4 -4
- package/dist/es/{mc-step-3CY4Kf9_.js → mc-step-BU4nDqlV.js} +24 -24
- package/dist/es/{mc-success-icon-dQfCW1VX.js → mc-success-icon-Cc0CC92F.js} +3 -3
- package/dist/es/{mc-switch-Cx4P82Lg.js → mc-switch-DeJRygML.js} +5 -5
- package/dist/es/{mc-tab-D__5HGiw.js → mc-tab-bB7N72vn.js} +55 -55
- package/dist/es/{mc-tag-Cb887jRZ.js → mc-tag-Bhkg0L75.js} +5 -5
- package/dist/es/{mc-title-DUmPOcab.js → mc-title-BW90OvSF.js} +10 -10
- package/dist/es/{mc-toast-CtcdFS_6.js → mc-toast-DXnhTPy_.js} +14 -14
- package/dist/es/{mc-tooltip-ED9vAtDV.js → mc-tooltip-D8KirXrF.js} +5 -5
- package/dist/es/mc-upload-C5yOn59N.js +125 -0
- package/dist/es/theme/mc-alert-message.css +1 -1
- package/dist/es/theme/mc-button.css +1 -1
- package/dist/es/theme/mc-checkbox.css +1 -1
- package/dist/es/theme/mc-copy.css +1 -1
- package/dist/es/theme/mc-count.css +1 -1
- package/dist/es/theme/mc-currency-icon.css +1 -1
- package/dist/es/theme/mc-divider.css +1 -1
- package/dist/es/theme/mc-drawer.css +1 -1
- package/dist/es/theme/mc-footer.css +1 -1
- package/dist/es/theme/mc-form.css +1 -1
- package/dist/es/theme/mc-icon.css +1 -1
- package/dist/es/theme/mc-input.css +1 -1
- package/dist/es/theme/mc-lightbox.css +1 -1
- package/dist/es/theme/mc-modal-header.css +1 -1
- package/dist/es/theme/mc-otp.css +1 -1
- package/dist/es/theme/mc-overlay.css +1 -1
- package/dist/es/theme/mc-popper.css +1 -1
- package/dist/es/theme/mc-progress-bar.css +1 -0
- package/dist/es/theme/mc-radio.css +1 -1
- package/dist/es/theme/mc-reset.css +1 -1
- package/dist/es/theme/mc-select.css +1 -1
- package/dist/es/theme/mc-status.css +1 -1
- package/dist/es/theme/mc-step.css +1 -1
- package/dist/es/theme/mc-success-icon.css +1 -1
- package/dist/es/theme/mc-switch.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/es/theme/mc-tag.css +1 -1
- package/dist/es/theme/mc-title.css +1 -1
- package/dist/es/theme/mc-toast.css +1 -1
- package/dist/es/theme/mc-tooltip.css +1 -1
- package/dist/es/theme/mc-upload.css +1 -1
- package/dist/es/{utils-BAYTZ2S4.js → utils-unh4VH8x.js} +1 -1
- package/dist/es/{vendor-BCQeFBhn.js → vendor-CnpY8h4b.js} +249 -239
- package/dist/index.css +1 -1
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/mc-progress-bar/index.d.ts +65 -0
- package/dist/types/components/mc-progress-bar/types.d.ts +17 -0
- package/dist/types/components/mc-upload/constant.d.ts +2 -0
- package/dist/types/components/mc-upload/hooks/index.d.ts +1 -0
- package/dist/types/components/mc-upload/hooks/useLang.d.ts +13 -0
- package/dist/types/components/mc-upload/index.d.ts +251 -72
- package/dist/types/components/mc-upload/{constanst.d.ts → lang/en.d.ts} +2 -2
- package/dist/types/components/mc-upload/lang/index.d.ts +2 -0
- package/dist/types/components/mc-upload/lang/zh.d.ts +11 -0
- package/dist/types/components/mc-upload/types/common.d.ts +15 -0
- package/dist/types/components/mc-upload/types/index.d.ts +4 -0
- package/dist/types/components/mc-upload/types/mc-file-list.d.ts +16 -0
- package/dist/types/components/mc-upload/types/mc-upload-dropzone.d.ts +18 -0
- package/dist/types/components/mc-upload/types/mc-upload.d.ts +27 -0
- package/dist/types/components/mc-upload/utils.d.ts +4 -2
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useDragover.d.ts +10 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +53 -53
- package/dist/es/hooks-9Nd65OVn.js +0 -86
- package/dist/es/mc-divider-Dh3EqrWH.js +0 -6
- package/dist/es/mc-radio-CfgR100w.js +0 -30
- package/dist/es/mc-reset-BsjrNbuL.js +0 -13
- package/dist/es/mc-upload-CAqNHpvM.js +0 -120
- package/dist/types/components/mc-upload/types.d.ts +0 -46
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { getCurrentInstance as e, computed as r, isRef as t, watch as n, onMounted as a, onBeforeUnmount as v, unref as o, ref as u, onUnmounted as s, onBeforeMount as l } from "vue";
|
|
2
|
+
import { i, t as d } from "./vendor-CnpY8h4b.js";
|
|
3
|
+
function c(t2) {
|
|
4
|
+
const n2 = e();
|
|
5
|
+
if (!n2) throw new Error("useProp must be used within a component");
|
|
6
|
+
return r(() => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return (_b = (_a = n2 == null ? void 0 : n2.proxy) == null ? void 0 : _a.$props) == null ? void 0 : _b[t2];
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function f(e2, r2, u2) {
|
|
12
|
+
t(e2) ? n(e2, (e3, t2) => {
|
|
13
|
+
t2 == null ? void 0 : t2.removeEventListener(r2, u2), e3 == null ? void 0 : e3.addEventListener(r2, u2);
|
|
14
|
+
}) : a(() => e2 == null ? void 0 : e2.addEventListener(r2, u2)), v(() => {
|
|
15
|
+
var _a;
|
|
16
|
+
return (_a = o(e2)) == null ? void 0 : _a.removeEventListener(r2, u2);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function m(e2, r2) {
|
|
20
|
+
f(document, "click", (t2) => {
|
|
21
|
+
e2.value && t2.target && (e2.value.contains(t2.target) || r2(t2));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function g(r2, { afterFocus: t2, beforeBlur: n2, afterBlur: a2 } = {}) {
|
|
25
|
+
const v2 = e(), { emit: o2 } = v2, s2 = u(), l2 = u(false);
|
|
26
|
+
return f(s2, "click", () => {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = r2.value) == null ? void 0 : _a.focus();
|
|
29
|
+
}), { wrapperRef: s2, isFocused: l2, handleFocus: (e2) => {
|
|
30
|
+
l2.value || (l2.value = true, o2("focus", e2), t2 == null ? void 0 : t2());
|
|
31
|
+
}, handleBlur: (e2) => {
|
|
32
|
+
var _a;
|
|
33
|
+
i(n2) && n2(e2) || e2.relatedTarget && ((_a = s2.value) == null ? void 0 : _a.contains(e2.relatedTarget)) || (l2.value = false, o2("blur", e2), a2 == null ? void 0 : a2());
|
|
34
|
+
} };
|
|
35
|
+
}
|
|
36
|
+
const p = (e2, r2) => ({ generateFileUrl: (t2) => {
|
|
37
|
+
if (e2 && r2 && t2) return `${e2}/${t2}.${r2}`;
|
|
38
|
+
} });
|
|
39
|
+
function E(e2, r2, t2 = 300) {
|
|
40
|
+
const o2 = new ResizeObserver(d((e3) => {
|
|
41
|
+
for (let t3 of e3) r2(t3.contentRect);
|
|
42
|
+
}, t2)), u2 = (e3) => {
|
|
43
|
+
o2.observe(e3);
|
|
44
|
+
}, s2 = (e3) => {
|
|
45
|
+
o2.unobserve(e3);
|
|
46
|
+
};
|
|
47
|
+
return a(() => {
|
|
48
|
+
e2.value && u2(e2.value);
|
|
49
|
+
}), v(() => {
|
|
50
|
+
e2.value && s2(e2.value);
|
|
51
|
+
}), n(e2, (e3) => {
|
|
52
|
+
e3 && u2(e3);
|
|
53
|
+
}), { resizeObserver: o2, observe: u2, unobserve: s2 };
|
|
54
|
+
}
|
|
55
|
+
function L(e2) {
|
|
56
|
+
a(() => {
|
|
57
|
+
window.addEventListener("resize", e2);
|
|
58
|
+
}), s(() => {
|
|
59
|
+
window.removeEventListener("resize", e2);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const D = () => {
|
|
63
|
+
const e2 = c("width"), t2 = c("height");
|
|
64
|
+
return { width: r(() => "number" == typeof e2.value ? `${e2.value}px` : e2.value || "auto"), height: r(() => "number" == typeof t2.value ? `${t2.value}px` : t2.value || "auto") };
|
|
65
|
+
}, b = (e2) => {
|
|
66
|
+
const r2 = u(false), t2 = () => {
|
|
67
|
+
r2.value = true;
|
|
68
|
+
}, n2 = () => {
|
|
69
|
+
r2.value = false;
|
|
70
|
+
};
|
|
71
|
+
return a(() => {
|
|
72
|
+
e2.value && (e2.value.addEventListener("mouseenter", t2), e2.value.addEventListener("mouseleave", n2));
|
|
73
|
+
}), l(() => {
|
|
74
|
+
e2.value && (e2.value.removeEventListener("mouseenter", t2), e2.value.removeEventListener("mouseleave", n2));
|
|
75
|
+
}), { isHovering: r2 };
|
|
76
|
+
}, h = (e2, r2) => {
|
|
77
|
+
const t2 = u(false), n2 = (e3) => {
|
|
78
|
+
e3 !== t2.value && (t2.value = e3);
|
|
79
|
+
}, o2 = (e3) => {
|
|
80
|
+
e3.preventDefault(), n2(true), i(r2.onDragEnter) && r2.onDragEnter(e3);
|
|
81
|
+
}, s2 = (e3) => {
|
|
82
|
+
e3.preventDefault(), n2(false), i(r2.onDragLeave) && r2.onDragLeave(e3);
|
|
83
|
+
}, l2 = (e3) => {
|
|
84
|
+
e3.preventDefault(), i(r2.onDragover) && r2.onDragover(e3);
|
|
85
|
+
}, d2 = (e3) => {
|
|
86
|
+
e3.preventDefault(), n2(false), i(r2.onDrop) && r2.onDrop(e3);
|
|
87
|
+
};
|
|
88
|
+
return a(() => {
|
|
89
|
+
var _a, _b, _c, _d;
|
|
90
|
+
(_a = e2.value) == null ? void 0 : _a.addEventListener("dragenter", o2), (_b = e2.value) == null ? void 0 : _b.addEventListener("dragleave", s2), (_c = e2.value) == null ? void 0 : _c.addEventListener("dragover", l2), (_d = e2.value) == null ? void 0 : _d.addEventListener("drop", d2);
|
|
91
|
+
}), v(() => {
|
|
92
|
+
var _a, _b, _c, _d;
|
|
93
|
+
(_a = e2.value) == null ? void 0 : _a.removeEventListener("dragenter", o2), (_b = e2.value) == null ? void 0 : _b.removeEventListener("dragleave", s2), (_c = e2.value) == null ? void 0 : _c.removeEventListener("dragover", l2), (_d = e2.value) == null ? void 0 : _d.removeEventListener("drop", d2);
|
|
94
|
+
}), { isDragover: t2 };
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
D as a,
|
|
98
|
+
E as b,
|
|
99
|
+
c,
|
|
100
|
+
g as d,
|
|
101
|
+
b as e,
|
|
102
|
+
L as f,
|
|
103
|
+
m as g,
|
|
104
|
+
h,
|
|
105
|
+
p as u
|
|
106
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { p as s, m } from "./utils-
|
|
2
|
-
import { M as o, a as r, b as p } from "./mc-tab-
|
|
3
|
-
import { u, c, d } from "./mc-tab-
|
|
4
|
-
import { M as i } from "./mc-collapse-
|
|
5
|
-
import { a } from "./mc-collapse-
|
|
6
|
-
import { a as f, b as j } from "./mc-input-
|
|
7
|
-
import { M as e, a as l } from "./mc-radio-
|
|
8
|
-
import { M, a as b, b as n, c as x, d as
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as k, b as v } from "./mc-checkbox-
|
|
11
|
-
import { M as S, c as T } from "./mc-form-
|
|
12
|
-
import { a as q } from "./mc-icon-
|
|
13
|
-
import { a as
|
|
14
|
-
import { a as
|
|
15
|
-
import { a as
|
|
16
|
-
import { a as A } from "./mc-modal-header-
|
|
17
|
-
import { M as B } from "./mc-drawer-
|
|
18
|
-
import { M as D } from "./mc-reset-
|
|
19
|
-
import {
|
|
20
|
-
import { M as F } from "./mc-lightbox-
|
|
21
|
-
import {
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
24
|
-
import {
|
|
25
|
-
import { M as
|
|
26
|
-
import { M as O } from "./mc-
|
|
27
|
-
import { M as
|
|
28
|
-
import { M as
|
|
29
|
-
import { M as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { M as
|
|
33
|
-
import { M as
|
|
34
|
-
import {
|
|
35
|
-
|
|
1
|
+
import { p as s, m } from "./utils-unh4VH8x.js";
|
|
2
|
+
import { M as o, a as r, b as p } from "./mc-tab-bB7N72vn.js";
|
|
3
|
+
import { u, c, d } from "./mc-tab-bB7N72vn.js";
|
|
4
|
+
import { M as i } from "./mc-collapse-D0Xp-9K8.js";
|
|
5
|
+
import { a } from "./mc-collapse-D0Xp-9K8.js";
|
|
6
|
+
import { a as f, b as j } from "./mc-input-B4QMFJw7.js";
|
|
7
|
+
import { M as e, a as l } from "./mc-radio-DjGnAoWf.js";
|
|
8
|
+
import { M, a as b, b as n, c as x, d as g, e as h, f as y } from "./mc-select-PxeW0ghC.js";
|
|
9
|
+
import { a as w } from "./mc-button-BwTUiTGy.js";
|
|
10
|
+
import { a as k, b as v } from "./mc-checkbox-Cd1bcVpx.js";
|
|
11
|
+
import { M as S, c as T } from "./mc-form-B7uARlTB.js";
|
|
12
|
+
import { a as q } from "./mc-icon-DaMzEM1e.js";
|
|
13
|
+
import { a as z } from "./mc-success-icon-Cc0CC92F.js";
|
|
14
|
+
import { a as C, b as I } from "./mc-title-BW90OvSF.js";
|
|
15
|
+
import { a as P } from "./mc-footer-x_PWke8m.js";
|
|
16
|
+
import { a as A } from "./mc-modal-header-D8GufqP0.js";
|
|
17
|
+
import { M as B } from "./mc-drawer-4oIoyTm2.js";
|
|
18
|
+
import { M as D } from "./mc-reset-Df8FkgAX.js";
|
|
19
|
+
import { a as E } from "./mc-divider-D1tnKCh-.js";
|
|
20
|
+
import { M as F } from "./mc-lightbox-JDLk96JU.js";
|
|
21
|
+
import { a as G } from "./mc-popper-CDrhKzC3.js";
|
|
22
|
+
import { a as H } from "./mc-tooltip-D8KirXrF.js";
|
|
23
|
+
import { a as J } from "./mc-tag-Bhkg0L75.js";
|
|
24
|
+
import { M as K } from "./mc-status-K-Mx4U19.js";
|
|
25
|
+
import { M as L } from "./mc-switch-DeJRygML.js";
|
|
26
|
+
import { M as N, a as O, b as Q, c as R } from "./mc-step-BU4nDqlV.js";
|
|
27
|
+
import { M as U } from "./mc-alert-message-B-3A1yRi.js";
|
|
28
|
+
import { M as V } from "./mc-currency-icon-BTqny3FX.js";
|
|
29
|
+
import { M as W } from "./mc-toast-DXnhTPy_.js";
|
|
30
|
+
import { t } from "./mc-toast-DXnhTPy_.js";
|
|
31
|
+
import { M as X } from "./mc-otp-CQH6UcmP.js";
|
|
32
|
+
import { M as Y } from "./mc-count-qEofXpZ_.js";
|
|
33
|
+
import { M as Z } from "./mc-copy-BnlJcF2Q.js";
|
|
34
|
+
import { a as $ } from "./mc-progress-bar-RfjhsnH2.js";
|
|
35
|
+
import { M as _, a as ss, b as ms } from "./mc-upload-C5yOn59N.js";
|
|
36
|
+
const os = [w, i, o, e, l, M, b, n, k, v, W, S, T, f, j, q, z, C, P, I, A, B, r, p, D, E, F, G, H, J, K, L, N, O, Q, R, U, V, X, x, g, h, y, Y, Z, $, _, ss, ms];
|
|
36
37
|
s();
|
|
37
|
-
const
|
|
38
|
+
const as = m(os);
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
U as McAlertMessage,
|
|
41
|
+
w as McButton,
|
|
41
42
|
k as McCheckbox,
|
|
42
43
|
v as McCheckboxGroup,
|
|
43
44
|
i as McCollapse,
|
|
44
45
|
a as McCollapseItem,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
Z as McCopy,
|
|
47
|
+
Y as McCount,
|
|
48
|
+
V as McCurrencyIcon,
|
|
48
49
|
E as McDivider,
|
|
49
50
|
B as McDrawer,
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
ss as McFileList,
|
|
52
|
+
P as McFooter,
|
|
52
53
|
S as McForm,
|
|
53
54
|
T as McFormItem,
|
|
54
55
|
q as McIcon,
|
|
@@ -56,35 +57,37 @@ export {
|
|
|
56
57
|
j as McInputGroup,
|
|
57
58
|
F as McLightbox,
|
|
58
59
|
A as McModalHeader,
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
X as McOtp,
|
|
61
|
+
G as McPopper,
|
|
62
|
+
$ as McProgressBar,
|
|
61
63
|
e as McRadio,
|
|
62
64
|
l as McRadioGroup,
|
|
63
65
|
D as McReset,
|
|
64
66
|
M as McSelect,
|
|
65
67
|
b as McSelectGroup,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
h as McSelectGroupPlus,
|
|
69
|
+
y as McSelectMultiOption,
|
|
68
70
|
n as McSelectOption,
|
|
69
|
-
|
|
71
|
+
g as McSelectOptionPlus,
|
|
70
72
|
x as McSelectPlus,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
K as McStatus,
|
|
74
|
+
N as McStep,
|
|
75
|
+
R as McStepChildItemV2,
|
|
76
|
+
Q as McStepItemV2,
|
|
77
|
+
O as McStepV2,
|
|
78
|
+
z as McSuccessIcon,
|
|
79
|
+
L as McSwitch,
|
|
78
80
|
r as McTab,
|
|
79
81
|
p as McTabItem,
|
|
80
82
|
o as McTable,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ms as
|
|
83
|
+
J as McTag,
|
|
84
|
+
C as McTitle,
|
|
85
|
+
I as McTitleToolBar,
|
|
86
|
+
W as McToast,
|
|
87
|
+
H as McTooltip,
|
|
88
|
+
_ as McUpload,
|
|
89
|
+
ms as McUploadDropzone,
|
|
90
|
+
as as default,
|
|
88
91
|
t as toast,
|
|
89
92
|
u as usePagination,
|
|
90
93
|
c as useTableScroll,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, useSlots as s, computed as t, createElementBlock as l, openBlock as o, normalizeStyle as c, normalizeClass as n, createElementVNode as r, createCommentVNode as i, renderSlot as m, createVNode as d, createTextVNode as u, toDisplayString as p, createBlock as g, withModifiers as v, Transition as f, withCtx as y } from "vue";
|
|
2
|
-
import { M as h } from "./mc-icon-
|
|
3
|
-
import { _ as x, w as _ } from "./utils-
|
|
4
|
-
const
|
|
2
|
+
import { M as h } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
+
import { _ as x, w as _ } from "./utils-unh4VH8x.js";
|
|
4
|
+
const k = { class: "mc-alert-message-header" }, b = { class: "mc-alert-message-title-container" }, w = { key: 0, class: "mc-alert-message-icon-group" }, z = { class: "mc-alert-message-icon-wrapper" }, B = { class: "mc-alert-message-icon-wrapper" }, C = { key: 0, class: "mc-alert-message-body" }, I = _(x(e({ name: "McAlertMessage", __name: "mc-alert-message", props: { modelValue: { type: Boolean, default: true }, width: {}, height: {}, type: { default: "info" }, message: {}, content: {}, closable: { type: Boolean, default: false }, hideIcon: { type: Boolean, default: false }, expandable: { type: Boolean, default: false } }, emits: ["click", "close", "update:modelValue", "expand"], setup(e2, { expose: x2, emit: _2 }) {
|
|
5
5
|
const I2 = e2, M = _2, $ = a(), V = s(), j = t(() => I2.content || V.content), A = t(() => H.value || V.icon), E = a(false), D = t(() => !I2.expandable || E.value), H = t(() => {
|
|
6
6
|
if (!I2.hideIcon) switch (I2.type) {
|
|
7
7
|
case "success":
|
|
@@ -24,8 +24,8 @@ const b = { class: "mc-alert-message-header" }, k = { class: "mc-alert-message-t
|
|
|
24
24
|
E.value = true;
|
|
25
25
|
}, hide: () => {
|
|
26
26
|
E.value = false;
|
|
27
|
-
} }), (e3, a2) => (o(), l("div", { ref_key: "_ref", ref: $, class: n(["mc-alert-message", [`mc-alert-message-${e3.type}`]]), style: c({ width: e3.width, height: e3.height, cursor: e3.expandable ? "pointer" : "default" }), onClick: S }, [r("div",
|
|
28
|
-
} }), [["__scopeId", "data-v-
|
|
27
|
+
} }), (e3, a2) => (o(), l("div", { ref_key: "_ref", ref: $, class: n(["mc-alert-message", [`mc-alert-message-${e3.type}`]]), style: c({ width: e3.width, height: e3.height, cursor: e3.expandable ? "pointer" : "default" }), onClick: S }, [r("div", k, [r("div", b, [A.value ? (o(), l("div", { key: 0, class: "mc-alert-message-icon", style: c({ height: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "icon", {}, () => [d(h, { name: H.value, size: 24 }, null, 8, ["name"])], true)], 4)) : i("", true), r("div", { class: "mc-alert-message-title", style: c({ fontSize: j.value ? "18px" : "16px", fontWeight: j.value ? "600" : "400", lineHeight: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "default", {}, () => [u(p(e3.message), 1)], true)], 4)]), e3.closable || e3.expandable ? (o(), l("div", w, [r("div", z, [e3.expandable ? (o(), g(h, { key: 0, name: "Down-Chevron", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-expand", style: c({ transform: D.value ? "rotate(180deg)" : "rotate(0deg)" }) }, null, 8, ["style"])) : i("", true)]), r("div", B, [e3.closable ? (o(), g(h, { key: 0, name: "Cross", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-close", onClick: v(L, ["stop"]) })) : i("", true)])])) : i("", true)]), j.value ? (o(), l("div", C, [d(f, { name: "mc-alert-message-content-transition" }, { default: y(() => [D.value ? (o(), l("div", { key: 0, class: "mc-alert-message-content", style: c({ paddingLeft: A.value ? "48px" : "16px" }) }, [m(e3.$slots, "content", {}, () => [u(p(e3.content), 1)], true)], 4)) : i("", true)]), _: 3 })])) : i("", true)], 6));
|
|
28
|
+
} }), [["__scopeId", "data-v-831d8a79"]]));
|
|
29
29
|
export {
|
|
30
30
|
I as M
|
|
31
31
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as e, toRefs as t, ref as o, useAttrs as a, computed as i, toValue as l, createElementBlock as n, openBlock as s, unref as d, normalizeClass as u, normalizeStyle as r, createBlock as c, createCommentVNode as m, createElementVNode as p, createVNode as v, renderSlot as f } from "vue";
|
|
2
|
-
import { M as y } from "./mc-icon-
|
|
3
|
-
import { t as h } from "./vendor-
|
|
4
|
-
import { _ as b, w as g } from "./utils-
|
|
2
|
+
import { M as y } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
+
import { t as h } from "./vendor-CnpY8h4b.js";
|
|
4
|
+
import { _ as b, w as g } from "./utils-unh4VH8x.js";
|
|
5
5
|
const k = ["type", "disabled"], I = { key: 1, class: "loading-icon" }, _ = { class: "mc-button-text" }, w = b(e({ name: "McButton", __name: "mc-button", props: { type: { default: "primary" }, nativeType: { default: "button" }, size: { default: "medium" }, disabled: { type: Boolean }, loading: { type: Boolean }, useThrottle: { type: Boolean, default: true }, throttleDuration: { default: 500 }, leftIcon: {}, rightIcon: {}, content: {}, height: {}, width: {} }, emits: ["click"], setup(e2, { expose: b2, emit: g2 }) {
|
|
6
6
|
const w2 = e2, { loading: z2, disabled: B, throttleDuration: T, height: j, width: x } = t(w2), M = g2, $ = o(), D = t(a()), C = i(() => ({ ...l(D).style, width: x.value ? x.value : void 0, height: j.value ? j.value : void 0 })), L = (e3) => {
|
|
7
7
|
z2.value || B.value || M("click", e3);
|
|
8
8
|
}, q = h(L, T.value, { trailing: false });
|
|
9
9
|
return b2({ ref: $ }), (e3, t2) => (s(), n("button", { ref_key: "_ref", ref: $, style: r(C.value), class: u(["mc-button", { [`mc-button--${e3.type}`]: e3.type, [`mc-button--${e3.size}`]: e3.size, "is-loading": d(z2), "is-disabled": d(B) }]), type: e3.nativeType, disabled: !(!d(B) && !d(z2)) || void 0, onClick: t2[0] || (t2[0] = (t3) => e3.useThrottle ? d(q)(t3) : L(t3)) }, [e3.leftIcon && !d(z2) ? (s(), c(y, { key: 0, name: e3.leftIcon }, null, 8, ["name"])) : m("", true), d(z2) && !d(B) ? (s(), n("span", I, [v(y, { name: "Loading", size: 16 })])) : m("", true), p("div", _, [f(e3.$slots, "default", {}, void 0, true)]), e3.rightIcon ? (s(), c(y, { key: 2, name: e3.rightIcon }, null, 8, ["name"])) : m("", true)], 14, k));
|
|
10
|
-
} }), [["__scopeId", "data-v-
|
|
10
|
+
} }), [["__scopeId", "data-v-22e63398"]]), z = g(w);
|
|
11
11
|
export {
|
|
12
12
|
w as M,
|
|
13
13
|
z as a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, inject as a, computed as l, watch as c, createElementBlock as o, openBlock as t, normalizeStyle as s, normalizeClass as u, createElementVNode as m, toDisplayString as d, provide as n, renderSlot as r } from "vue";
|
|
2
|
-
import { u as p, a as i } from "./mc-form-
|
|
3
|
-
import { a as h, b } from "./vendor-
|
|
4
|
-
import { _ as v, w as k } from "./utils-
|
|
2
|
+
import { u as p, a as i } from "./mc-form-B7uARlTB.js";
|
|
3
|
+
import { a as h, b } from "./vendor-CnpY8h4b.js";
|
|
4
|
+
import { _ as v, w as k } from "./utils-unh4VH8x.js";
|
|
5
5
|
const x = Symbol("CheckboxGroupContext"), _ = ["value", "disabled"], f = { class: "mc-checkbox__wrapper" }, V = { class: "mc-checkbox__content" }, g = { class: "mc-checkbox__content-text" }, y = { class: "mc-checkbox__content-remarks" }, B = v(e({ name: "McCheckbox", __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, formValidate: { type: Boolean, default: true }, value: {} }, emits: ["change", "update:modelValue"], setup(e2, { emit: n2 }) {
|
|
6
6
|
const r2 = e2, b2 = n2, { formItem: v2 } = p(), k2 = i(), B2 = a(x, void 0), C2 = l(() => {
|
|
7
7
|
var _a;
|
|
@@ -15,7 +15,7 @@ const x = Symbol("CheckboxGroupContext"), _ = ["value", "disabled"], f = { class
|
|
|
15
15
|
return c(() => I2.value, () => {
|
|
16
16
|
r2.formValidate && (v2 == null ? void 0 : v2.validate("change"));
|
|
17
17
|
}), (e3, a2) => (t(), o("div", { class: u(["mc-checkbox", { "mc-checkbox--disabled": C2.value, "mc-checkbox--error": S2.value }]), style: s({ height: e3.remarks ? "40px" : "24px" }) }, [m("input", { type: "checkbox", class: "mc-checkbox__input", value: I2.value, disabled: C2.value }, null, 8, _), m("label", f, [m("span", { class: u(["mc-checkbox__checkbox", { "mc-checkbox__checkbox--checked": !!I2.value, "mc-checkbox__checkbox--partial": e3.partial }]), onClick: M }, null, 2), m("div", V, [m("span", g, d(e3.content), 1), m("span", y, d(e3.remarks), 1)])])], 6));
|
|
18
|
-
} }), [["__scopeId", "data-v-
|
|
18
|
+
} }), [["__scopeId", "data-v-a13ff63a"]]), C = { class: "mc-checkbox-group" }, S = e({ name: "McCheckboxGroup", __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["change", "update:modelValue"], setup(e2, { emit: a2 }) {
|
|
19
19
|
const s2 = e2, u2 = a2, m2 = i();
|
|
20
20
|
n(x, { modelValue: l(() => s2.modelValue), disabled: l(() => s2.disabled), handleSelect: (e3) => {
|
|
21
21
|
if (m2.value || !e3) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, watchEffect as l, watch as s, provide as o, createElementBlock as c, openBlock as t, renderSlot as i, inject as m, computed as d, normalizeClass as n, createElementVNode as p, withDirectives as u, createTextVNode as r, toDisplayString as v, createVNode as _, vShow as h } from "vue";
|
|
2
|
-
import { d as f, _ as C, w as V } from "./utils-
|
|
3
|
-
import { M as b } from "./mc-icon-
|
|
2
|
+
import { d as f, _ as C, w as V } from "./utils-unh4VH8x.js";
|
|
3
|
+
import { M as b } from "./mc-icon-DaMzEM1e.js";
|
|
4
4
|
const g = Symbol("COLLAPSE_CONTEXT"), I = "McCollapse", M = { class: "mc-collapse" }, k = C(e({ name: I, __name: "mc-collapse", props: { modelValue: {}, accordion: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: m2 }) {
|
|
5
5
|
const d2 = a(e2.modelValue), n2 = m2;
|
|
6
6
|
l(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as s, openBlock as o, renderSlot as e, createVNode as a, createElementVNode as c, toDisplayString as r } from "vue";
|
|
2
|
-
import { M as p } from "./mc-icon-
|
|
3
|
-
import { t as m } from "./mc-toast-
|
|
4
|
-
import { _ as l, w as i } from "./utils-
|
|
2
|
+
import { M as p } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
+
import { t as m } from "./mc-toast-DXnhTPy_.js";
|
|
4
|
+
import { _ as l, w as i } from "./utils-unh4VH8x.js";
|
|
5
5
|
const u = { class: "mc-copy" }, n = { class: "mc-copy-text" }, x = i(l(t({ name: "McCopy", __name: "mc-copy", props: { text: {}, showToast: { type: Boolean, default: false }, toastSuccessText: { default: "copy succeed" }, toastErrorText: { default: "copy failed" }, manual: { type: Boolean, default: false } }, emits: ["copy", "success", "error"], setup(t2, { emit: l2 }) {
|
|
6
|
-
const i2 = t2, x2 = l2,
|
|
6
|
+
const i2 = t2, x2 = l2, y = async () => {
|
|
7
7
|
if (i2.text) if (i2.manual) x2("copy", i2.text);
|
|
8
8
|
else try {
|
|
9
9
|
await navigator.clipboard.writeText(i2.text), x2("success", i2.text), i2.showToast && m.success(i2.toastSuccessText);
|
|
@@ -11,8 +11,8 @@ const u = { class: "mc-copy" }, n = { class: "mc-copy-text" }, x = i(l(t({ name:
|
|
|
11
11
|
console.error(t3), x2("error", i2.text, t3), i2.showToast && m.error(i2.toastErrorText);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
return (t3, m2) => (o(), s("div", u, [e(t3.$slots, "default", {}, () => [c("span", n, r(t3.text), 1)], true), a(p, { name: "Duplicate", class: "mc-copy-icon", onClick:
|
|
15
|
-
} }), [["__scopeId", "data-v-
|
|
14
|
+
return (t3, m2) => (o(), s("div", u, [e(t3.$slots, "default", {}, () => [c("span", n, r(t3.text), 1)], true), a(p, { name: "Duplicate", class: "mc-copy-icon", onClick: y })]));
|
|
15
|
+
} }), [["__scopeId", "data-v-4ba1d29a"]]));
|
|
16
16
|
export {
|
|
17
17
|
x as M
|
|
18
18
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, computed as a, watch as t, createElementBlock as u, createCommentVNode as n, openBlock as m, normalizeClass as o, toDisplayString as c } from "vue";
|
|
2
|
-
import { _ as s, w as l } from "./utils-
|
|
2
|
+
import { _ as s, w as l } from "./utils-unh4VH8x.js";
|
|
3
3
|
const r = { key: 0, class: "mc-count-number" }, d = l(s(e({ name: "McCount", __name: "mc-count", props: { value: {}, theme: { default: "red" }, type: { default: "medium" }, hiddenZero: { type: Boolean, default: true }, max: { default: 99 } }, emits: ["change"], setup(e2, { emit: s2 }) {
|
|
4
4
|
const l2 = e2, d2 = s2, i = a(() => {
|
|
5
5
|
const e3 = Number(l2.value);
|
|
6
6
|
return isNaN(e3) ? (console.warn("mc-count: value is not a number"), 0) : e3;
|
|
7
|
-
}), p = a(() => !l2.hiddenZero || i.value > 0), v = a(() => l2.max && i.value > l2.max ? `${l2.max}+` : `${i.value}`),
|
|
7
|
+
}), p = a(() => !l2.hiddenZero || i.value > 0), v = a(() => l2.max && i.value > l2.max ? `${l2.max}+` : `${i.value}`), y = a(() => "tiny" === l2.type);
|
|
8
8
|
return t(() => l2.value, (e3, a2) => {
|
|
9
9
|
e3 !== a2 && d2("change", e3);
|
|
10
|
-
}), (e3, a2) => p.value ? (m(), u("i", { key: 0, class: o(["mc-count", [`mc-count-${e3.theme}`, `mc-count-${e3.type}`]]) }, [
|
|
11
|
-
} }), [["__scopeId", "data-v-
|
|
10
|
+
}), (e3, a2) => p.value ? (m(), u("i", { key: 0, class: o(["mc-count", [`mc-count-${e3.theme}`, `mc-count-${e3.type}`]]) }, [y.value ? n("", true) : (m(), u("span", r, c(v.value), 1))], 2)) : n("", true);
|
|
11
|
+
} }), [["__scopeId", "data-v-a735e8dc"]]));
|
|
12
12
|
export {
|
|
13
13
|
d as M
|
|
14
14
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as c, createElementBlock as r, openBlock as n, normalizeStyle as s, unref as e, createElementVNode as i, renderSlot as t, normalizeClass as o, toDisplayString as l } from "vue";
|
|
2
|
-
import { u as a, a as u } from "./hooks-
|
|
3
|
-
import { _ as d, w as m } from "./utils-
|
|
4
|
-
const y = { class: "mc-currency-icon-img-wrapper" }, p = ["src", "alt"],
|
|
2
|
+
import { u as a, a as u } from "./hooks-CpOgf4oa.js";
|
|
3
|
+
import { _ as d, w as m } from "./utils-unh4VH8x.js";
|
|
4
|
+
const y = { class: "mc-currency-icon-img-wrapper" }, p = ["src", "alt"], h = { class: "mc-currency-icon-label" }, f = { class: "mc-currency-icon-text" }, g = m(d(c({ name: "McCurrencyIcon", __name: "mc-currency-icon", props: { currency: {}, direction: { default: "horizontal" }, desc: {}, cdnUrl: {}, suffix: { default: "svg" }, height: {}, width: {} }, setup(c2) {
|
|
5
5
|
const d2 = c2, { generateFileUrl: m2 } = a(d2.cdnUrl, d2.suffix), { width: g2, height: v } = u();
|
|
6
|
-
return (c3, a2) => (n(), r("div", { class: "mc-currency-icon", style: s({ width: e(g2), height: e(v) }) }, [i("div", y, [t(c3.$slots, "icon", {}, () => [i("img", { src: e(m2)(c3.currency), class: "mc-currency-icon-img", alt: `${c3.currency}-icon` }, null, 8, p)], true)]), i("div", { class: o(["mc-currency-icon-content", [`mc-currency-icon-content-${c3.direction}`]]) }, [i("div",
|
|
7
|
-
} }), [["__scopeId", "data-v-
|
|
6
|
+
return (c3, a2) => (n(), r("div", { class: "mc-currency-icon", style: s({ width: e(g2), height: e(v) }) }, [i("div", y, [t(c3.$slots, "icon", {}, () => [i("img", { src: e(m2)(c3.currency), class: "mc-currency-icon-img", alt: `${c3.currency}-icon` }, null, 8, p)], true)]), i("div", { class: o(["mc-currency-icon-content", [`mc-currency-icon-content-${c3.direction}`]]) }, [i("div", h, [t(c3.$slots, "default", {}, () => [i("span", null, l(c3.currency), 1)], true)]), i("div", f, [t(c3.$slots, "desc", {}, () => [i("span", null, l(c3.desc), 1)], true)])], 2)], 4));
|
|
7
|
+
} }), [["__scopeId", "data-v-a7836bdb"]]));
|
|
8
8
|
export {
|
|
9
9
|
g as M
|
|
10
10
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as e, openBlock as a, normalizeClass as s } from "vue";
|
|
2
|
+
import { _ as d, w as m } from "./utils-unh4VH8x.js";
|
|
3
|
+
const r = d(i({ name: "McDivider", __name: "mc-divider", props: { size: { default: "small" }, emphasis: { default: "minimal" }, orientation: { default: "horizontal" } }, setup: (i2) => (i3, d2) => (a(), e("div", { class: s(["mc-divider", [`mc-divider-${i3.orientation}`, `mc-divider-${i3.size}`, `mc-divider-${i3.emphasis}`]]) }, null, 2)) }), [["__scopeId", "data-v-6b53d9f6"]]), t = m(r);
|
|
4
|
+
export {
|
|
5
|
+
r as M,
|
|
6
|
+
t as a
|
|
7
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, watch as t, createElementBlock as a, createCommentVNode as r, openBlock as s, createBlock as l, Teleport as d, createVNode as i, Transition as m, withCtx as
|
|
2
|
-
import { M as v } from "./mc-overlay-
|
|
3
|
-
import { M as w } from "./mc-modal-header-
|
|
4
|
-
import { M as h } from "./mc-footer-
|
|
5
|
-
import { b as y } from "./hooks-
|
|
6
|
-
import { _, w as $ } from "./utils-
|
|
1
|
+
import { defineComponent as e, ref as o, watch as t, createElementBlock as a, createCommentVNode as r, openBlock as s, createBlock as l, Teleport as d, createVNode as i, Transition as m, withCtx as f, normalizeClass as c, createElementVNode as u, renderSlot as n, nextTick as p } from "vue";
|
|
2
|
+
import { M as v } from "./mc-overlay-B413yNUM.js";
|
|
3
|
+
import { M as w } from "./mc-modal-header-D8GufqP0.js";
|
|
4
|
+
import { M as h } from "./mc-footer-x_PWke8m.js";
|
|
5
|
+
import { b as y } from "./hooks-CpOgf4oa.js";
|
|
6
|
+
import { _, w as $ } from "./utils-unh4VH8x.js";
|
|
7
7
|
const b = { key: 0, class: "mc-drawer-container" }, g = { class: "mc-drawer-header" }, k = { class: "mc-drawer-content-wrapper" }, B = { class: "mc-drawer-content" }, x = $(_(e({ name: "McDrawer", __name: "mc-drawer", props: { modelValue: { type: Boolean }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, showBorder: { type: Boolean, default: true }, hideFooter: { type: Boolean, default: false }, position: { default: "right" } }, emits: ["update:modelValue", "close"], setup(e2, { expose: _2, emit: $2 }) {
|
|
8
8
|
const x2 = e2, C = o(false), j = o(false), M = o(false), V = async () => {
|
|
9
9
|
C.value = true, j.value = true, await p(), M.value = true;
|
|
@@ -21,8 +21,8 @@ const b = { key: 0, class: "mc-drawer-container" }, g = { class: "mc-drawer-head
|
|
|
21
21
|
return y(R, ({ height: e3 }) => {
|
|
22
22
|
const o2 = I.value;
|
|
23
23
|
o2 && (o2.style.paddingBottom = `${e3}px`);
|
|
24
|
-
}), _2({ ref: I, open: V, close: z }), (e3, o2) => C.value ? (s(), a("div", b, [(s(), l(d, { to: e3.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default:
|
|
25
|
-
} }), [["__scopeId", "data-v-
|
|
24
|
+
}), _2({ ref: I, open: V, close: z }), (e3, o2) => C.value ? (s(), a("div", b, [(s(), l(d, { to: e3.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default: f(() => [i(v, { visible: j.value, fixed: e3.fixed, onClick: S }, { default: f(() => [i(m, { name: `mc-drawer-content-${e3.position}` }, { default: f(() => [M.value ? (s(), a("div", { key: 0, class: c(["mc-drawer", [`mc-drawer-${e3.size}`, `mc-drawer-${e3.position}`]]), ref_key: "_ref", ref: I }, [u("div", g, [n(e3.$slots, "header", {}, () => [i(w, { title: e3.title, "show-border": e3.showBorder, onClose: D }, { default: f(() => [n(e3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), u("div", k, [u("div", B, [n(e3.$slots, "default", {}, void 0, true)])]), e3.hideFooter ? r("", true) : (s(), a("div", { key: 0, class: "mc-drawer-footer", ref_key: "footerRef", ref: R }, [n(e3.$slots, "footer", {}, () => [i(h, null, { left: f(() => [n(e3.$slots, "footer-left", {}, void 0, true)]), right: f(() => [n(e3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": f(() => [n(e3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: f(() => [n(e3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512))], 2)) : r("", true)]), _: 3 }, 8, ["name"])]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
|
|
25
|
+
} }), [["__scopeId", "data-v-efaee3e8"]]));
|
|
26
26
|
export {
|
|
27
27
|
x as M
|
|
28
28
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as t, ref as o, createElementBlock as e, openBlock as s, normalizeStyle as r, normalizeClass as
|
|
2
|
-
import { _ as l, w as p } from "./utils-
|
|
1
|
+
import { defineComponent as t, ref as o, createElementBlock as e, openBlock as s, normalizeStyle as r, normalizeClass as c, createCommentVNode as i, createElementVNode as d, renderSlot as a } from "vue";
|
|
2
|
+
import { _ as l, w as p } from "./utils-unh4VH8x.js";
|
|
3
3
|
const f = { key: 0, class: "mc-footer-content" }, h = { class: "mc-footer-bottom" }, m = { class: "mc-footer-bottom-content" }, n = { class: "mc-footer-left" }, v = { class: "mc-footer-right" }, w = { class: "mc-footer-right-button-group" }, g = l(t({ name: "McFooter", __name: "mc-footer", props: { width: {}, height: {}, wrapperWidth: {}, showborder: { type: Boolean, default: true } }, setup(t2, { expose: l2 }) {
|
|
4
4
|
const p2 = o();
|
|
5
|
-
return l2({ ref: p2 }), (t3, o2) => (s(), e("section", { class:
|
|
6
|
-
} }), [["__scopeId", "data-v-
|
|
5
|
+
return l2({ ref: p2 }), (t3, o2) => (s(), e("section", { class: c(["mc-footer", { "mc-footer-border": t3.showborder }]), style: r({ width: t3.width, height: t3.height }), ref_key: "_ref", ref: p2 }, [t3.$slots.desc ? (s(), e("div", f, [d("div", { class: "mc-footer-wrapper", style: r({ width: t3.wrapperWidth }) }, [a(t3.$slots, "desc", {}, void 0, true)], 4)])) : i("", true), d("div", h, [d("div", { class: "mc-footer-wrapper", style: r({ width: t3.wrapperWidth }) }, [d("div", m, [d("div", n, [a(t3.$slots, "left", {}, void 0, true)]), d("div", v, [a(t3.$slots, "right", {}, () => [d("div", w, [a(t3.$slots, "right-button-group", {}, void 0, true)])], true)])])], 4)])], 6));
|
|
6
|
+
} }), [["__scopeId", "data-v-e6cb581e"]]), u = p(g);
|
|
7
7
|
export {
|
|
8
8
|
g as M,
|
|
9
9
|
u as a
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { inject as e, computed as r, defineComponent as t, reactive as a, toRefs as s, provide as o, createElementBlock as l, openBlock as i, createElementVNode as c, withModifiers as d, renderSlot as u, ref as n, onMounted as m, onUnmounted as v, normalizeClass as p, createCommentVNode as f, toDisplayString as h, createVNode as b, createTextVNode as y, Transition as _, withCtx as g, nextTick as j } from "vue";
|
|
2
|
-
import { c as q } from "./hooks-
|
|
3
|
-
import { c as F, s as S, f as w, d as I, k as P, a as $, e as x, m as k, g as V, h as M, j as z, l as B, n as C } from "./vendor-
|
|
4
|
-
import { _ as E, w as A } from "./utils-
|
|
2
|
+
import { c as q } from "./hooks-CpOgf4oa.js";
|
|
3
|
+
import { c as F, s as S, f as w, d as I, k as P, a as $, e as x, m as k, g as V, h as M, j as z, l as B, n as C } from "./vendor-CnpY8h4b.js";
|
|
4
|
+
import { _ as E, w as A } from "./utils-unh4VH8x.js";
|
|
5
5
|
import O from "async-validator";
|
|
6
|
-
import { M as R } from "./mc-tooltip-
|
|
6
|
+
import { M as R } from "./mc-tooltip-D8KirXrF.js";
|
|
7
7
|
const D = Symbol("formContext"), G = Symbol("formItemContext");
|
|
8
8
|
function H() {
|
|
9
9
|
const r2 = e(D, void 0), t2 = q("formValidate");
|
|
@@ -56,7 +56,7 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
|
|
|
56
56
|
I(p2(m2, e3), (e4) => e4.clearValidate());
|
|
57
57
|
} }), (e3, r3) => (i(), l("div", L, [c("form", { onSubmit: r3[0] || (r3[0] = d(() => {
|
|
58
58
|
}, ["prevent"])) }, [u(e3.$slots, "default", {}, void 0, true)], 32)]));
|
|
59
|
-
} }), [["__scopeId", "data-v-
|
|
59
|
+
} }), [["__scopeId", "data-v-3d266611"]]), Q = { class: "mc-form-item-label-wrapper" }, T = { key: 0, class: "mc-form-item-label" }, U = { key: 0, class: "mc-form-item-help" }, W = { key: 0, class: "mc-form-item-desc" }, X = { class: "mc-form-item__content" }, Y = { key: 0, class: "mc-form-item__error" }, Z = E(t({ name: "McFormItem", __name: "mc-form-item", props: { prop: {}, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(t2, { expose: d2 }) {
|
|
60
60
|
const q2 = t2, F2 = e(D, void 0), I2 = n("init"), E2 = n(""), A2 = (e2) => e2 && q2.prop && !x(M(e2, q2.prop)) ? M(e2, q2.prop) : null, H2 = r(() => {
|
|
61
61
|
const e2 = F2 == null ? void 0 : F2.model;
|
|
62
62
|
return A2(e2);
|
|
@@ -113,7 +113,7 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
|
|
|
113
113
|
}), v(() => {
|
|
114
114
|
q2.prop && (F2 == null ? void 0 : F2.removeField(se));
|
|
115
115
|
}), d2({ validateMessage: E2, validateStatus: I2, validate: re2, resetField: te, clearValidate: ae }), (e2, r2) => (i(), l("div", { class: p(["mc-form-item", { "mc-form-item-horizontal": oe.value }]) }, [u(e2.$slots, "label", { required: L2.value }, () => [c("div", null, [c("div", Q, [e2.label ? (i(), l("label", T, [c("span", { class: p(["mc-form-item-lable-text", { "mc-form-item-label-required": L2.value }]) }, h(e2.label), 3), e2.help || e2.$slots.help ? (i(), l("div", U, [u(e2.$slots, "help", {}, () => [b(R, { content: e2.help, "icon-size": 20 }, null, 8, ["content"])], true)])) : f("", true)])) : f("", true), u(e2.$slots, "tool", {}, void 0, true)]), e2.desc || e2.$slots.desc ? (i(), l("div", W, [u(e2.$slots, "desc", {}, () => [y(h(e2.desc), 1)], true)])) : f("", true)])], true), c("div", X, [u(e2.$slots, "default", {}, void 0, true), b(_, { name: "mc-form-item-error" }, { default: g(() => [E2.value ? (i(), l("div", Y, h(E2.value), 1)) : f("", true)]), _: 1 })])], 2));
|
|
116
|
-
} }), [["__scopeId", "data-v-
|
|
116
|
+
} }), [["__scopeId", "data-v-bff4206f"]]), ee = A(N), re = A(Z);
|
|
117
117
|
export {
|
|
118
118
|
ee as M,
|
|
119
119
|
J as a,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { _ as a, w as r } from "./utils-
|
|
1
|
+
import { defineComponent as e, ref as o, createElementBlock as c, openBlock as s, normalizeStyle as i, createElementVNode as n, normalizeClass as t } from "vue";
|
|
2
|
+
import { _ as a, w as r } from "./utils-unh4VH8x.js";
|
|
3
3
|
const m = a(e({ name: "McIcon", __name: "mc-icon", props: { name: {}, size: { default: 24 }, color: {} }, emits: ["click"], setup(e2, { expose: a2, emit: r2 }) {
|
|
4
|
-
const m2 = r2, l2 =
|
|
5
|
-
return a2({ ref: l2 }), (e3,
|
|
4
|
+
const m2 = r2, l2 = o();
|
|
5
|
+
return a2({ ref: l2 }), (e3, o2) => (s(), c("span", { class: "mc-icon", style: i({ fontSize: `${e3.size}px`, width: `${e3.size}px`, height: `${e3.size}px`, color: e3.color }) }, [n("i", { ref_key: "_ref", ref: l2, class: t(["mc-iconfont", `mc-icon--${e3.name}`]), onClick: o2[0] || (o2[0] = (e4) => ((e5) => {
|
|
6
6
|
m2("click", e5);
|
|
7
7
|
})(e4)) }, null, 2)], 4));
|
|
8
|
-
} }), [["__scopeId", "data-v-
|
|
8
|
+
} }), [["__scopeId", "data-v-3f56ebd0"]]), l = r(m);
|
|
9
9
|
export {
|
|
10
10
|
m as M,
|
|
11
11
|
l as a
|