-
Notifications
You must be signed in to change notification settings - Fork 66
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 #318 from yuanmeda/fix/doc-pull-down-refresh413
docs(pull-down-refresh): update docs and demo
- Loading branch information
Showing
4 changed files
with
40 additions
and
58 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 |
---|---|---|
@@ -1,22 +1,42 @@ | ||
import React from 'react'; | ||
import { Skeleton } from 'tdesign-mobile-react'; | ||
import BaseDemo from './base'; | ||
import TopDemo from './top'; | ||
import TDemoBlock from '../../../site/mobile/components/DemoBlock'; | ||
import TDemoHeader from '../../../site/mobile/components/DemoHeader'; | ||
import './style/index.less'; | ||
|
||
export default function Demo() { | ||
const rowCols = [ | ||
1, | ||
{ | ||
width: '100px', | ||
}, | ||
{ | ||
width: '165.5px', | ||
height: '165.5px', | ||
borderRadius: '12px', | ||
}, | ||
]; | ||
return ( | ||
<div className="tdesign-mobile-demo"> | ||
<TDemoHeader | ||
title="PullDownRefresh 下拉刷新" | ||
summary="用于快速刷新页面信息,刷新可以是整页刷新也可以是页面的局部刷新。" | ||
/> | ||
<TDemoBlock title="01 类型" summary="下拉刷新大致分为顶部下拉和中间下拉"> | ||
<BaseDemo /> | ||
</TDemoBlock> | ||
<TDemoBlock summary="顶部下拉刷新"> | ||
<TopDemo /> | ||
</TDemoBlock> | ||
<BaseDemo> | ||
<> | ||
<TDemoHeader | ||
title="PullDownRefresh 下拉刷新" | ||
summary="用于快速刷新页面信息,刷新可以是整页刷新也可以是页面的局部刷新。" | ||
/> | ||
<TDemoBlock> | ||
<div className="tdesign-mobile-block">拖拽该区域演示 顶部下拉刷新</div> | ||
<div style={{ display: 'flex', padding: '0 16px 140px 16px' }}> | ||
{Array.from(Array(2), (_, key) => ( | ||
<div className="tdesign-mobile-item" key={key}> | ||
<Skeleton theme="text" rowCol={rowCols} /> | ||
</div> | ||
))} | ||
</div> | ||
</TDemoBlock> | ||
</> | ||
</BaseDemo> | ||
</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
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