UNPKG

tyh-ui2

Version:

The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.

27 lines (26 loc) 642 B
import { defineComponent as n, computed as t, openBlock as c, createElementBlock as p, normalizeClass as i, unref as o, normalizeStyle as m, renderSlot as f } from "vue"; import { Props as g } from "./index2.js"; const u = n({ name: "TyhTagging" }), h = /* @__PURE__ */ n({ ...u, props: g, setup(s) { const e = s, r = t(() => [ "tyh-tagging", `tyh-tagging-${e.type}` ]), l = t(() => ({ fontSize: `${e.size}px`, color: e.color })); return (a, y) => (c(), p("span", { class: i(o(r)), style: m(o(l)) }, [ f(a.$slots, "default") ], 6)); } }); export { h as default };