-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add doc for richprogress, richprogress modal, table
- Loading branch information
Showing
7 changed files
with
157 additions
and
44 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,57 @@ | ||
import React from 'react'; | ||
import { Button } from 'aelf-design'; | ||
|
||
import { IStepItem } from '../../RichProgress/index'; | ||
import { ProgressModal } from '../index'; | ||
|
||
const App: React.FC = () => { | ||
const [showProgress, setShowProgress] = React.useState(false); | ||
const steps: IStepItem[] = [ | ||
{ | ||
title: 'Title1Title1Title1', | ||
subTitle: 'subTitle1subTitle1.', | ||
percent: 100, | ||
progressTip: 'About 15 sec', | ||
status: 'normal', | ||
available: true, | ||
}, | ||
{ | ||
title: 'Title2Title2Title2', | ||
subTitle: 'subTitle2subTitle2subTitle2subTitle2.', | ||
percent: 60, | ||
progressTip: 'About 3~5 min', | ||
status: 'exception', | ||
available: true, | ||
}, | ||
{ | ||
title: 'Title3Title3Title3', | ||
subTitle: 'subTitle3subTitle3subTitle3.', | ||
percent: 0, | ||
progressTip: 'About 20 sec', | ||
status: 'normal', | ||
available: false, | ||
}, | ||
]; | ||
return ( | ||
<div> | ||
<ProgressModal | ||
desc="I am a description" | ||
title="test-progress" | ||
open={showProgress} | ||
steps={steps} | ||
onCancel={() => { | ||
setShowProgress(false); | ||
}} | ||
/> | ||
<Button | ||
onClick={() => { | ||
setShowProgress(true); | ||
}} | ||
> | ||
show progress modal demo | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |
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,39 @@ | ||
import React from 'react'; | ||
|
||
import { IStepItem, RichProgress } from '../index'; | ||
|
||
const App: React.FC = () => { | ||
const steps: IStepItem[] = [ | ||
{ | ||
title: 'Title1Title1Title1', | ||
subTitle: 'subTitle1subTitle1.', | ||
percent: 100, | ||
progressTip: 'About 15 sec', | ||
status: 'normal', | ||
available: true, | ||
}, | ||
{ | ||
title: 'Title2Title2Title2', | ||
subTitle: 'subTitle2subTitle2subTitle2subTitle2.', | ||
percent: 60, | ||
progressTip: 'About 3~5 min', | ||
status: 'exception', | ||
available: true, | ||
}, | ||
{ | ||
title: 'Title3Title3Title3', | ||
subTitle: 'subTitle3subTitle3subTitle3.', | ||
percent: 0, | ||
progressTip: 'About 20 sec', | ||
status: 'normal', | ||
available: false, | ||
}, | ||
]; | ||
return ( | ||
<div> | ||
<RichProgress stepsData={steps} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |
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