mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
21 lines
422 B
Vue
21 lines
422 B
Vue
<script setup lang="ts">
|
|
import { toRaw } from "vue";
|
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
|
|
|
const props = defineProps({
|
|
extraIcon: {
|
|
type: String,
|
|
default: ""
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div v-if="props.extraIcon" class="flex justify-center items-center">
|
|
<component
|
|
:is="useRenderIcon(toRaw(props.extraIcon))"
|
|
class="w-[30px] h-[30px]"
|
|
/>
|
|
</div>
|
|
</template>
|