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() {
|
mounted() {
|
||||||
this.onShow();
|
this.init();
|
||||||
},
|
},
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
this.onShow();
|
this.init();
|
||||||
this.setLine();
|
this.setLine();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ export default createComponent({
|
|||||||
this.setLine();
|
this.setLine();
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
init() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.inited = true;
|
this.inited = true;
|
||||||
this.tabHeight = getVisibleHeight(this.$refs.wrap);
|
this.tabHeight = getVisibleHeight(this.$refs.wrap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user