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
This commit is contained in:
Nemo Shen 2022-03-23 17:34:46 +08:00 committed by GitHub
parent 03c2f241b8
commit 334699d264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -365,6 +365,7 @@ export default defineComponent({
const renderNav = () =>
children.map((item, index) => (
<TabsTitle
key={item.id}
v-slots={{ title: item.$slots.title }}
id={`${id}-${index}`}
ref={setTitleRefs(index)}