zoujiandong 2bd2fd31ac 1.22
2024-01-22 08:55:30 +08:00

27 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:: BASE_DOC ::
## API
### Popup Props
name | type | default | description | required
-- | -- | -- | -- | --
close-btn | Boolean / Slot | - | \- | N
close-on-overlay-click | Boolean | true | \- | N
content | String / Slot | - | \- | N
custom-style | String | - | \- | N
duration | Number | 240 | \- | N
external-classes | Array | - | `['t-class', 't-class-overlay', 't-class-content']` | N
overlay-props | Object | {} | \- | N
placement | String | top | optionstop/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
### Popup Events
name | params | description
-- | -- | --
visible-change | `(visible: boolean, trigger: PopupSource) ` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/popup/type.ts)。<br/>`type PopupSource = 'close-btn' \| 'overlay'`<br/>