UnisKB/ui/src/components/icons/AppIcon.vue

18 lines
399 B
Vue
Raw Normal View History

2023-09-15 09:40:35 +00:00
<template>
<component :is="Object.keys(iconMap).includes(iconName) ? iconMap[iconName].iconReader() : iconMap['404'].iconReader()">
</component>
</template>
<script setup lang="ts">
import { iconMap } from "@/components/icons/index"
2023-10-12 08:36:16 +00:00
defineOptions({ name: 'AppIcon' });
2023-09-15 09:40:35 +00:00
withDefaults(defineProps<{
iconName?: string;
}>(), {
iconName: '404'
});
</script>
<style lang="scss" scoped></style>