mirror of https://github.com/ElemeFE/element
Input: fix prop valueKey doc (#9649)
parent
896cbb6323
commit
d8c931274d
|
@ -689,7 +689,7 @@ Attribute | Description | Type | Options | Default
|
|||
|----| ----| ----| ---- | -----|
|
||||
|placeholder| the placeholder of Autocomplete| string | — | — |
|
||||
|disabled | whether Autocomplete is disabled | boolean | — | false|
|
||||
| valueKey | key name of the input suggestion object for display | string | — | value |
|
||||
| value-key | key name of the input suggestion object for display | string | — | value |
|
||||
|icon | icon name | string | — | — |
|
||||
|value | binding value | string | — | — |
|
||||
| debounce | debounce delay when typing, in milliseconds | number | — | 300 |
|
||||
|
|
|
@ -41,13 +41,13 @@
|
|||
querySearch(queryString, cb) {
|
||||
var links = this.links;
|
||||
var results = queryString ? links.filter(this.createStateFilter(queryString)) : links;
|
||||
|
||||
|
||||
cb(results);
|
||||
},
|
||||
querySearchAsync(queryString, cb) {
|
||||
var links = this.links;
|
||||
var results = queryString ? links.filter(this.createStateFilter(queryString)) : links;
|
||||
|
||||
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = setTimeout(() => {
|
||||
cb(results);
|
||||
|
@ -106,17 +106,17 @@
|
|||
}
|
||||
.demo-autocomplete {
|
||||
text-align: center;
|
||||
|
||||
|
||||
.sub-title {
|
||||
margin-bottom: 10px;
|
||||
font-size: 14px;
|
||||
color: #8492a6;
|
||||
}
|
||||
|
||||
|
||||
.el-col:not(:last-child) {
|
||||
border-right: 1px solid rgba(224,230,237,0.50);
|
||||
}
|
||||
|
||||
|
||||
.el-autocomplete {
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -126,7 +126,7 @@
|
|||
li {
|
||||
line-height: normal;
|
||||
padding: 7px *;
|
||||
|
||||
|
||||
.name {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
|
@ -668,7 +668,7 @@ Atributo | Descripción | Tipo | Opciones | Por defecto
|
|||
|----| ----| ----| ---- | -----|
|
||||
|placeholder| el placeholder del Autocomplete| string | — | — |
|
||||
|disabled | si el Autocompete esta deshabilitado | boolean | — | false|
|
||||
| valueKey | nombre del campo del objeto de sugerencia del input para la visualización | string | — | value |
|
||||
| value-key | nombre del campo del objeto de sugerencia del input para la visualización | string | — | value |
|
||||
|icon | nombre del icono | string | — | — |
|
||||
|value | valor enlazado | string | — | — |
|
||||
| debounce | retardo al escribir, en milisegundos | number | — | 300 |
|
||||
|
|
|
@ -848,7 +848,7 @@ export default {
|
|||
|------------- |---------------- |---------------- |---------------------- |-------- |
|
||||
| placeholder | 输入框占位文本 | string | — | — |
|
||||
| disabled | 禁用 | boolean | — | false |
|
||||
| valueKey | 输入建议对象中用于显示的键名 | string | — | value |
|
||||
| value-key | 输入建议对象中用于显示的键名 | string | — | value |
|
||||
| value | 必填值,输入绑定值 | string | — | — |
|
||||
| debounce | 获取输入建议的去抖延时 | number | — | 300 |
|
||||
| fetch-suggestions | 返回输入建议的方法,仅当你的输入建议数据 resolve 时,通过调用 callback(data:[]) 来返回它 | Function(queryString, callback) | — | — |
|
||||
|
|
Loading…
Reference in New Issue