<template>

	<SvgIcon :color="color" :icon="props.name" class="icon" :height="size" :width="size" />
</template>

<script setup>
import SvgIcon from "@/uni_modules/cwg-svg-icon/components/cwg-svg-icon/cwg-svg-icon.vue";
import {
	ref,
	watch
} from "vue";

const props = defineProps({
	name: {
		type: String,
		required: true
	}, // 图标名
	size: {
		type: [Number, String],
		default: 24
	},
	color: {
		type: String,
		default: ""
	},
});

</script>

<style scoped>
.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}
</style>