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

60 lines
1.5 KiB
Vue
Raw Normal View History

2018-01-15 10:54:26 +00:00
<script>
2019-01-12 03:33:27 +00:00
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';
import TextArea from './textarea';
2019-04-07 09:19:18 +00:00
import AllowClear from './allowClear';
import PasswordInput from './password-input';
2019-01-12 03:33:27 +00:00
import Addon from './addon';
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.
2019-04-07 09:19:18 +00:00
- A search input is required.
2018-03-20 13:48:01 +00:00
## Examples `,
2019-01-12 03:33:27 +00:00
};
2018-01-15 10:54:26 +00:00
export default {
category: 'Components',
subtitle: '输入框',
type: 'Data Entry',
title: 'Input',
2019-09-28 12:45:07 +00:00
render() {
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
<Basic />
<AutosizeTextarea />
<Presuffix />
<SearchInput />
<Size />
<Group />
<TextArea />
<Addon />
<Tooltip />
2019-04-07 09:19:18 +00:00
<AllowClear />
<PasswordInput />
<api>
2019-09-28 12:45:07 +00:00
<CN slot="cn" />
<US />
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-01-15 10:54:26 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-01-15 10:54:26 +00:00
</script>
2019-09-28 12:45:07 +00:00
<style></style>