mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-21 02:32:48 +00:00
19 lines
382 B
Vue
19 lines
382 B
Vue
<template>
|
|
<component class="tmagic-design-icon" :is="uiComponent">
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { getConfig } from './config';
|
|
import { IconProps } from './types';
|
|
|
|
defineOptions({
|
|
name: 'TMIcon',
|
|
});
|
|
|
|
const ui = getConfig('components')?.icon;
|
|
const uiComponent = ui?.component || 'el-icon';
|
|
defineProps<IconProps>();
|
|
</script>
|