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

59 lines
1.4 KiB
Vue
Raw Normal View History

2018-01-15 10:54:26 +00:00
<script>
import Basic from './basic'
import AutosizeTextarea from './autosize-textarea'
import Presuffix from './presuffix'
import SearchInput from './search-input'
import Size from './size'
import Group from './group'
2018-01-15 10:54:26 +00:00
import TextArea from './textarea'
2018-02-27 04:17:53 +00:00
import Addon from './addon'
2018-02-27 06:08:15 +00:00
import Tooltip from './tooltip'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Input 输入框
通过鼠标或键盘输入内容是最基础的表单域的包装
## 何时使用
- 需要用户输入表单域内容时
- 提供组合型输入框带搜索的输入框还可以进行大小选择
## 代码演示`,
us: `# Input
A basic widget for getting the user input is a text field.
Keyboard and mouse can be used for providing or changing data.
## When To Use
- A user input in a form field is needed.
2018-03-20 13:48:01 +00:00
- A search input is required.
## Examples `,
}
2018-01-15 10:54:26 +00:00
export default {
category: 'Components',
subtitle: '输入框',
type: 'Data Entry',
title: 'Input',
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<AutosizeTextarea />
<Presuffix />
<SearchInput />
<Size />
<Group />
<TextArea />
<Addon />
<Tooltip />
<api>
<CN slot='cn' />
<US/>
</api>
</div>
)
2018-01-15 10:54:26 +00:00
},
}
</script>
<style>
</style>