Skip to content

Commit

Permalink
docs: fix boundsPadding in custom-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Aug 2, 2024
1 parent 446e42a commit 3a93b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/assets/guide/en/custom_define/custom_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Basic custom components currently support `VTag`
|checkbox|checked, disabled, text, icon...|

Primitives can be configured with the `boundsPadding` property to achieve a margin effect
`boundsPadding: [marginLeft, marginRight, marginTop, marginBottom]`
`boundsPadding: [marginTop, marginRight, marginBottom, marginLeft]`
The margin of a primitive is calculated in the space it occupies

### Primitive State Updates and Interaction Events
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/guide/zh/custom_define/custom_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ customLayout 函数返回一个对象,该对象需要有:`rootContainer`来
|checkbox|checked, disabled, text, icon...|

图元可以配置`boundsPadding`属性,实现 margin 效果
`boundsPadding: [marginLeft, marginRight, marginTop, marginBottom]`
`boundsPadding: [marginTop, marginRight, marginBottom, marginLeft]`
图元的 margin 会计算在图元所占的空间

### 图元状态更新及交互事件
Expand Down

0 comments on commit 3a93b49

Please sign in to comment.