mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-11 13:39:47 +08:00
18 lines
392 B
Vue
18 lines
392 B
Vue
<template>
|
|
<component :is="uiComponent.component" v-bind="uiProps">
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script setup lang="ts" name="TMDropdownMenu">
|
|
import { computed } from 'vue';
|
|
|
|
import { getConfig } from './config';
|
|
|
|
const props = defineProps();
|
|
|
|
const uiComponent = getConfig('components').dropdownMenu;
|
|
|
|
const uiProps = computed(() => uiComponent.props(props));
|
|
</script>
|