Overlay
Install
Register component globally via app.use, refer to Component Registration for more registration ways。
Usage
Basic Usage
Embedded Content
API
Props
| Attribute |
Description |
Type |
Default |
| show |
Whether to show overlay |
boolean |
false |
| z-index |
z-index |
number | string |
1 |
| duration |
Animation duration |
number | string |
0.3 |
| class-name |
ClassName |
string |
- |
| custom-class |
Custom style |
object |
- |
| lock-scroll |
Whether to lock background scroll |
boolean |
true |
Events
| Event |
Description |
Arguments |
| click |
Emitted when component is clicked |
event: MouseEvent |
Slots
| Name |
Description |
| default |
Default slot |
Less Variables
How to use: Custom Theme.
| Name |
Default Value |
Description |
| @overlay-z-index |
1 |
- |
| @overlay-background-color |
rgba(0, 0, 0, 0.7) |
- |