Commit ff2902c1 by Jaxon

feat: 添加全局 svg-icon 组件

1 parent 29a63d90
<template> <template>
<svg <svg aria-hidden="true"
class="svg-icon" class="svg-icon"
:style="iconStyle" :style="iconStyle">
aria-hidden="true"
>
<use :xlink:href="iconName" /> <use :xlink:href="iconName" />
</svg> </svg>
</template> </template>
...@@ -22,7 +20,7 @@ export default { ...@@ -22,7 +20,7 @@ export default {
}, },
color: { color: {
type: String, type: String,
default: "currentColor", default: "#000",
}, },
}, },
computed: { computed: {
...@@ -35,6 +33,7 @@ export default { ...@@ -35,6 +33,7 @@ export default {
width: size, width: size,
height: size, height: size,
fill: this.color, 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!