diff --git a/packages/react-vant/src/components/tabs/Tabs.tsx b/packages/react-vant/src/components/tabs/Tabs.tsx index bcf1586b9..00a492d73 100644 --- a/packages/react-vant/src/components/tabs/Tabs.tsx +++ b/packages/react-vant/src/components/tabs/Tabs.tsx @@ -128,7 +128,7 @@ const Tabs = forwardRef((p, ref) => { } setShowLine(true) setLineTranslateLeft(title.offsetLeft + title.offsetWidth / 2) - }, [root.current, titleRefs, props.type, index]) + }, [root.current, titleRefs, props.type, index, childrenList]) // 下划线样式 const lineStyle = useMemo(() => {