mc-plus 1.0.63 → 1.0.64
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/index.js +7 -7
- package/dist/es/{mc-collapse-4DWyiXIU.js → mc-collapse-DUOKmqfY.js} +1 -1
- package/dist/es/{mc-input-DJB38OBY.js → mc-input-CqBzOAz5.js} +18 -18
- package/dist/es/{mc-select-B-r8B--e.js → mc-select-DZzvR6r3.js} +1 -1
- package/dist/es/{mc-step-CkJYxpIa.js → mc-step-8_bbfcnk.js} +2 -3
- package/dist/es/{mc-tab-CetXr0Xg.js → mc-tab-Bpuz-FF0.js} +153 -146
- package/dist/es/theme/mc-collapse.css +1 -1
- package/dist/es/theme/mc-step.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/index.css +1 -1
- package/dist/types/components/mc-table-plus/hooks/useTableContext.d.ts +1 -0
- package/dist/types/components/mc-table-plus/index.d.ts +3 -1
- package/dist/types/components/mc-table-plus/types/mc-table-column.d.ts +1 -1
- package/dist/types/components/mc-table-plus/types/mc-table.d.ts +7 -1
- package/dist/types/components/mc-table-plus/utils/generateColumns.d.ts +8 -2
- 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 +1 -1
package/dist/es/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { p as s, m } from "./utils-CPLhakO-.js";
|
|
|
2
2
|
import { M as o } from "./mc-alert-message-CinXZ0tM.js";
|
|
3
3
|
import { a as r } from "./mc-button-jjZ1cFJx.js";
|
|
4
4
|
import { a as c, b as p } from "./mc-checkbox-DBTBERJQ.js";
|
|
5
|
-
import { M as i } from "./mc-collapse-
|
|
6
|
-
import { a } from "./mc-collapse-
|
|
5
|
+
import { M as i } from "./mc-collapse-DUOKmqfY.js";
|
|
6
|
+
import { a } from "./mc-collapse-DUOKmqfY.js";
|
|
7
7
|
import { M as j } from "./mc-copy-BcM4lyRW.js";
|
|
8
8
|
import { M } from "./mc-count-CMSVLQR8.js";
|
|
9
9
|
import { M as l } from "./mc-currency-icon-jT9o6zvb.js";
|
|
@@ -12,7 +12,7 @@ import { M as n } from "./mc-drawer-CNeHLu-v.js";
|
|
|
12
12
|
import { a as d } from "./mc-footer-DTmWsLYW.js";
|
|
13
13
|
import { M as x, b as g } from "./mc-form-DDfiOG9s.js";
|
|
14
14
|
import { a as h, b as y } from "./mc-icon-IbJYufG-.js";
|
|
15
|
-
import { M as w, a as k } from "./mc-input-
|
|
15
|
+
import { M as w, a as k } from "./mc-input-CqBzOAz5.js";
|
|
16
16
|
import { M as v } from "./mc-lightbox-BsUeQpwu.js";
|
|
17
17
|
import { M as A } from "./mc-loading-CXadQqQf.js";
|
|
18
18
|
import { M as C } from "./mc-modal-header-5_k9U4WX.js";
|
|
@@ -22,13 +22,13 @@ import { a as q } from "./mc-progress-bar-XvvNZ-ef.js";
|
|
|
22
22
|
import { M as z, a as B } from "./mc-radio-BcfwMaZZ.js";
|
|
23
23
|
import { M as I } from "./mc-reset-B-jk5Wxa.js";
|
|
24
24
|
import { M as P } from "./mc-secondary-menu-CLZVBsLM.js";
|
|
25
|
-
import { M as D, a as E, b as F, c as G, d as H, e as J, f as K } from "./mc-select-
|
|
25
|
+
import { M as D, a as E, b as F, c as G, d as H, e as J, f as K } from "./mc-select-DZzvR6r3.js";
|
|
26
26
|
import { M as L } from "./mc-status-C2V51mhO.js";
|
|
27
|
-
import { M as N, a as O, b as Q, c as R, d as U, e as V, f as W } from "./mc-step-
|
|
27
|
+
import { M as N, a as O, b as Q, c as R, d as U, e as V, f as W } from "./mc-step-8_bbfcnk.js";
|
|
28
28
|
import { a as X } from "./mc-success-icon-BiN_K4dV.js";
|
|
29
29
|
import { M as Y } from "./mc-switch-3iWF558F.js";
|
|
30
|
-
import { M as Z, a as $, b as _, c as ss, d as ms } from "./mc-tab-
|
|
31
|
-
import { u, e, f } from "./mc-tab-
|
|
30
|
+
import { M as Z, a as $, b as _, c as ss, d as ms } from "./mc-tab-Bpuz-FF0.js";
|
|
31
|
+
import { u, e, f } from "./mc-tab-Bpuz-FF0.js";
|
|
32
32
|
import { M as as } from "./mc-tag-BBOwBzDa.js";
|
|
33
33
|
import { M as os } from "./mc-textarea-DJcRz9YP.js";
|
|
34
34
|
import { M as rs, a as ts } from "./mc-title-DR3kaXNt.js";
|
|
@@ -17,7 +17,7 @@ const g = Symbol("COLLAPSE_CONTEXT"), I = "McCollapse", M = { class: "mc-collaps
|
|
|
17
17
|
e3 > -1 ? l2.splice(e3, 1) : l2.push(a2), p2(l2);
|
|
18
18
|
}
|
|
19
19
|
} }), (e3, a2) => (t(), c("div", M, [i(e3.$slots, "default", {}, void 0, true)]));
|
|
20
|
-
} }), [["__scopeId", "data-v-
|
|
20
|
+
} }), [["__scopeId", "data-v-bd05404d"]]), w = { class: "mc-collapse-item-header" }, y = { class: "mc-collapse-item-title" }, N = { class: "triangle-icon" }, O = { class: "mc-collapse-item-wapper" }, $ = { class: "mc-collapse-item-content" }, j = C(e({ name: "McCollapseItem", __name: "mc-collapse-item", props: { name: {}, title: {}, disabled: { type: Boolean } }, setup(e2) {
|
|
21
21
|
const a2 = m(g, void 0), l2 = d(() => {
|
|
22
22
|
var _a;
|
|
23
23
|
return (_a = a2 == null ? void 0 : a2.activeNames.value) == null ? void 0 : _a.includes(e2.name);
|
|
@@ -17,17 +17,17 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
17
17
|
}), u([r2, p2], ([e3, t2]) => {
|
|
18
18
|
e3 || t2 ? s2.setInputGroupActived(true, i2.value) : s2.setInputGroupActived(false, i2.value);
|
|
19
19
|
}), { inputGroupDisabled: l2 };
|
|
20
|
-
}, R = { key: 0, class: "mc-input__prefix" }, D = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], z = { key: 2, class: "mc-input__password" }, H = { key: 0, class: "mc-input__suffix" }, M = { key: 4, class: "mc-input-append" }, T = { class: "mc-input-append-text" },
|
|
21
|
-
const h2 = a2, { formatter: A2, parser: F2 } = h2, C2 = I2, j2 = e(),
|
|
22
|
-
if (0 === t2) {
|
|
23
|
-
const t3 = e3.indexOf(".");
|
|
24
|
-
return -1 !== t3 ? e3.slice(0, t3) : e3;
|
|
25
|
-
}
|
|
20
|
+
}, R = { key: 0, class: "mc-input__prefix" }, D = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], z = { key: 2, class: "mc-input__password" }, H = { key: 0, class: "mc-input__suffix" }, M = { key: 4, class: "mc-input-append" }, T = { class: "mc-input-append-text" }, q = C(F(s({ name: "McInput", __name: "mc-input", props: { modelValue: {}, width: {}, height: {}, id: {}, type: { default: "text" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please enter" }, readonly: { type: Boolean, default: false }, autocomplete: { default: "off" }, autofocus: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, maxlength: {}, currencyAccuracy: {}, inputGroupPosition: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false }, textAlign: { default: "left" }, formatter: {}, parser: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "paste", "clear", "delete"], setup(a2, { expose: s2, emit: I2 }) {
|
|
21
|
+
const h2 = a2, { formatter: A2, parser: F2 } = h2, C2 = I2, j2 = e(), q2 = t(() => E(h2.modelValue) ? "" : k(h2.modelValue)), K2 = (e2) => ("number" === h2.type ? e2 = ((e3) => e3.replace(/[^\d]/g, ""))(e2) : "currency" === h2.type && (e2 = ((e3, t2 = 8) => {
|
|
26
22
|
e3 = e3.replace(/(?:[^0-9.]+)/g, "");
|
|
27
23
|
const [a3, ...u2] = e3.split(".");
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
if (u2.length) {
|
|
25
|
+
const e4 = u2.join("");
|
|
26
|
+
return 0 === t2 ? a3 : `${a3}.${e4.substring(0, t2)}`;
|
|
27
|
+
}
|
|
28
|
+
return a3;
|
|
29
|
+
})(e2, h2.currencyAccuracy)), B(F2) && (e2 = F2(e2)), e2), O2 = () => {
|
|
30
|
+
const e2 = j2.value, t2 = (a3 = q2.value, "number" === h2.type ? a3 = ((e3) => e3.replace(/[^\d]/g, ""))(a3) : "currency" === h2.type && (a3 = ((e3) => {
|
|
31
31
|
e3 = e3.toString();
|
|
32
32
|
const [t3, a4] = e3.toString().split("."), u2 = t3.replace(/(\d)(?=(\d{3})+$)/g, "$1,");
|
|
33
33
|
return V(e3, ".") ? `${u2}.${a4}` : u2;
|
|
@@ -36,7 +36,7 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
36
36
|
e2 && e2.value !== t2 && (e2.value = t2);
|
|
37
37
|
};
|
|
38
38
|
l(() => {
|
|
39
|
-
|
|
39
|
+
O2();
|
|
40
40
|
});
|
|
41
41
|
const J2 = e(false), L = t(() => "password" === h2.type), { formItem: N, formId: Q, formDisabled: U, validateStyle: W, statusIcon: X } = w({ externalDisabled: t(() => !!(ue == null ? void 0 : ue.inputGroupDisabled.value)) }), { wrapperRef: Y, isFocused: Z, handleFocus: ee, handleBlur: te } = b(j2, { afterBlur() {
|
|
42
42
|
N == null ? void 0 : N.validate("blur");
|
|
@@ -46,7 +46,7 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
46
46
|
C2("paste", e2);
|
|
47
47
|
};
|
|
48
48
|
u(() => h2.currencyAccuracy, () => {
|
|
49
|
-
C2("update:modelValue", q2
|
|
49
|
+
C2("update:modelValue", K2(q2.value));
|
|
50
50
|
});
|
|
51
51
|
const { recordCursor: ie, setCursor: ne } = function(t2) {
|
|
52
52
|
const a3 = e();
|
|
@@ -71,17 +71,17 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
71
71
|
} };
|
|
72
72
|
}(j2), oe = async (e2) => {
|
|
73
73
|
const { value: t2 } = e2.target;
|
|
74
|
-
ie(), C2("update:modelValue",
|
|
74
|
+
ie(), C2("update:modelValue", K2(t2)), C2("input", K2(t2)), await g(), O2(), ne(), N == null ? void 0 : N.validate("input");
|
|
75
75
|
}, re = (e2) => {
|
|
76
76
|
const { value: t2 } = e2.target;
|
|
77
|
-
C2("change",
|
|
77
|
+
C2("change", K2(t2));
|
|
78
78
|
}, pe = () => {
|
|
79
79
|
U.value || (J2.value = !J2.value);
|
|
80
80
|
};
|
|
81
81
|
return u(() => U.value, (e2) => {
|
|
82
82
|
e2 && (J2.value = false);
|
|
83
|
-
}), u(
|
|
84
|
-
|
|
83
|
+
}), u(q2, () => {
|
|
84
|
+
O2();
|
|
85
85
|
}), s2({ ref: j2, focus: async () => {
|
|
86
86
|
var _a;
|
|
87
87
|
await g(), (_a = j2.value) == null ? void 0 : _a.focus();
|
|
@@ -94,7 +94,7 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
94
94
|
}, clear: () => {
|
|
95
95
|
C2("update:modelValue", ""), C2("input", ""), C2("change", ""), C2("clear"), N == null ? void 0 : N.clearValidate();
|
|
96
96
|
} }), (e2, t2) => (n(), i("div", { class: r(["mc-input", { "mc-input--disabled": p(U), "mc-input--focused": p(Z), "mc-input--inputed": e2.modelValue, "mc-input-hovering": p(ae), [p(W)]: p(W) }]), style: o({ width: e2.width, height: e2.height }), ref_key: "wrapperRef", ref: Y }, [e2.$slots.prefix || e2.prefixIcon ? (n(), i("div", R, [f(e2.$slots, "prefix", {}, () => [e2.prefixIcon ? (n(), v(G, { key: 0, class: "mc-input-icon", name: e2.prefixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true), c("input", { class: "mc-input__inner", style: o({ textAlign: e2.textAlign }), ref_key: "inputRef", ref: j2, id: p(Q), type: L.value ? J2.value ? "text" : "password" : "text", disabled: p(U), readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, maxlength: e2.maxlength, onInput: oe, onChange: re, onFocus: t2[0] || (t2[0] = (...e3) => p(ee) && p(ee)(...e3)), onBlur: t2[1] || (t2[1] = (...e3) => p(te) && p(te)(...e3)), onKeydown: m(se, ["delete"]), onPaste: le }, null, 44, D), p(X) ? (n(), i("div", { key: 1, class: r(["mc-input__status", p(W)]) }, [x(G, { name: p(X), size: 24 }, null, 8, ["name"])], 2)) : d("", true), "password" === e2.type ? (n(), i("div", z, [x(G, { class: "mc-input-icon", name: J2.value ? "Review-Hidden" : "Review", size: 24, onClick: pe }, null, 8, ["name"])])) : (n(), i(y, { key: 3 }, [e2.$slots.suffix || e2.suffixIcon ? (n(), i("div", H, [f(e2.$slots, "suffix", {}, () => [e2.suffixIcon ? (n(), v(G, { key: 0, name: e2.suffixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true)], 64)), e2.$slots.append ? (n(), i("div", M, [c("div", T, [f(e2.$slots, "append", {}, void 0, true)])])) : d("", true)], 6));
|
|
97
|
-
} }), [["__scopeId", "data-v-ca647dfd"]])),
|
|
97
|
+
} }), [["__scopeId", "data-v-ca647dfd"]])), K = ["id"], O = { key: 0, class: "mc-input-group-divider" }, J = C(F(s({ name: "McInputGroup", __name: "mc-input-group", props: { disabled: { type: Boolean, default: false }, suffixFlex: { default: 1 }, prefixFlex: { default: 1 } }, setup(a2) {
|
|
98
98
|
const { isError: u2, isExpanded: s2, isPrefixActived: l2, isSuffixActived: v2, setInputGroupValidate: m2, setInputGroupExpanded: x2, setInputGroupActived: y2 } = (() => {
|
|
99
99
|
const a3 = e("init"), u3 = t(() => "error" === a3.value), s3 = e(false), l3 = e(false), i2 = e(false);
|
|
100
100
|
return { validateStatus: a3, isError: u3, isExpanded: s3, isPrefixActived: l3, isSuffixActived: i2, setInputGroupValidate: (e2) => {
|
|
@@ -105,11 +105,11 @@ const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
|
105
105
|
"prefix" === t2 ? l3.value = e2 : i2.value = e2;
|
|
106
106
|
} };
|
|
107
107
|
})(), { formId: g2, formDisabled: h2 } = A(), b2 = t(() => !l2.value && !v2.value && !s2.value || h2.value);
|
|
108
|
-
return I(j, { disabled: h2, setInputGroupExpanded: x2, setInputGroupValidate: m2, setInputGroupActived: y2 }), (e2, t2) => (n(), i("div", { id: p(g2), class: r(["mc-input-group", { "mc-input-group-disabled": p(h2) }]) }, [c("div", { class: r(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": p(s2), "mc-input-group-prefix-actived": p(l2), "mc-input-group-prefix-error": p(u2) }]), style: o({ flex: e2.prefixFlex }) }, [f(e2.$slots, "prefix", {}, void 0, true)], 6), b2.value ? (n(), i("div",
|
|
108
|
+
return I(j, { disabled: h2, setInputGroupExpanded: x2, setInputGroupValidate: m2, setInputGroupActived: y2 }), (e2, t2) => (n(), i("div", { id: p(g2), class: r(["mc-input-group", { "mc-input-group-disabled": p(h2) }]) }, [c("div", { class: r(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": p(s2), "mc-input-group-prefix-actived": p(l2), "mc-input-group-prefix-error": p(u2) }]), style: o({ flex: e2.prefixFlex }) }, [f(e2.$slots, "prefix", {}, void 0, true)], 6), b2.value ? (n(), i("div", O)) : d("", true), c("div", { class: r(["mc-input-group-suffix", { "mc-input-group-suffix-expanded": p(s2), "mc-input-group-suffix-actived": p(v2), "mc-input-group-suffix-error": p(u2) }]), style: o({ flex: e2.suffixFlex }) }, [f(e2.$slots, "suffix", {}, void 0, true)], 6)], 10, K));
|
|
109
109
|
} }), [["__scopeId", "data-v-9b76b4d0"]]));
|
|
110
110
|
export {
|
|
111
111
|
j as I,
|
|
112
|
-
|
|
112
|
+
q as M,
|
|
113
113
|
J as a,
|
|
114
114
|
P as u
|
|
115
115
|
};
|
|
@@ -9,7 +9,7 @@ import { _ as Q } from "./mc-title-DR3kaXNt.js";
|
|
|
9
9
|
import { M as X } from "./mc-footer-DTmWsLYW.js";
|
|
10
10
|
import { c as Y, z as Z, r as ee, f as le, m as ae, b as te, a as se, y as oe, u as ue, A as ce, B as ne, i as re, C as ie, D as de, E as ve } from "./vendor-COcyTY4s.js";
|
|
11
11
|
import { _ as pe, w as me } from "./utils-CPLhakO-.js";
|
|
12
|
-
import { I as he, u as fe } from "./mc-input-
|
|
12
|
+
import { I as he, u as fe } from "./mc-input-CqBzOAz5.js";
|
|
13
13
|
import { M as ge } from "./mc-popper-B08tDa9O.js";
|
|
14
14
|
const ye = Symbol("selectContext"), be = Symbol("selectGroupContext"), we = { key: 0, class: "mc-select-selected-content" }, _e = ["placeholder", "readonly", "disabled"], ke = { class: "mc-select-dropdown-header-content" }, Ve = { class: "mc-select-dropdown-content" }, xe = { class: "mc-select-dropdown" }, Oe = { key: 0, class: "mc-select-no-data" }, Se = pe(e({ name: "McSelect", __name: "mc-select", props: { modelValue: {}, placeholder: { default: "Please select" }, disabled: { type: Boolean }, multiple: { type: Boolean, default: false }, width: {}, height: {}, search: { type: Boolean }, allowReset: { type: Boolean, default: true }, allowSelectAll: { type: Boolean, default: true } }, emits: ["update:modelValue", "change", "blur", "focus", "reset"], setup(e2, { emit: O2 }) {
|
|
15
15
|
const S2 = e2, B2 = O2, A2 = l(), C2 = l(), M2 = l(), R2 = a(() => S2.multiple), I2 = (e3) => R2.value && Array.isArray(e3), j2 = l([]), P2 = a(() => Y(Be2.value) ? j2.value : j2.value.filter((e3) => Z(ee(e3.label ?? e3.value)).includes(Z(Be2.value)))), { wrapperRef: $2, isFocused: D2, handleFocus: z2, handleBlur: F2 } = G(A2, { afterBlur() {
|
|
@@ -100,11 +100,10 @@ const z = { class: "mc-step-number-container" }, F = { class: "mc-step-item-numb
|
|
|
100
100
|
let s2 = e3 - 1, t2 = k2.value[s2];
|
|
101
101
|
((_b = g2.value) == null ? void 0 : _b.isChild) && g2.value.parentStep === t2 && (t2 = k2.value[s2 - 1]), "first-child" === a2.previousBehavior && (t2 == null ? void 0 : t2.isChild) && !P((_c = t2.parentStep) == null ? void 0 : _c.index) && (s2 = t2.parentStep.index + 1, t2 = k2.value[s2]), (t2 == null ? void 0 : t2.step) && R2(t2.step);
|
|
102
102
|
}
|
|
103
|
-
} }),
|
|
104
|
-
}), (e3, s2) => (i(), n("div", Z, [o("div", ee, [(i(true), n(u, null, m(S(k2), (e4) => (i(), n(u, { key: e4.step }, [S(_2)(e4) ? (i(), n("div", { key: 0, class: p(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": S(x2)(e4), "mc-step-item-success": S(I2)(e4) }]) }, [o("div", { class: "mc-step-item-indicator", onClick: (s3) => ((e5) => {
|
|
103
|
+
} }), (e3, s2) => (i(), n("div", Z, [o("div", ee, [(i(true), n(u, null, m(S(k2), (e4) => (i(), n(u, { key: e4.step }, [S(_2)(e4) ? (i(), n("div", { key: 0, class: p(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": S(x2)(e4), "mc-step-item-success": S(I2)(e4) }]) }, [o("div", { class: "mc-step-item-indicator", onClick: (s3) => ((e5) => {
|
|
105
104
|
C2("click:step", e5.step);
|
|
106
105
|
})(e4) }, [o("div", te, [e4.isChild || S(P)(e4.parentIndex) ? (i(), n("div", le)) : (i(), n("div", ce, [S(I2)(e4) ? (i(), v(w, { key: 0 })) : (i(), n(u, { key: 1 }, [e4.iconContent ? (i(), v(h(e4.iconContent), { key: e4.step, step: e4.step, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "isSuccess", "isActived"])) : e4.icon ? (i(), v(N, { key: 1, name: e4.icon }, null, 8, ["name"])) : (i(), n(u, { key: 2 }, [b(r(e4.parentIndex + 1), 1)], 64))], 64))]))])], 8, se), o("div", ae, [o("div", ne, [o("div", ie, [e4.labelContent ? (i(), v(h(e4.labelContent), { key: e4.step, step: e4.step, label: e4.label, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "label", "isSuccess", "isActived"])) : (i(), n("div", pe, r(e4.label), 1))]), o("div", oe, [e4.descContent ? (i(), v(h(e4.descContent), { key: e4.step, step: e4.step, desc: e4.desc, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "desc", "isSuccess", "isActived"])) : (i(), n("div", de, r(e4.desc), 1))])]), S(V2)(e4) ? (i(), n("div", ue, [(i(), v(h(e4.content), { key: e4.step, step: e4.step, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "isSuccess", "isActived"]))])) : d("", true)])], 2)) : d("", true)], 64))), 128))])]));
|
|
107
|
-
} }), [["__scopeId", "data-v-
|
|
106
|
+
} }), [["__scopeId", "data-v-35859b4d"]]), ve = { class: "mc-step-item-plus" }, re = e({ name: X, __name: "mc-step-item-plus", props: { icon: {}, key: {}, label: {}, desc: {}, showContent: { type: Boolean }, success: { type: Boolean } }, setup: (e2) => (e3, s2) => (i(), n("div", ve)) }), he = { class: "mc-step-child-item-plus" }, ye = e({ name: Y, __name: "mc-step-child-item-plus", props: { key: {}, label: {}, desc: {}, showContent: { type: Boolean }, success: { type: Boolean } }, setup: (e2) => (e3, s2) => (i(), n("div", he)) }), fe = E(me), Se = E(re), be = E(ye), Ce = Symbol("StepV2Context"), ke = Symbol("StepItemV2Context"), ge = { class: "mc-step-v2" }, xe = e({ name: "McStepV2", __name: "mc-step-v2", props: { modelValue: {}, succeed: { type: Boolean, default: void 0 }, showContent: { type: Boolean, default: false } }, emits: ["update:modelValue", "change"], setup(e2, { expose: a2 }) {
|
|
108
107
|
const p2 = e2, o2 = t([]), d2 = t(-1), u2 = (e3) => {
|
|
109
108
|
e3 > -1 ? e3 > o2.value.length - 1 ? d2.value = o2.value.length - 1 : d2.value = e3 : d2.value = -1;
|
|
110
109
|
}, m2 = () => {
|