Skip to content

Commit

Permalink
update(uni-row): 文档修改,增加gutter属性,/deep/修改为::v-deep
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Jan 19, 2021
1 parent e301cd1 commit bdbd186
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/components/row.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
| offset |||||||||
| push |||||||||
| pull |||||||||
| gutter | - ||||||||
| xs | - ||||||||
| sm | - ||||||||
| md | - ||||||||
Expand All @@ -148,9 +149,11 @@
### Row Props

`其他平台`


`nvue平台`

| 属性名 | 类型 | 可选值 | 默认值 | 必填 | 说明 |
| :----: | :-----------: | :----: | :----: | :--: | :----------------------------------------------------------------------------: |
| width | Number/String | - | `750rpx` || nvue 中无百分比 width,使用 span 等属性时,需配置此项`rpx值`。此项不会影响其他平台展示效果 |
Expand All @@ -163,6 +166,7 @@
| offset | Number | - | - || 栅格左侧间隔格数 |
| push | Number | - | - || 栅格向右偏移格数 |
| pull | Number | - | - || 栅格向左偏移格数 |
| gutter | Number | - | 0 || 栅格间隔 |
| xs | Number/object | - | - || 屏幕宽度`<768px`时,要显示的栅格规则,如:`:xs="8"``:xs="{span: 8, pull: 4}"` |
| sm | Number/object | - | - || 屏幕宽度`≥768px`时,要显示的栅格规则 |
| md | Number/object | - | - || 屏幕宽度`≥992px`时,要显示的栅格规则 |
Expand Down
2 changes: 1 addition & 1 deletion pages/vue/row/row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
// 支付宝小程序没有 demo-uni-row 层级
// 微信小程序使用了虚拟化节点,没有 demo-uni-row 层级
/* #ifdef MP-ALIPAY || MP-WEIXIN */
/deep/ .uni-row {
::v-deep .uni-row {
margin-bottom: 10px;
}
Expand Down

0 comments on commit bdbd186

Please sign in to comment.