Commit ff2902c1 by Jaxon

feat: 添加全局 svg-icon 组件

1 parent 29a63d90
<template>
<svg
class="svg-icon"
:style="iconStyle"
aria-hidden="true"
>
<svg aria-hidden="true"
class="svg-icon"
:style="iconStyle">
<use :xlink:href="iconName" />
</svg>
</template>
......@@ -22,7 +20,7 @@ export default {
},
color: {
type: String,
default: "currentColor",
default: "#000",
},
},
computed: {
......@@ -35,6 +33,7 @@ export default {
width: size,
height: size,
fill: this.color,
color: this.color,
};
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!