diff --git a/src/tabs/tabs.vue b/src/tabs/tabs.vue index 9e710af7b..e3bdaea05 100644 --- a/src/tabs/tabs.vue +++ b/src/tabs/tabs.vue @@ -59,6 +59,7 @@ import { Fragment, watch, CSSProperties, + onActivated, } from 'vue'; import config from '../config'; import TabsProps from './props'; @@ -175,6 +176,9 @@ export default defineComponent({ onBeforeUnmount(() => { window.removeEventListener('resize', moveToActiveTab); }); + onActivated(() => { + moveToActiveTab(); + }); watch(value, () => { nextTick(() => {