Skip to content

Commit

Permalink
fix: svg type error
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Sep 4, 2024
1 parent 5abdeb7 commit 2d76532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/icon/WIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</template>

<script setup lang="ts">
import { computed, PropType } from 'vue'
import { computed, DefineComponent, PropType, SVGAttributes } from 'vue'
import AdoIcon from '@/assets/svg/ado.svg?component'
import AppleIcon from '@/assets/svg/apple.svg?component'
Expand Down Expand Up @@ -48,7 +48,7 @@ const internalColor = computed(() => {
return props.color || '#232323'
})
const icons: Record<IconName, string> = {
const icons: Record<IconName, DefineComponent<SVGAttributes>> = {
[IconName.Ado]: AdoIcon,
[IconName.Apple]: AppleIcon,
[IconName.Bitmart]: BitmartIcon,
Expand Down

0 comments on commit 2d76532

Please sign in to comment.