ant-design-vue/components/checkbox/demo/index.vue

52 lines
1.5 KiB
Vue
Raw Normal View History

2017-11-06 09:46:08 +00:00
<script>
2018-03-09 09:50:33 +00:00
import Basic from './basic'
import CheckAll from './check-all'
import Controller from './controller'
import Disabled from './disabled'
import Group from './group'
import Layout from './layout'
import CN from './../index.zh-CN'
import US from './../index.en-US'
2018-03-09 05:26:34 +00:00
const md = {
cn: `# Checkbox多选框
多选框
## 何时使用
- 在一组可选项中进行多项选择时
- 单独使用可以表示两种状态之间的切换 switch 类似区别在于切换 switch 会直接触发状态改变 checkbox 一般用于状态标记需要和提交操作配合
## 代码演示
`,
us: `# Checkbox
Checkbox
## When to use
- Used for selecting multiple values from several options.
- If you use only one checkbox, it is the same as using Switch to toggle between two states. The difference is that Switch will trigger the state change directly, but Checkbox just marks the state as changed and this needs to be submitted.
## Examples
2018-03-09 09:50:33 +00:00
`,
2018-03-09 05:26:34 +00:00
}
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
subtitle: '多选框',
type: 'Data Entry',
title: 'Checkbox',
2018-03-09 09:50:33 +00:00
render () {
2018-03-09 05:26:34 +00:00
return (
<div>
<md cn={md.cn} us={md.us} />
<Basic />
<CheckAll />
<Disabled />
<Controller />
<Group />
<Layout />
<api>
<CN slot='cn' />
<US />
</api>
</div>
)
2018-03-09 09:50:33 +00:00
},
2018-03-09 05:26:34 +00:00
}
2017-11-06 09:46:08 +00:00
</script>