-
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.
feat: doc dumi use ant-style theme, home style, HashAddress Radio wri…
…te doc md
- Loading branch information
1 parent
30fcea8
commit e2a724b
Showing
18 changed files
with
546 additions
and
131 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
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 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
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,22 @@ | ||
import React from 'react'; | ||
import { HashAddress } from 'aelf-design'; | ||
import { Space } from 'antd'; | ||
|
||
const App: React.FC = () => { | ||
return ( | ||
<Space direction="vertical"> | ||
<HashAddress | ||
address="2DKgy7GafbrYWGnhSC3iSYgM9ZfudYS2KLLr1rDPLF9nZfWA6G" | ||
preLen={8} | ||
endLen={8} | ||
addressClickCallback={(originAdd, finalAdd, event) => { | ||
console.log(originAdd, finalAdd, event); | ||
}} | ||
ignoreEvent={true} | ||
ignorePrefixSuffix | ||
/> | ||
</Space> | ||
); | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import { HashAddress } from 'aelf-design'; | ||
import { Space } from 'antd'; | ||
|
||
const App: React.FC = () => { | ||
return ( | ||
<Space direction="vertical"> | ||
<div> | ||
small: | ||
<HashAddress address="2DKgy7GafbrYWGnhSC3iSYgM9ZfudYS2KLLr1rDPLF9nZfWA6G" size="small" /> | ||
</div> | ||
<div> | ||
default: | ||
<HashAddress | ||
address="2DKgy7GafbrYWGnhSC3iSYgM9ZfudYS2KLLr1rDPLF9nZfWA6G" | ||
preLen={8} | ||
endLen={8} | ||
ignorePrefixSuffix | ||
size="default" | ||
/> | ||
</div> | ||
<div> | ||
large: | ||
<HashAddress | ||
address="2DKgy7GafbrYWGnhSC3iSYgM9ZfudYS2KLLr1rDPLF9nZfWA6G" | ||
hasCopy={false} | ||
size="large" | ||
/> | ||
</div> | ||
<div> | ||
ultra: | ||
<HashAddress | ||
address="2DKgy7GafbrYWGnhSC3iSYgM9ZfudYS2KLLr1rDPLF9nZfWA6G" | ||
hasCopy={false} | ||
size="ultra" | ||
/> | ||
</div> | ||
</Space> | ||
); | ||
}; | ||
|
||
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,15 @@ | ||
import React, { useState } from 'react'; | ||
import { Progress } from 'aelf-design'; | ||
import { Space } from 'antd'; | ||
|
||
function Demo() { | ||
return ( | ||
<Space direction="vertical" size="middle" style={{ display: 'flex' }}> | ||
<Progress percent={10} size={[300, 8]} strokeColor="#00ff00" showInfo={true} /> | ||
<Progress percent={50} size={[300, 12]} showInfo={true} /> | ||
<Progress percent={100} size={[300, 20]} /> | ||
</Space> | ||
); | ||
} | ||
|
||
export default Demo; |
Oops, something went wrong.