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.
39 lines
627 B
39 lines
627 B
7 years ago
|
<cn>
|
||
|
#### 不可用
|
||
|
Radio 不可用。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### disabled
|
||
|
Radio unavailable.
|
||
|
</us>
|
||
|
|
||
|
```html
|
||
7 years ago
|
<template>
|
||
|
<div>
|
||
7 years ago
|
<a-radio :defaultChecked="false" :disabled="disabled">Disabled</a-radio>
|
||
7 years ago
|
<br />
|
||
7 years ago
|
<a-radio defaultChecked :disabled="disabled">Disabled</a-radio>
|
||
7 years ago
|
<div :style="{ marginTop: 20 }">
|
||
7 years ago
|
<a-button type="primary" @click="toggleDisabled">
|
||
7 years ago
|
Toggle disabled
|
||
7 years ago
|
</a-button>
|
||
7 years ago
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
disabled: true,
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
toggleDisabled () {
|
||
|
this.disabled = !this.disabled
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|
||
7 years ago
|
```
|