35 lines
805 B
Markdown
35 lines
805 B
Markdown
|
|
|
||
|
|
## API
|
||
|
|
|
||
|
|
### Overlay Props
|
||
|
|
|
||
|
|
name | type | default | description | required
|
||
|
|
-- | -- | -- | -- | --
|
||
|
|
custom-style | Object | - | CSS(Cascading Style Sheets) | N
|
||
|
|
background-color | String | - | \- | N
|
||
|
|
duration | Number | 300 | \- | N
|
||
|
|
prevent-scroll-through | Boolean | true | \- | N
|
||
|
|
using-custom-navbar | Boolean | false | \- | N
|
||
|
|
visible | Boolean | false | \- | N
|
||
|
|
z-index | Number | 11000 | \- | N
|
||
|
|
|
||
|
|
### Overlay Events
|
||
|
|
|
||
|
|
name | params | description
|
||
|
|
-- | -- | --
|
||
|
|
click | `(context: { visible: boolean })` | \-
|
||
|
|
|
||
|
|
### Overlay Slots
|
||
|
|
|
||
|
|
name | Description
|
||
|
|
-- | --
|
||
|
|
\- | \-
|
||
|
|
|
||
|
|
### CSS Variables
|
||
|
|
|
||
|
|
The component provides the following CSS variables, which can be used to customize styles.
|
||
|
|
Name | Default Value | Description
|
||
|
|
-- | -- | --
|
||
|
|
--td-overlay-bg-color | @mask-active | -
|
||
|
|
--td-overlay-transition-duration | 300ms | -
|