zs-icon 图标组件
功能描述
图标组件用于显示各种图标,支持多种图标库。
属性
| 属性名 | 类型 | 说明 |
|---|---|---|
| icon | string | 图标名称 |
| size | number | string | 图标大小 |
| color | string | 图标颜色 |
使用示例
vue
<template>
<div>
<zs-icon icon="user" :size="24" color="#165DFF" />
<zs-icon icon="setting" :size="32" color="#722ED1" />
</div>
</template>
<script lang="ts" setup>
import ZsIcon from '@/components/zs-icon';
</script>