mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-24 23:49:14 +08:00
docs: remove index key (#9122)
This commit is contained in:
parent
373ec669fb
commit
0736700296
@ -140,7 +140,7 @@ Use title slot to custom tab title.
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tabs v-model:active="active">
|
<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>
|
<template #title> <van-icon name="more-o" />tab </template>
|
||||||
content {{ index }}
|
content {{ index }}
|
||||||
</van-tab>
|
</van-tab>
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tabs v-model:active="active">
|
<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>
|
<template #title> <van-icon name="more-o" />选项 </template>
|
||||||
内容 {{ index }}
|
内容 {{ index }}
|
||||||
</van-tab>
|
</van-tab>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user