mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 13:08:48 +08:00
627 B
627 B
#### 不可用
Radio 不可用。
#### disabled
Radio unavailable.
<template>
<div>
<a-radio :defaultChecked="false" :disabled="disabled">Disabled</a-radio>
<br />
<a-radio defaultChecked :disabled="disabled">Disabled</a-radio>
<div :style="{ marginTop: 20 }">
<a-button type="primary" @click="toggleDisabled">
Toggle disabled
</a-button>
</div>
</div>
</template>
<script>
export default {
data () {
return {
disabled: true,
}
},
methods: {
toggleDisabled () {
this.disabled = !this.disabled
},
},
}
</script>