From 713c8e010131f56402729a52ec6d8a367426a682 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 8 Jun 2020 19:44:27 +0800 Subject: [PATCH] chore(Tab): rename onShow to init (#6488) --- src/tabs/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabs/index.js b/src/tabs/index.js index 2c0f1f48f..3123d4b04 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -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);