-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from yuanmeda/fix/doc-divider413
docs(divider): update docs and demo and md
- Loading branch information
Showing
11 changed files
with
92 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { Divider } from 'tdesign-mobile-react'; | ||
import './style/index.less'; | ||
|
||
export default function Content() { | ||
return ( | ||
<div className="divider-demo-container"> | ||
<h3>文字+直线</h3> | ||
<div className="t-demo1"> | ||
<Divider align="center" content="文字信息"></Divider> | ||
</div> | ||
|
||
<h3>文字+虚线</h3> | ||
<div className="t-demo1"> | ||
<Divider align="center" dashed> | ||
文字信息 | ||
</Divider> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,30 @@ | ||
import React from 'react'; | ||
import { Divider } from 'tdesign-mobile-react'; | ||
import TDemoBlock from '../../../site/mobile/components/DemoBlock'; | ||
import TDemoHeader from '../../../site/mobile/components/DemoHeader'; | ||
import Content from './content'; | ||
import Normal from './normal'; | ||
import NormalDashed from './normal-dashed'; | ||
import PureContent from './pure-content'; | ||
|
||
import './style/index.less'; | ||
import Vertical from './vertical'; | ||
|
||
export default function Base() { | ||
return ( | ||
<div className="tdesign-mobile-demo"> | ||
<TDemoHeader title="Divider 分割线" summary="用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。" /> | ||
<TDemoBlock title="01 类型" summary="直线拉通"> | ||
<Normal></Normal> | ||
</TDemoBlock> | ||
<TDemoBlock summary="虚线拉通"> | ||
<NormalDashed></NormalDashed> | ||
</TDemoBlock> | ||
<TDemoBlock summary="左右间距"> | ||
<div className="t-demo1"> | ||
<NormalDashed></NormalDashed> | ||
</div> | ||
</TDemoBlock> | ||
<TDemoBlock summary="右侧拉通"> | ||
<div className="t-demo2"> | ||
<NormalDashed></NormalDashed> | ||
</div> | ||
</TDemoBlock> | ||
<TDemoBlock summary="定义左侧距离"> | ||
<div className="t-demo3"> | ||
<NormalDashed></NormalDashed> | ||
</div> | ||
</TDemoBlock> | ||
<TDemoBlock summary="垂直分割"> | ||
<Vertical></Vertical> | ||
</TDemoBlock> | ||
<TDemoBlock summary="文字+直线"> | ||
<div className="t-demo1"> | ||
<Content></Content> | ||
</div> | ||
</TDemoBlock> | ||
<TDemoBlock summary="文字+虚线"> | ||
<div className="t-demo1"> | ||
<Divider align="center" dashed> | ||
文字信息 | ||
</Divider> | ||
</div> | ||
</TDemoBlock> | ||
<TDemoBlock summary="纯文字"> | ||
<div className="t-demo1"> | ||
<PureContent></PureContent> | ||
</div> | ||
</TDemoBlock> | ||
<div className="divider-demo-container"> | ||
<h3>直线拉通</h3> | ||
<Divider /> | ||
|
||
<h3>虚线拉通</h3> | ||
<Divider dashed /> | ||
|
||
<h3>左右间距</h3> | ||
<div className="t-demo1"> | ||
<Divider /> | ||
</div> | ||
|
||
<h3>右侧拉通</h3> | ||
<div className="t-demo2"> | ||
<Divider /> | ||
</div> | ||
<h3>自定义左侧距离</h3> | ||
<div className="t-demo3"> | ||
<Divider /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import TDemoBlock from '../../../site/mobile/components/DemoBlock'; | ||
import TDemoHeader from '../../../site/mobile/components/DemoHeader'; | ||
import Vertical from './vertical'; | ||
import BaseDemo from './base'; | ||
import AlignDemo from './align'; | ||
|
||
import './style/index.less'; | ||
|
||
export default function Base() { | ||
return ( | ||
<div className="tdesign-mobile-demo"> | ||
<TDemoHeader title="Divider 分割符" summary="用于分割、组织、细化有一定逻辑的组织元素内容和页面结构。" /> | ||
<TDemoBlock title="01 类型" summary="分割符主要是由直线和文字组成"> | ||
<BaseDemo /> | ||
<AlignDemo /> | ||
<Vertical /> | ||
</TDemoBlock> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters