You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/input/demo/index.vue

58 lines
1.4 KiB

7 years ago
<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'
7 years ago
import TextArea from './textarea'
import Addon from './addon'
7 years ago
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.
- A search input is required. `,
}
7 years ago
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>
)
7 years ago
},
}
</script>
<style>
</style>