From 334699d264a4cb0c653bbd359d43fee7a3f3ec54 Mon Sep 17 00:00:00 2001 From: Nemo Shen Date: Wed, 23 Mar 2022 17:34:46 +0800 Subject: [PATCH] fix(Tab): add key when render TabsTitle (#10392) * fix(Tab): add key when render TabsTitle * fix(Tab): change key * fix(Tabs): use each TabRef.id as key --- packages/vant/src/tabs/Tabs.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vant/src/tabs/Tabs.tsx b/packages/vant/src/tabs/Tabs.tsx index 7f0809a40..b4cfe595c 100644 --- a/packages/vant/src/tabs/Tabs.tsx +++ b/packages/vant/src/tabs/Tabs.tsx @@ -365,6 +365,7 @@ export default defineComponent({ const renderNav = () => children.map((item, index) => (