UNPKG

@aplus-frontend/ui

Version:

39 lines (38 loc) 1.3 kB
import { defineComponent as p, toRef as t, createBlock as n, openBlock as c, unref as o, mergeProps as s, withCtx as f, renderSlot as u } from "vue"; import { useProvideApTextGroup as m } from "./context.mjs"; import "../config-provider/index.mjs"; import { Space as d } from "@aplus-frontend/antdv"; import { omit as v } from "lodash-unified"; import { useNamespace as y } from "../config-provider/hooks/use-namespace.mjs"; const z = /* @__PURE__ */ p({ name: "ApTextGroup", __name: "group", props: { colon: { type: Boolean, default: void 0 }, vertical: { type: Boolean, default: void 0 }, labelStyle: { default: void 0 }, prefixCls: {}, size: { default: () => [8, 0] }, direction: { default: "vertical" }, align: { default: "baseline" }, wrap: { type: Boolean, default: !1 } }, setup(a) { const e = a, { b: r, m: i } = y("ap-text-group"); return m({ colon: t(e.colon), vertical: t(e.vertical), labelStyle: t(e.labelStyle) }), (l, b) => (c(), n(o(d), s({ class: [o(r)(), l.direction === "horizontal" ? o(i)("horizontal") : null] }, o(v)(e, ["colon", "vertical", "labelStyle"])), { default: f(() => [ u(l.$slots, "default") ]), _: 3 }, 16, ["class"])); } }); export { z as default };