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