-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: jumper 更名为 paginationMini 组件 (#1749)
* feat: jumper 更名为 paginationMini 组件 * feat: jumper 更名为 paginationMini 组件 * feat: jumper 更名为 paginationMini 组件 * feat: jumper 更名为 paginationMini 组件
- Loading branch information
1 parent
f161ef4
commit 9cb8917
Showing
22 changed files
with
637 additions
and
1,136 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
Submodule _common
updated
15 files
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { useState } from 'react'; | ||
import { Radio, PaginationMini, Space } from 'tdesign-react'; | ||
|
||
export default function DemoPaginationMini() { | ||
const [layout, setLayout] = useState('vertical'); | ||
const [size, setSize] = useState('medium'); | ||
|
||
const tips = { prev: '前尘忆梦', current: '回到现在', next: '展望未来' }; | ||
|
||
return ( | ||
<Space direction="vertical" size={16}> | ||
<Space align="center"> | ||
<span>layout:</span> | ||
<Radio.Group value={layout} onChange={setLayout} variant="default-filled"> | ||
<Radio.Button value="vertical">vertical</Radio.Button> | ||
<Radio.Button value="horizontal">horizontal</Radio.Button> | ||
</Radio.Group> | ||
</Space> | ||
<Space align="center"> | ||
<span>size:</span> | ||
<Radio.Group value={size} onChange={setSize} variant="default-filled"> | ||
<Radio.Button value="small">small</Radio.Button> | ||
<Radio.Button value="medium">medium</Radio.Button> | ||
<Radio.Button value="large">large</Radio.Button> | ||
</Radio.Group> | ||
</Space> | ||
<PaginationMini layout={layout} size={size} tips={tips} /> | ||
</Space> | ||
) | ||
} |
Oops, something went wrong.