You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/radio/demo/disabled.md

39 lines
627 B

<cn>
#### 不可用
Radio 不可用。
</cn>
<us>
#### disabled
Radio unavailable.
</us>
```html
<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>
```