Skip to content

Commit

Permalink
Merge pull request #551 from nullptr-z/dev
Browse files Browse the repository at this point in the history
docs(Divider): 调整优化分割线组件文档
  • Loading branch information
ChenlingasMx committed Mar 7, 2023
2 parents e6e766d + 1f8f8c1 commit 415eec9
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions packages/core/src/Divider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ Divider 分割线
```jsx mdx:preview&background=#bebebe29
import React,{Component, Fragment } from "react"
import { View, Text } from 'react-native';
import { Divider } from '@uiw/react-native';
import { Divider, Spacing } from '@uiw/react-native';

function Demo() {
return (
<Fragment>
<Text >分割线</Text>
<Divider label="OR" />
<Text >横向分割线</Text>
<Spacing type='vertical' />
<Divider />
<Text >分割线</Text>
</Fragment>
);
}
Expand All @@ -32,14 +30,13 @@ export default Demo
```jsx mdx:preview&background=#bebebe29
import React,{Component, Fragment } from "react"
import { View, Text } from 'react-native';
import { Divider } from '@uiw/react-native';
import { Divider, Spacing } from '@uiw/react-native';

function Demo() {
return (
<Fragment>
<Text >分割线</Text>
<Divider label="OR" gutter={50} />
<Text >分割线</Text>
<Spacing type='vertical' />
<Divider label="OR" gutter={100} />
</Fragment>
);
Expand All @@ -53,16 +50,15 @@ export default Demo
```jsx mdx:preview&background=#bebebe29
import React,{Component, Fragment } from "react"
import { View, Text } from 'react-native';
import { Divider } from '@uiw/react-native';
import { Divider, Spacing } from '@uiw/react-native';

function Demo() {
return (
<Fragment>
<Text >分割线</Text>
<Divider label="left" orientation="left" labelStyle={{ fontWeight: 'bold' }} />
<Text >分割线</Text>
<Spacing type='vertical' />
<Divider label="center" labelStyle={{ fontWeight: 'bold',}} />
<Text >分割线</Text>
<Spacing type='vertical' />
<Divider label="right" orientation="right" labelStyle={{ fontWeight: 'bold' }} />
</Fragment>
);
Expand Down

0 comments on commit 415eec9

Please sign in to comment.