feat(icon): 新增 color 与 size 属性

This commit is contained in:
就眠仪式
2021-10-15 10:08:04 +08:00
parent edde6ed813
commit 2ae491f64c
3 changed files with 34 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<i :class="[prefix, type]" />
<i :class="[prefix, type]" :style="{ color: color , fontSize: size}"/>
</template>
<script setup name="LayIcon" lang="ts">
@@ -9,6 +9,8 @@ const props = withDefaults(
defineProps<{
type?: string
prefix?: string
color?: string
size?: string
}>(),
{
prefix: 'layui-icon',