[new feature] IndexBar: add select event

This commit is contained in:
陈嘉涵
2019-05-08 16:53:22 +08:00
parent f0e336cb4f
commit 1d658a9338
4 changed files with 28 additions and 4 deletions
+1
View File
@@ -60,6 +60,7 @@ export default sfc({
const match = this.children.filter(item => String(item.index) === index);
if (match[0]) {
match[0].scrollIntoView();
this.$emit('select', match[0].index);
}
},