mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
fix(Tab): should scroll into view when title changed
This commit is contained in:
parent
bd4624e7b1
commit
c919e9deda
@ -44,6 +44,7 @@ export default createComponent({
|
|||||||
watch: {
|
watch: {
|
||||||
title() {
|
title() {
|
||||||
this.parent.setLine();
|
this.parent.setLine();
|
||||||
|
this.parent.scrollIntoView();
|
||||||
},
|
},
|
||||||
|
|
||||||
inited(val) {
|
inited(val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user