comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
26 lines (25 loc) • 516 B
JavaScript
import { defineComponent, h } from "vue";
import { iconProps } from "./icon.props.mjs";
import "../style/icon.css";
const useIcon = (name, d) => {
return defineComponent({
name,
props: iconProps,
setup(props) {
return () => h(
"svg",
{
viewBox: "0 0 1024 1024",
width: props.size,
height: props.size,
fill: props.color,
class: ["cu-icon--" + name]
},
h("path", { d })
);
}
});
};
export {
useIcon
};