<script setup lang="ts">
    const props = defineProps({
        icon: {
            type: String,
            required: true,
        },
        size: {
            type: [Number, String],
            default: 32,
        },
        color: {
            type: String,
            default: '#000',
        },
    })

    const isize = computed(() => `${props.size}rpx`)
    const icolor = computed(() => props.color)
</script>

<template>
    <view class="icon" />
</template>

<style lang="less" scoped>
    .icon {
        width: v-bind(isize);
        height: v-bind(isize);
        color: v-bind(icolor);
    }
</style>
