ant-design-vue/components/radio/demo/disabled.vue

32 lines
586 B
Vue
Raw Normal View History

2017-11-07 03:58:47 +00:00
<template>
<div>
<Radio :defaultChecked="false" :disabled="disabled">Disabled</Radio>
<br />
<Radio defaultChecked :disabled="disabled">Disabled</Radio>
<div :style="{ marginTop: 20 }">
2018-01-23 10:55:39 +00:00
<a-button type="primary" @click="toggleDisabled">
2017-11-07 03:58:47 +00:00
Toggle disabled
2018-01-23 10:55:39 +00:00
</a-button>
2017-11-07 03:58:47 +00:00
</div>
</div>
</template>
<script>
import { Radio, Button } from 'antd'
export default {
data () {
return {
disabled: true,
}
},
methods: {
toggleDisabled () {
this.disabled = !this.disabled
},
},
components: {
Radio,
2018-01-23 10:55:39 +00:00
2017-11-07 03:58:47 +00:00
},
}
</script>