naive-ui/demo/documentation/components/radio/zhCN/basic.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

39 lines
468 B
Markdown

# 基础用法
```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"
:disabled="disabled"
>
Be Here Now
</n-radio>
<n-switch v-model="disabled"/>
```
```js
export default {
data () {
return {
disabled: true,
value: null
}
}
}
```
```css
.n-radio {
margin-right: 8px;
}
```