docs(Grid): update parameters are consistent with the sample (#8487)

This commit is contained in:
杨永安 2021-04-09 13:15:36 +08:00 committed by GitHub
parent e1df4bd9c3
commit 60bc702bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ app.use(GridItem);
### Horizontal
```html
<van-grid direction="horizontal" :column-num="2">
<van-grid direction="horizontal" :column-num="3">
<van-grid-item icon="photo-o" text="文字" />
<van-grid-item icon="photo-o" text="文字" />
<van-grid-item icon="photo-o" text="文字" />

View File

@ -85,7 +85,7 @@ app.use(GridItem);
`direction` 属性设置为 `horizontal`,可以让宫格的内容呈横向排列。
```html
<van-grid direction="horizontal" :column-num="2">
<van-grid direction="horizontal" :column-num="3">
<van-grid-item icon="photo-o" text="文字" />
<van-grid-item icon="photo-o" text="文字" />
<van-grid-item icon="photo-o" text="文字" />