docs: remove index key (#9122)
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ Use title slot to custom tab title.
|
||||
|
||||
```html
|
||||
<van-tabs v-model:active="active">
|
||||
<van-tab v-for="index in 2" :key="index">
|
||||
<van-tab v-for="index in 2">
|
||||
<template #title> <van-icon name="more-o" />tab </template>
|
||||
content {{ index }}
|
||||
</van-tab>
|
||||
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
|
||||
```html
|
||||
<van-tabs v-model:active="active">
|
||||
<van-tab v-for="index in 2" :key="index">
|
||||
<van-tab v-for="index in 2">
|
||||
<template #title> <van-icon name="more-o" />选项 </template>
|
||||
内容 {{ index }}
|
||||
</van-tab>
|
||||
|
||||
Reference in New Issue
Block a user