Skip to content

Commit

Permalink
fix(AutoComplete): remove maxlength
Browse files Browse the repository at this point in the history
  • Loading branch information
vvpvvp committed Jun 27, 2019
1 parent a6ba6e8 commit a8b4d43
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
7 changes: 0 additions & 7 deletions doc/components/component/autocomplete.vue
Expand Up @@ -254,13 +254,6 @@
<td>-</td>
<td>100</td>
</tr>
<tr>
<td>maxLength</td>
<td>搜索结果最多展示条目</td>
<td>Number</td>
<td>-</td>
<td>20</td>
</tr>
</table>

<h3>Slot top/bottom</h3>
Expand Down
7 changes: 0 additions & 7 deletions doc/components_en/component/autocomplete.vue
Expand Up @@ -276,13 +276,6 @@
<td>-</td>
<td>100</td>
</tr>
<tr>
<td>maxLength</td>
<td>Max length of result list</td>
<td>Number</td>
<td>-</td>
<td>20</td>
</tr>
</table>

<h3>Slot top/bottom</h3>
Expand Down
4 changes: 0 additions & 4 deletions src/components/auto-complete/autocomplete.vue
Expand Up @@ -556,10 +556,6 @@ export default {
return keyArray.indexOf(item[this.param.keyName]) == -1;
});
}
// maxLength
if (this.param.maxLength) {
datas.splice(this.param.maxLength);
}
let results = [];
for (let data of datas) {
results.push(this.getValue(data));
Expand Down

0 comments on commit a8b4d43

Please sign in to comment.