mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-21 18:50:16 +00:00
23 lines
526 B
Vue
23 lines
526 B
Vue
<template>
|
|
<component class="tmagic-design-option-group" ref="optionGroup" :is="uiComponent.component" v-bind="uiProps">
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script setup lang="ts" name="TMOptionGroup">
|
|
import { computed, ref } from 'vue';
|
|
|
|
import { getConfig } from './config';
|
|
|
|
const props = defineProps<{
|
|
label?: string;
|
|
disabled?: boolean;
|
|
}>();
|
|
|
|
const uiComponent = getConfig('components').optionGroup;
|
|
|
|
const uiProps = computed(() => uiComponent.props(props));
|
|
|
|
const optionGroup = ref<any>();
|
|
</script>
|