vue-icons-plus
Version:
SVG vue icons of popular icon packs using ES6 imports
49 lines (48 loc) • 1.01 kB
JavaScript
import { h as o, version as h } from "vue";
const u = (c) => ({
props: {
className: String,
color: String,
size: { type: [String, Number], default: 24 }
},
data() {
return {
treeData: c
};
},
render() {
const { className: s, color: a, size: r, treeData: l } = this, i = {
stroke: "currentColor",
fill: "currentColor",
"stroke-width": "0",
xmlns: "http://www.w3.org/2000/svg"
}, n = (e) => o(
e.tag,
h.startsWith("2.7.") ? {
attrs: {
...i,
...e.attr,
height: r,
width: r,
className: s,
color: a
}
} : {
...i,
...e.attr,
height: r,
width: r,
className: s,
color: a
},
e.child.map((t) => t.child && t.child.length > 0 ? n(t) : o(
t.tag,
h.startsWith("2.7.") ? { attrs: { ...t.attr } } : { ...t.attr }
))
);
return n(l);
}
});
export {
u as useGenIcon
};