SSvg.js 530 B

123456789101112131415161718192021222324
  1. import { openBlock as t, createElementBlock as i, createElementVNode as n } from "vue";
  2. const r = ["width", "height", "fill"], l = ["xlink:href"], a = {
  3. __name: "SSvg",
  4. props: {
  5. name: String,
  6. size: [String, Number],
  7. color: String
  8. },
  9. setup(e) {
  10. return (o, c) => (t(), i("svg", {
  11. "aria-hidden": "true",
  12. width: e.size,
  13. height: e.size,
  14. fill: e.color
  15. }, [
  16. n("use", {
  17. "xlink:href": `#icon-${e.name}`
  18. }, null, 8, l)
  19. ], 8, r));
  20. }
  21. };
  22. export {
  23. a as default
  24. };