tyh-ui2
Version:
The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.
26 lines (25 loc) • 608 B
JavaScript
import { defineComponent as o, openBlock as t, createElementBlock as r, normalizeClass as l, normalizeStyle as s, renderSlot as n } from "vue";
import { Props as p } from "./index2.js";
const a = o({
name: "TyhText"
}), y = /* @__PURE__ */ o({
...a,
props: p,
setup(m) {
return (e, c) => (t(), r("span", {
class: l([
"tyh-text",
{
[`tyh-text-${e.type}`]: e.type,
"tyh-text-block": e.block
}
]),
style: s({ color: e.color, fontSize: `${e.size}px` })
}, [
n(e.$slots, "default")
], 6));
}
});
export {
y as default
};