bootstrap-vue-wrapper
Version:
Bootstrap 5 components in Vue3 wrapper.
44 lines (43 loc) • 1.59 kB
JavaScript
import a from "./BsCheckbox.vue2.js";
import { openBlock as t, createElementBlock as o, normalizeClass as r, createElementVNode as s, mergeProps as u, toDisplayString as l, createCommentVNode as d } from "vue";
import p from "../../_virtual/_plugin-vue_export-helper.js";
const m = ["id", "value", "checked", "aria-describedby"], v = ["for", "textContent"], f = ["textContent"], k = ["id", "textContent"];
function b(e, n, c, h, C, I) {
return t(), o("div", {
class: r(["form-check", e.classContainer])
}, [
s("input", u({
id: e.id,
ref: "inputRef",
value: e.modelValue
}, e.$attrs, {
type: "checkbox",
class: "form-check-input",
checked: e.isChecked,
"aria-describedby": e.hint !== void 0 ? e.getHintId() : void 0,
onInput: n[0] || (n[0] = (...i) => e.onInput && e.onInput(...i)),
onInvalid: n[1] || (n[1] = (...i) => e.onInvalid && e.onInvalid(...i))
}), null, 16, m),
e.label !== void 0 ? (t(), o("label", {
key: 0,
for: e.id,
class: "form-check-label",
textContent: l(e.label)
}, null, 8, v)) : d("", !0),
e.validatorEnabled && e.validator.getInvalidMessage() !== null ? (t(), o("div", {
key: 1,
class: "invalid-feedback",
textContent: l(e.validator.getInvalidMessage())
}, null, 8, f)) : d("", !0),
e.hint !== void 0 ? (t(), o("div", {
key: 2,
id: e.getHintId(),
class: "form-text",
textContent: l(e.hint)
}, null, 8, k)) : d("", !0)
], 2);
}
const B = /* @__PURE__ */ p(a, [["render", b]]);
export {
B as default
};