mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-12 11:22:56 +00:00
21 lines
414 B
Vue
21 lines
414 B
Vue
<template>
|
|
<component :is="uiComponent.component" v-bind="uiProps">
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
|
|
import { getConfig } from './config';
|
|
|
|
const props = defineProps<{
|
|
label?: string;
|
|
disabled?: boolean;
|
|
}>();
|
|
|
|
const uiComponent = getConfig('components').optionGroup;
|
|
|
|
const uiProps = computed(() => uiComponent.props(props));
|
|
</script>
|