fix(Tab): should scroll into view when title changed

This commit is contained in:
chenjiahan 2020-12-20 20:32:08 +08:00 committed by neverland
parent bd4624e7b1
commit c919e9deda

View File

@ -44,6 +44,7 @@ export default createComponent({
watch: {
title() {
this.parent.setLine();
this.parent.scrollIntoView();
},
inited(val) {