add progress bar

This commit is contained in:
bkfox
2020-10-28 17:36:43 +01:00
parent 063d1f194e
commit a0a1c92cfe
8 changed files with 223 additions and 40 deletions

View File

@ -58,7 +58,7 @@ export default {
select(index) {
this.selectedIndex = index > -1 && this.items.length ? index % this.items.length : -1;
this.$emit('select', { target: this, item: this.selected, index: this.selectedIndex });
this.$emit('select', { item: this.selected, index: this.selectedIndex });
return this.selectedIndex;
},