Appearance
BaseIcon
渲染 iconRegistry 中注册的图标,支持两类来源:iconify 图标组件与 local 本地 SVG(以 img 渲染,不支持 currentColor 换色)。
用法
vue
<script setup lang="ts">
import { BaseIcon } from '@qingpai/vue'
</script>
<template>
<BaseIcon
name="bold"
size="16"
/>
</template>Props
| Prop | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
name | string | — | 否 | 注册表键名 |
size | string | '16' | 否 | 图标尺寸 |
color | string | — | 否 | 图标颜色 |