fuc-new/doc/node_modules/vuepress-theme-plume/lib/client/components/VPIconfont.vue
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

23 lines
450 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps<{
name: string
size?: { width?: string, height?: string }
color?: string
prefix?: string
}>()
const prefix = computed(() => props.prefix || 'iconfont icon-')
</script>
<template>
<i
class="vp-icon"
:class="`${prefix}${name}`"
:style="{ color, 'font-size': size?.height || '1em' }"
data-provider="iconfont"
aria-hidden
/>
</template>