-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(pagination): 设置尺寸(#3047) * chore(pagination): 规范代码结构(#3047) * chore(table): 规范代码结构(#3047) --------- Co-authored-by: wanjinping <[email protected]>
- Loading branch information
Showing
9 changed files
with
124 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@hi-ui/pagination": minor | ||
"@hi-ui/hiui": minor | ||
--- | ||
|
||
feat(pagination): add size api(#3047) |
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
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,64 @@ | ||
import React from 'react' | ||
import Pagination from '../src' | ||
|
||
/** | ||
* @title 不同尺寸 | ||
*/ | ||
export const Size = () => { | ||
return ( | ||
<> | ||
<h1>不同尺寸</h1> | ||
<div className="button-basic__wrap"> | ||
<div style={{ marginBottom: 20 }}> | ||
<Pagination | ||
total={200} | ||
pageSize={10} | ||
showTotal | ||
showJumper | ||
showPagers | ||
size="sm" | ||
onChange={(cur, prev, pageSize) => { | ||
console.log('onChange', cur, prev, pageSize) | ||
}} | ||
/> | ||
</div> | ||
<div style={{ marginBottom: 20 }}> | ||
<Pagination | ||
type="shrink" | ||
total={200} | ||
pageSize={10} | ||
size={'sm'} | ||
onChange={(cur) => { | ||
console.log('onChange', cur) | ||
}} | ||
/> | ||
</div> | ||
<div style={{ marginBottom: 20 }}> | ||
<Pagination | ||
total={200} | ||
pageSize={10} | ||
showTotal | ||
showJumper | ||
showPagers | ||
size="md" | ||
onChange={(cur, prev, pageSize) => { | ||
console.log('onChange', cur, prev, pageSize) | ||
}} | ||
/> | ||
</div> | ||
<div style={{ marginBottom: 20 }}> | ||
<Pagination | ||
type="shrink" | ||
total={200} | ||
pageSize={10} | ||
size="md" | ||
onChange={(cur) => { | ||
console.log('onChange', cur) | ||
}} | ||
/> | ||
</div> | ||
<div style={{ marginBottom: 24 }}></div> | ||
</div> | ||
</> | ||
) | ||
} |