naive-ui/demo/documentation/components/radio/enUS/basic.md

39 lines
461 B
Markdown
Raw Normal View History

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
}
}
}
```
```css
.n-radio {
margin-right: 8px;
}
2019-10-21 14:49:08 +08:00
```