Skip to content

Commit 5d67678

Browse files
Amber-Nan杨楠
andauthored
fix(Divider):优化 gutter属性不生效问题 (#323)
Co-authored-by: 杨楠 <[email protected]>
1 parent b0366c0 commit 5d67678

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

example/examples/src/routes/Divider/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class DividerView extends React.Component<DividerViewProps> {
2424
<Text>分割线</Text>
2525
<Divider label="暂无数据" />
2626
<Text>分割线</Text>
27-
<Divider />
27+
<Divider label="调整间隔" gutter={30} />
2828
<Text>分割线</Text>
2929
</Card>
3030
<Card title="纵向分割线">

packages/core/src/Divider/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,11 @@ const styles = StyleSheet.create({
7979
height: 1,
8080
minHeight: 1,
8181
minWidth: 16,
82-
marginHorizontal: 8,
8382
},
8483
lineVertical: {
8584
width: 1,
8685
minHeight: 16,
8786
minWidth: 1,
88-
marginVertical: 8,
8987
},
9088
label: {
9189
color: 'rgba(0, 0, 0, 0.54)',

0 commit comments

Comments
 (0)