UNPKG

@artmate/chat

Version:

借鉴字节开源react库AntX,通过vue实现的版本

28 lines (27 loc) 744 B
import { defineComponent as c, useSlots as p, createBlock as e, openBlock as o, unref as t, withCtx as r, createCommentVNode as u, renderSlot as a } from "vue"; import { ElDivider as d, ElText as f } from "element-plus"; const k = /* @__PURE__ */ c({ __name: "GroupTitle", props: { direction: {} }, setup(n) { const i = n, l = p(); return (s, m) => (o(), e(t(d), { "content-position": i.direction === "rtl" ? "right" : "left" }, { default: r(() => [ t(l).default ? (o(), e(t(f), { key: 0 }, { default: r(() => [ a(s.$slots, "default") ]), _: 3 })) : u("", !0) ]), _: 3 }, 8, ["content-position"])); } }); export { k as default };