docs: remove index key (#9122)

This commit is contained in:
neverland 2021-07-26 19:12:36 +08:00 committed by GitHub
parent 373ec669fb
commit 0736700296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>