mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs(Tabs): update name match (#2922)
This commit is contained in:
parent
cd7063100f
commit
9683904c29
@ -43,7 +43,7 @@ Page({
|
||||
|
||||
### 通过名称匹配
|
||||
|
||||
在标签指定`name`属性的情况下,`active`的值为当前标签的`name`,默认启用第一个标签
|
||||
在标签指定`name`属性的情况下,`active`的值为当前标签的`name`(此时无法通过索引值来匹配标签)
|
||||
|
||||
```html
|
||||
<van-tabs active="a">
|
||||
|
Loading…
x
Reference in New Issue
Block a user