dk-plus
Version:
35 lines (34 loc) • 1.29 kB
JavaScript
import i from "./index2.js";
import { openBlock as l, createElementBlock as a, normalizeClass as t, normalizeStyle as d, createElementVNode as n, withDirectives as m, mergeProps as p, vModelCheckbox as c, toDisplayString as r, renderSlot as k, createCommentVNode as h } from "vue";
import u from "../../_virtual/index.js";
const b = ["indeterminate"], f = { class: "dk-checkbox-label" }, y = { key: 0 }, V = { key: 0 };
function $(e, o, g, C, S, v) {
return l(), a("div", {
class: t(e.classList),
style: d(e.styleList)
}, [
n("label", {
class: t([e.checkedClass, "dk-checkbox-wrapper"])
}, [
m(n("input", p({
ref: "checkbox",
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.modelValue = s),
class: "dk-checkbox_inner",
indeterminate: e.indeterminate,
type: "checkbox"
}, e.$attrs, {
onChange: o[1] || (o[1] = (...s) => e.change && e.change(...s))
}), null, 16, b), [
[c, e.modelValue]
]),
n("span", f, r(e.labelValue), 1),
e.labelValue ? h("", !0) : (l(), a("span", y, [
e.hasSlot ? k(e.$slots, "default", { key: 1 }) : (l(), a("span", V, r(e.label), 1))
]))
], 2)
], 6);
}
const D = /* @__PURE__ */ u(i, [["render", $]]);
export {
D as default
};