refactor(SvgIcon.vue): svg默认颜色调整
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<svg aria-hidden="true" class="svg-icon">
|
<svg aria-hidden="true" class="svg-icon">
|
||||||
<use :xlink:href="symbolId" :fill="color" />
|
<use :xlink:href="symbolId" :fill="color" />
|
||||||
</svg>
|
</svg>
|
||||||
</template>
|
</template>
|
||||||
@@ -20,7 +20,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '#FFF',
|
default: ''
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user