mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Grid): update parameters are consistent with the sample (#8487)
This commit is contained in:
parent
e1df4bd9c3
commit
60bc702bb8
@ -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="文字" />
|
||||
|
@ -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="文字" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user