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