city-casereport/miniprogram_npm/tdesign-miniprogram/popup
2023-12-06 14:22:42 +08:00
..
popup.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
popup.js 户籍信息录入 2023-12-06 14:22:42 +08:00
popup.json 户籍信息录入 2023-12-06 14:22:42 +08:00
popup.wxml 户籍信息录入 2023-12-06 14:22:42 +08:00
popup.wxs 户籍信息录入 2023-12-06 14:22:42 +08:00
popup.wxss 户籍信息录入 2023-12-06 14:22:42 +08:00
props.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
props.js 户籍信息录入 2023-12-06 14:22:42 +08:00
README.en-US.md 户籍信息录入 2023-12-06 14:22:42 +08:00
README.md 户籍信息录入 2023-12-06 14:22:42 +08:00
type.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
type.js 户籍信息录入 2023-12-06 14:22:42 +08:00

:: 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
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 Typescriptboolean N
default-visible Boolean undefined uncontrolled property。Typescriptboolean N
z-index Number 11500 - N

Popup Events

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 -