@yqg/low-code-component-lib
Version:
fintopia web lowcode component library
24 lines (23 loc) • 829 B
JavaScript
import { defineComponent as c, computed as e, createElementBlock as s, openBlock as l, normalizeStyle as u, toDisplayString as f } from "vue";
const x = /* @__PURE__ */ c({
__name: "index",
props: {
status: {},
activeColor: {},
inactiveColor: {},
activeText: {},
inactiveText: {},
fontSize: {},
fontWeight: {}
},
setup(o) {
const t = o, n = e(() => t.status ? t.activeText || "启用" : t.inactiveText || "停用"), a = e(() => t.status ? t.activeColor || "#22c55e" : t.inactiveColor || "#ef4444"), i = e(() => (t.fontSize || 12) + "px"), r = e(() => t.fontWeight || "normal");
return (p, v) => (l(), s("span", {
style: u({ color: a.value, fontSize: i.value, fontWeight: r.value })
}, f(n.value), 5));
}
});
export {
x as default
};
//# sourceMappingURL=index.vue.js.map