Skip to content

Commit e6f4734

Browse files
committed
feat(harmonyos): add margin to Button in ArkUiComponentType
Add margin to the Button component in ArkUiComponentType file to create space on the left of the button.
1 parent bf6579e commit e6f4734

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/ArkUiComponentType.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ enum class ArkUiComponentType(val description: String, val example: String) {
44
Button(
55
"可快速创建不同样式的按钮。", "Button('Ok', { type: ButtonType.Normal, stateEffect: true }) \n" +
66
" .borderRadius(8) \n" +
7+
" .margin({ left: 12 }) \n" +
78
" .backgroundColor(0x317aff) \n" +
89
" .width(90)\n" +
910
" .height(40)"

0 commit comments

Comments
 (0)