-
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.
- Loading branch information
wanjinping
committed
Nov 15, 2024
1 parent
6f27f69
commit dc6ff81
Showing
9 changed files
with
126 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": patch | ||
"@hi-ui/hiui": patch | ||
--- | ||
|
||
feat(pagination): 设置尺寸(#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> | ||
</> | ||
) | ||
} |