AutoLoad items with "scroll" (1st version)
This commit is contained in:
parent
5ef97c209d
commit
bc8d319714
|
@ -51,6 +51,10 @@ export default class DropDown {
|
||||||
}
|
}
|
||||||
this.$timeout(() => {
|
this.$timeout(() => {
|
||||||
this._activeOption = value;
|
this._activeOption = value;
|
||||||
|
// AutoLoad items with "scroll" (1st version):
|
||||||
|
if (value && value >= this.items.length - 3) {
|
||||||
|
this.loadItems();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue