mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-18 19:53:31 +00:00
24 lines
526 B
Vue
24 lines
526 B
Vue
<template>
|
|
<TRadioButton :value="value" :disabled="disabled" @click="clickHandler">
|
|
<template #default v-if="$slots.default"> <slot></slot> </template>
|
|
</TRadioButton>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { RadioButton as TRadioButton } from 'tdesign-vue-next';
|
|
|
|
import type { RadioButtonProps } from '@tmagic/design';
|
|
|
|
defineOptions({
|
|
name: 'TTDesignAdapterRadioButton',
|
|
});
|
|
|
|
defineProps<RadioButtonProps>();
|
|
|
|
const emit = defineEmits(['click']);
|
|
|
|
const clickHandler = () => {
|
|
emit('click');
|
|
};
|
|
</script>
|