fix(radio-button): fix RadioButton disabled support

fix #710
This commit is contained in:
无木 2021-06-06 13:24:32 +08:00
parent 4fd2051bc0
commit ee384b1fa7

View File

@ -5,7 +5,7 @@
<template> <template>
<RadioGroup v-bind="attrs" v-model:value="state" button-style="solid"> <RadioGroup v-bind="attrs" v-model:value="state" button-style="solid">
<template v-for="item in getOptions" :key="`${item.value}`"> <template v-for="item in getOptions" :key="`${item.value}`">
<RadioButton :value="item.value"> <RadioButton :value="item.value" :disabled="item.disabled">
{{ item.label }} {{ item.label }}
</RadioButton> </RadioButton>
</template> </template>