Skip to content

Commit

Permalink
fix(Tab): should scroll into view when title changed
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Dec 20, 2020
1 parent bd4624e commit c919e9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tab/index.js
Expand Up @@ -44,6 +44,7 @@ export default createComponent({
watch: {
title() {
this.parent.setLine();
this.parent.scrollIntoView();
},

inited(val) {
Expand Down

0 comments on commit c919e9d

Please sign in to comment.