UNPKG

@wetspace/pro-components

Version:
39 lines (38 loc) 1.06 kB
import { defineComponent as i, openBlock as l, createBlock as m, unref as e, normalizeClass as a, withCtx as t, createElementBlock as p, createVNode as s, createTextVNode as u, toDisplayString as f, createCommentVNode as d, renderSlot as _ } from "vue"; import { useNamespace as g, ElCol as C, ElText as k, ElRow as x } from "element-plus"; const S = /* @__PURE__ */ i({ __name: "form-group", props: { title: String }, setup(n) { const o = g("form-group"), r = n; return (c, E) => (l(), m(e(C), { class: a(e(o).b()) }, { default: t(() => [ r.title ? (l(), p("div", { key: 0, class: a(e(o).e("title")) }, [ s(e(k), { tag: "b" }, { default: t(() => [ u(f(r.title), 1) ]), _: 1 }) ], 2)) : d("", !0), s(e(x), { gutter: 20 }, { default: t(() => [ _(c.$slots, "default") ]), _: 3 }) ]), _: 3 }, 8, ["class"])); } }); export { S as default };