Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 修改 Layout 布局中 横向和竖向 间隔 #333

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

ado5
Copy link
Contributor

@ado5 ado5 commented Aug 24, 2022

原存在情况:
Row 组件中 gutter 只能设置横向, 且没有向子Col 组件中传入 父级 gutter

现修改情况:
在Row组中 gutter 输入类型添加 数字数组 和 字符数组传入, 并允许使用 rpx 单位, 如:

<Row gutter={['50rpx', '50rpx']}> <Col span={12}> <View>hahaahha</View> </Col> <Col span={12}> <View>hahaahha</View> </Col> <Col span={12}> <View>hahaahha</View> </Col> <Col span={12}> <View>hahaahha</View> </Col> <Col span={12}> <View>hahaahha</View> </Col> <Col span={12}> <View>hahaahha</View> </Col> </Row>

@hisanshao hisanshao merged commit eb36a44 into AntmJS:main Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants