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