UNPKG

helithre-vue

Version:

Helithre allows you to create pages and forms in Vue using JSON configuration

34 lines (33 loc) 839 B
import { defineComponent as c, createElementBlock as i, openBlock as p, Fragment as s, createElementVNode as r, unref as t, toDisplayString as a } from "vue"; import { B as l } from "./index-C2iHSUpI.js"; const u = ["for"], d = ["type", "id", "name", "value"], B = /* @__PURE__ */ c({ __name: "BasicInput", props: { conf: { type: Object, required: !0 }, response: { type: String, default: null, required: !1 } }, setup(o) { const n = o, e = new l(n.conf?.text, n.conf?.id, n.conf?.type); return (f, m) => (p(), i(s, null, [ r("label", { for: t(e).id }, a(t(e).text), 9, u), r("input", { type: t(e).type, id: t(e).id, name: t(e).id, value: o.response }, null, 8, d) ], 64)); } }); export { B as default };