Skip to content

Commit 237be58

Browse files
committed
fix: 再次修复图标问题
1 parent 9d42ea3 commit 237be58

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/AppFooter.vue

+4-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
target="_blank"
1010
>
1111
<v-icon :size="24" class="ci-logo">
12-
<SvgIcon name="logo-cilogo"/>
12+
<SvgIcon name="logo-cilogo" size="24px"/>
1313
</v-icon>
1414
</a>
1515

@@ -69,19 +69,15 @@ const items = [
6969
</script>
7070

7171
<style scoped lang="sass">
72-
.ci-logo svg {
73-
height: 24px !important;
74-
}
7572
76-
.social-link :deep(.v-icon) {
73+
.social-link :deep(.v-icon)
7774
color: rgba(var(--v-theme-on-background), var(--v-disabled-opacity))
7875
text-decoration: none
7976
transition: .2s ease-in-out
8077
81-
&:hover {
78+
&:hover
8279
color: rgba(25, 118, 210, 1)
83-
}
84-
}
80+
8581
8682
8783
</style>

src/components/SvgIcon.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<svg aria-hidden="true">
2+
<svg aria-hidden="true" :style="{ width: size, height: size }">
33
<use :href="symbolId" :fill="color" />
44
</svg>
55
</template>
@@ -22,6 +22,10 @@ export default defineComponent({
2222
type: String,
2323
default: '#333',
2424
},
25+
size: {
26+
type: [String, Number],
27+
default: '12px',
28+
},
2529
},
2630
setup(props) {
2731
const symbolId = computed(() => `#${props.prefix}-${props.name}`)

0 commit comments

Comments
 (0)