mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-31 00:16:57 +08:00
24 lines
463 B
Vue
24 lines
463 B
Vue
<template>
|
|
<TRadio :value="value" @click="clickHandler">
|
|
<template #default v-if="$slots.default"> <slot></slot> </template>
|
|
</TRadio>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { Radio as TRadio } from 'tdesign-vue-next';
|
|
|
|
import type { RadioProps } from '@tmagic/design';
|
|
|
|
defineOptions({
|
|
name: 'TTDesignAdapterRadio',
|
|
});
|
|
|
|
defineProps<RadioProps>();
|
|
|
|
const emit = defineEmits(['click']);
|
|
|
|
const clickHandler = () => {
|
|
emit('click');
|
|
};
|
|
</script>
|