Popup
Popup layer that can slide in from different directions.
Code examples
Bottom Popup
This popup slides up from the bottom. Tap close or overlay to dismiss.
Success
Operation completed
API
Props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
show | Visibility | boolean | false |
position | Placement | center | top | bottom | left | right | center |
round | Rounded corners | boolean | false |
closeable | Show close button | boolean | false |
overlay | Show overlay mask | boolean | true |
close-on-click-overlay | Close when the overlay is clicked | boolean | true |
duration | Animation duration (ms) | number | 300 |
Events
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
close | Fires when closing | - | - |
opened | Fires after open animation completes | - | - |
closed | Fires after close animation completes | - | - |