2019-10-21 14:49:08 +08:00
|
|
|
# Basic
|
|
|
|
```html
|
|
|
|
<n-radio
|
|
|
|
v-model="value"
|
|
|
|
value="Definitely Maybe"
|
|
|
|
>
|
|
|
|
Definitely Maybe
|
|
|
|
</n-radio>
|
|
|
|
<n-radio
|
|
|
|
v-model="value"
|
|
|
|
value="Be Here Now"
|
|
|
|
>
|
|
|
|
Be Here Now
|
|
|
|
</n-radio>
|
|
|
|
<n-radio
|
|
|
|
v-model="value"
|
|
|
|
value="Be Here Now"
|
2020-02-20 21:42:38 +08:00
|
|
|
:disabled="disabled"
|
2019-10-21 14:49:08 +08:00
|
|
|
>
|
|
|
|
Be Here Now
|
|
|
|
</n-radio>
|
2020-02-20 21:42:38 +08:00
|
|
|
<n-switch v-model="disabled"/>
|
|
|
|
|
2019-10-21 14:49:08 +08:00
|
|
|
```
|
|
|
|
```js
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
2020-02-20 21:42:38 +08:00
|
|
|
disabled: true,
|
2019-10-21 14:49:08 +08:00
|
|
|
value: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-01 15:13:12 +08:00
|
|
|
```
|
|
|
|
```css
|
|
|
|
.n-radio {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2019-10-21 14:49:08 +08:00
|
|
|
```
|