forked from rsuite/rsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(overlay): refactored Overlay related components (rsuite#1266)
* refactor(overlay): refactored Overlay related components * refactor: update components affected by Overlay
- Loading branch information
Showing
255 changed files
with
4,603 additions
and
6,923 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 |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
|
||
容器在可视范围内才固定元素,当滚动页面容器不在可视范围则取消固定元素。 | ||
|
||
<!--{include:`container.md`}--> | ||
|
||
## Props | ||
|
||
### `<Affix>` | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,56 @@ | ||
# Drawer | ||
|
||
A floating layer that slides out from the edge of the page can be used instead of Modal to put more content. | ||
A panel that slides out from the edge of the page can replace Modal to present more content. | ||
|
||
## Usage | ||
## Import | ||
|
||
```js | ||
import { Drawer } from 'rsuite'; | ||
``` | ||
<!--{include:(components/drawer/fragments/import.md)}--> | ||
|
||
## Examples | ||
|
||
<!--{demo}--> | ||
### Default | ||
|
||
<!--{include:`basic.md`}--> | ||
|
||
### Backdrop | ||
|
||
<!--{include:`backdrop.md`}--> | ||
|
||
### Placement | ||
|
||
<!--{include:`placement.md`}--> | ||
|
||
### Size | ||
|
||
<!--{include:`size.md`}--> | ||
|
||
### Fullpage | ||
|
||
<!--{include:`full.md`}--> | ||
|
||
## Props | ||
|
||
<!--{include:(_common/types/placement4.md)}--> | ||
|
||
### `<Drawer>` | ||
|
||
| Property | Type `(Default)` | Description | | ||
| ----------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| autoFocus | boolean `(true)` | When set to true, the Drawer is opened and is automatically focused on its own, accessible to screen readers | | ||
| backdrop | unions: boolean, 'static' | When set to true, the Drawer will display the background when it is opened. Clicking on the background will close the Drawer. If you do not want to close the Drawer, set it to 'static'. | | ||
| backdropClassName | string | Add an optional extra class name to .modal-backdrop It could end up looking like class="modal-backdrop foo-modal-backdrop in". | | ||
| classPrefix | string `('drawer')` | The prefix of the component CSS class | | ||
| enforceFocus | boolean `(true)` | When set to true, Drawer will prevent the focus from leaving when opened, making it easier for the secondary screen reader to access | | ||
| full | boolean | Full screen | | ||
| keyboard | boolean | close Drawer when press `esc` | | ||
| onEnter | () => void | Callback fired before the Drawer transitions in | | ||
| onEntered | () => void | Callback fired after the Drawer finishes transitioning in | | ||
| onEntering | () => void | Callback fired as the Drawer begins to transition in | | ||
| onExit | () => void | Callback fired right before the Drawer transitions out | | ||
| onExited | () => void | Callback fired after the Drawer finishes transitioning out | | ||
| onExiting | () => void | Callback fired as the Drawer begins to transition out | | ||
| onHide | () => void | Callback fired when Drawer hide | | ||
| onShow | () => void | Callback fired when Drawer display | | ||
| placement | enum: 'top','right','bottom', 'left' `(right)` | The placement of Drawer | | ||
| show \* | boolean | Show Drawer | | ||
| size | enum: 'lg', 'md', 'sm', 'xs' | Set Drawer size | | ||
| Property | Type `(Default)` | Description | | ||
| ----------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| autoFocus | boolean `(true)` | When set to true, the Drawer is opened and is automatically focused on its own, accessible to screen readers | | ||
| backdrop | unions: boolean, 'static' | When set to true, the Drawer will display the background when it is opened. Clicking on the background will close the Drawer. If you do not want to close the Drawer, set it to 'static'. | | ||
| backdropClassName | string | Add an optional extra class name to .modal-backdrop It could end up looking like class="modal-backdrop foo-modal-backdrop in". | | ||
| classPrefix | string `('drawer')` | The prefix of the component CSS class | | ||
| enforceFocus | boolean `(true)` | When set to true, Drawer will prevent the focus from leaving when opened, making it easier for the secondary screen reader to access | | ||
| full | boolean | Full screen | | ||
| keyboard | boolean | close Drawer when press `esc` | | ||
| onEnter | () => void | Callback fired before the Drawer transitions in | | ||
| onEntered | () => void | Callback fired after the Drawer finishes transitioning in | | ||
| onEntering | () => void | Callback fired as the Drawer begins to transition in | | ||
| onExit | () => void | Callback fired right before the Drawer transitions out | | ||
| onExited | () => void | Callback fired after the Drawer finishes transitioning out | | ||
| onExiting | () => void | Callback fired as the Drawer begins to transition out | | ||
| onClose | () => void | Callback fired when Drawer hide | | ||
| onOpen | () => void | Callback fired when Drawer display | | ||
| placement | Placement `(right)` | The placement of Drawer | | ||
| open \* | boolean | Open Drawer | | ||
| size | enum: 'lg', 'md', 'sm', 'xs' | Set Drawer size | |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.