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'
|
2018-03-20 11:06:04 +00:00
|
|
|
|
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'
|
2018-03-20 11:06:04 +00:00
|
|
|
|
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-03-20 11:06:04 +00:00
|
|
|
|
}
|
2018-01-15 10:54:26 +00:00
|
|
|
|
export default {
|
2018-03-20 11:06:04 +00:00
|
|
|
|
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>
|
2018-03-20 11:06:04 +00:00
|
|
|
|
<style>
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|