<!--
 * @Description: 
 * @Author: zenghua.wang
 * @Date: 2024-01-27 16:02:43
 * @LastEditors: zenghua.wang
 * @LastEditTime: 2024-04-12 21:12:01
-->
<template>
  <el-icon v-if="icon.includes('icon') && icon !== ''" :class="`iconfont ${icon}`" :size="size" />
  <el-icon v-if="!icon.includes('icon') && icon !== ''" :size="size"> <component :is="icon" /></el-icon>
</template>
<script setup name="layout-icon">
defineProps({
  icon: {
    type: String,
    required: true,
  },
  size: {
    type: Number,
    default: 20,
  },
});
</script>
