SIcon.js 842 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { ref as a, watch as c, createBlock as l, openBlock as n, resolveDynamicComponent as s, normalizeStyle as m, normalizeClass as i } from "vue";
  2. import { k as u } from "./index2.js";
  3. const f = {
  4. __name: "SIcon",
  5. props: {
  6. name: {
  7. type: String,
  8. required: !0
  9. },
  10. size: {
  11. type: Number,
  12. default: 16
  13. },
  14. color: {
  15. type: String,
  16. default: ""
  17. }
  18. },
  19. setup(e) {
  20. const r = e, o = a("var(--s-color)");
  21. return c(
  22. () => r.color,
  23. (t) => {
  24. o.value = t || "var(--s-color)";
  25. },
  26. { immediate: !0 }
  27. ), (t, p) => (n(), l(s(e.name), {
  28. class: i(e.name),
  29. style: m({ fontSize: e.size + "px", color: o.value })
  30. }, null, 8, ["class", "style"]));
  31. }
  32. }, v = /* @__PURE__ */ u(f, [["__scopeId", "data-v-001d834f"]]);
  33. export {
  34. v as default
  35. };