mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(Tab): rename onShow to init (#6488)
This commit is contained in:
parent
ab84662ecf
commit
713c8e0101
@ -166,11 +166,11 @@ export default createComponent({
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.onShow();
|
||||
this.init();
|
||||
},
|
||||
|
||||
activated() {
|
||||
this.onShow();
|
||||
this.init();
|
||||
this.setLine();
|
||||
},
|
||||
|
||||
@ -180,7 +180,7 @@ export default createComponent({
|
||||
this.setLine();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
init() {
|
||||
this.$nextTick(() => {
|
||||
this.inited = true;
|
||||
this.tabHeight = getVisibleHeight(this.$refs.wrap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user