:: BASE_DOC ::
API
name |
type |
default |
description |
required |
close-btn |
Boolean / Slot |
- |
- |
N |
close-on-overlay-click |
Boolean |
true |
- |
N |
content |
String / Slot |
- |
- |
N |
duration |
Number |
240 |
- |
N |
external-classes |
Array |
- |
['t-class', 't-class-overlay', 't-class-content'] |
N |
overlay-props |
Object |
{} |
- |
N |
placement |
String |
top |
options:top/left/right/bottom/center |
N |
prevent-scroll-through |
Boolean |
true |
- |
N |
show-overlay |
Boolean |
true |
- |
N |
visible |
Boolean |
false |
Typescript:boolean |
N |
default-visible |
Boolean |
undefined |
uncontrolled property。Typescript:boolean |
N |
z-index |
Number |
11500 |
- |
N |
name |
params |
description |
visible-change |
(visible: boolean, trigger: PopupSource) |
see more ts definition。
type PopupSource = 'close-btn' | 'overlay'
|
CSS Variables
The component provides the following CSS variables, which can be used to customize styles.
Name |
Default Value |
Description |
--td-popup-bg-color |
@bg-color-container |
- |
--td-popup-border-radius |
@radius-default |
- |