@maxtropy/v-components 0.1.16-beta.3 → 0.1.16-beta.5
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.
|
@@ -26060,7 +26060,7 @@ function mh(e) {
|
|
|
26060
26060
|
}
|
|
26061
26061
|
});
|
|
26062
26062
|
}
|
|
26063
|
-
const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-
|
|
26063
|
+
const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-f095c961></div><div class="line line--right" data-v-f095c961></div><div class="dot dot--top-left" data-v-f095c961></div><div class="dot dot--bottom-left" data-v-f095c961></div><div class="dot dot--top-right" data-v-f095c961></div><div class="dot dot--bottom-right" data-v-f095c961></div>', 6), IN = [
|
|
26064
26064
|
EN
|
|
26065
26065
|
], BN = /* @__PURE__ */ Y({
|
|
26066
26066
|
__name: "MxButton",
|
|
@@ -26086,30 +26086,35 @@ const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-118f4691></di
|
|
|
26086
26086
|
disabled: {
|
|
26087
26087
|
type: Boolean,
|
|
26088
26088
|
default: !1
|
|
26089
|
+
},
|
|
26090
|
+
autoInsertSpace: {
|
|
26091
|
+
type: Boolean,
|
|
26092
|
+
default: !0
|
|
26089
26093
|
}
|
|
26090
26094
|
},
|
|
26091
26095
|
emits: ["click"],
|
|
26092
26096
|
setup(e, { emit: t }) {
|
|
26093
|
-
const n = e, o = T(0), r = (
|
|
26094
|
-
let
|
|
26095
|
-
|
|
26096
|
-
}, a = gh(n.authCode), l = Uo.get(Wo), i = E(() => n.type === "dashed" ? "" : n.type), u = E(() => (n.disabled ?? !1) || !!n.authCode && !a.value), c = E(() => n.authCode && !a.value ? !n.noShowWhenNotAuth : !0);
|
|
26097
|
-
return (
|
|
26097
|
+
const n = e, o = T(0), r = (d) => {
|
|
26098
|
+
let f = d.target;
|
|
26099
|
+
d.target.nodeName === "SPAN" && (f = d.target.parentNode), f.blur(), (/* @__PURE__ */ new Date()).getTime() - o.value > n.wait && t("click", d), o.value = (/* @__PURE__ */ new Date()).getTime();
|
|
26100
|
+
}, a = gh(n.authCode), l = Uo.get(Wo), i = E(() => n.type === "dashed" ? "" : n.type), u = E(() => (n.disabled ?? !1) || !!n.authCode && !a.value), c = E(() => n.authCode && !a.value ? !n.noShowWhenNotAuth : !0), p = E(() => n.autoInsertSpace);
|
|
26101
|
+
return (d, f) => Le((C(), N("div", {
|
|
26098
26102
|
class: S({ "mx-button": !0, "mx-btn-dark": s(l) === s(sn).DARK })
|
|
26099
26103
|
}, [
|
|
26100
26104
|
q(s(ho), Pe(n, {
|
|
26101
26105
|
type: i.value,
|
|
26102
26106
|
disabled: u.value,
|
|
26107
|
+
"auto-insert-space": p.value,
|
|
26103
26108
|
class: { "mx-button--dashed": n.type === "dashed" },
|
|
26104
26109
|
onClick: r
|
|
26105
26110
|
}), tt({ _: 2 }, [
|
|
26106
|
-
Me(
|
|
26107
|
-
name:
|
|
26111
|
+
Me(d.$slots, (v, m, g) => ({
|
|
26112
|
+
name: m,
|
|
26108
26113
|
fn: Q(() => [
|
|
26109
|
-
oe(
|
|
26114
|
+
oe(d.$slots, m, {}, void 0, !0)
|
|
26110
26115
|
])
|
|
26111
26116
|
}))
|
|
26112
|
-
]), 1040, ["type", "disabled", "class"]),
|
|
26117
|
+
]), 1040, ["type", "disabled", "auto-insert-space", "class"]),
|
|
26113
26118
|
n.type === "primary" && s(l) === s(sn).DARK ? (C(), N("div", {
|
|
26114
26119
|
key: 0,
|
|
26115
26120
|
class: S({ "mx-button-dot--disabled": u.value })
|
|
@@ -26119,7 +26124,7 @@ const EN = /* @__PURE__ */ hp('<div class="line line--left" data-v-118f4691></di
|
|
|
26119
26124
|
]);
|
|
26120
26125
|
}
|
|
26121
26126
|
});
|
|
26122
|
-
const un = /* @__PURE__ */ kt(BN, [["__scopeId", "data-v-
|
|
26127
|
+
const un = /* @__PURE__ */ kt(BN, [["__scopeId", "data-v-f095c961"]]);
|
|
26123
26128
|
un.install = (e) => {
|
|
26124
26129
|
e.component(un.__name, un);
|
|
26125
26130
|
};
|