Merge pull request #939 from QingWei-Li/feat/input-doc

Input(doc): add api doc
pull/947/head
杨奕 2016-11-09 16:40:08 +08:00 committed by GitHub
commit a88577b99b
2 changed files with 10 additions and 4 deletions

View File

@ -501,7 +501,7 @@ export default {
可自定义输入建议的显示 可自定义输入建议的显示
::: demo ::: demo
```html ```html
<el-autocomplete <el-autocomplete
class="my-autocomplete" class="my-autocomplete"
@ -635,7 +635,7 @@ export default {
从服务端搜索数据 从服务端搜索数据
::: demo ::: demo
```html ```html
<el-autocomplete <el-autocomplete
v-model="state4" v-model="state4"
@ -745,6 +745,12 @@ export default {
| icon | 输入框尾部图标 | string | — | — | | icon | 输入框尾部图标 | string | — | — |
| rows | 输入框行数,只对 `type="textarea"` 有效 | number | — | 2 | | rows | 输入框行数,只对 `type="textarea"` 有效 | number | — | 2 |
| autosize | 自适应内容高度,只对 `type="textarea"` 有效,可传入对象,如,{ minRows: 2, maxRows: 6 } | boolean/object | — | false | | autosize | 自适应内容高度,只对 `type="textarea"` 有效,可传入对象,如,{ minRows: 2, maxRows: 6 } | boolean/object | — | false |
| auto-complete | 原生属性,自动补全 | string | on, off | off |
| name | 原生属性 | string | - | -|
| max | 原生属性,设置最大值 | * | - | - |
| min | 原生属性,设置最小值 | * | - | - |
| autofocus | 原生属性,自动获取焦点 | boolean | true, false | false |
| form | 原生属性 | string | - | - |
### Input Events ### Input Events
| 事件名称 | 说明 | 回调参数 | | 事件名称 | 说明 | 回调参数 |

View File

@ -37,9 +37,9 @@ webpack.config.js
} }
``` ```
Currently Element ships with the following languages: Currently Element ships with the following languages:
- Chinese - Chinese
- English - English
- German - German
If your target language is not included, you are more than welcome to contribute: just add another language config [here](https://github.com/ElemeFE/element/tree/master/src/locale/lang) and create a pull request. If your target language is not included, you are more than welcome to contribute: just add another language config [here](https://github.com/ElemeFE/element/tree/master/src/locale/lang) and create a pull request.