Showing
1 changed file
with
3 additions
and
3 deletions
1 | <script lang="ts" setup> | 1 | <script lang="ts" setup> |
2 | - import { RadioButton, RadioGroup, Tooltip } from 'ant-design-vue'; | 2 | + import { Radio, RadioGroup, Tooltip } from 'ant-design-vue'; |
3 | import { TABLE_CARD_MODE_LIST } from './const'; | 3 | import { TABLE_CARD_MODE_LIST } from './const'; |
4 | import { ModeList } from './types'; | 4 | import { ModeList } from './types'; |
5 | import Icon from '../Icon'; | 5 | import Icon from '../Icon'; |
@@ -25,9 +25,9 @@ | @@ -25,9 +25,9 @@ | ||
25 | <RadioGroup :value="props.value" button-style="solid" @change="handleChange"> | 25 | <RadioGroup :value="props.value" button-style="solid" @change="handleChange"> |
26 | <template v-for="item in $props.mode" :key="item.value"> | 26 | <template v-for="item in $props.mode" :key="item.value"> |
27 | <Tooltip :title="item.label"> | 27 | <Tooltip :title="item.label"> |
28 | - <RadioButton class="cursor-pointer" :value="item.value"> | 28 | + <Radio.Button class="cursor-pointer" :value="item.value"> |
29 | <Icon :icon="item.icon" /> | 29 | <Icon :icon="item.icon" /> |
30 | - </RadioButton> | 30 | + </Radio.Button> |
31 | </Tooltip> | 31 | </Tooltip> |
32 | </template> | 32 | </template> |
33 | </RadioGroup> | 33 | </RadioGroup> |