WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/popup
yj dd589f646c 初始化 2024-11-20 17:29:49 +08:00
..
README.en-US.md 初始化 2024-11-20 17:29:49 +08:00
README.md 初始化 2024-11-20 17:29:49 +08:00
index.d.ts 初始化 2024-11-20 17:29:49 +08:00
index.js 初始化 2024-11-20 17:29:49 +08:00
popup.d.ts 初始化 2024-11-20 17:29:49 +08:00
popup.js 初始化 2024-11-20 17:29:49 +08:00
popup.json 初始化 2024-11-20 17:29:49 +08:00
popup.wxml 初始化 2024-11-20 17:29:49 +08:00
popup.wxs 初始化 2024-11-20 17:29:49 +08:00
popup.wxss 初始化 2024-11-20 17:29:49 +08:00
props.d.ts Initial Commit 2024-11-11 14:16:29 +08:00
props.js 初始化 2024-11-20 17:29:49 +08:00
type.d.ts 初始化 2024-11-20 17:29:49 +08:00
type.js Initial Commit 2024-11-11 14:16:29 +08:00

README.en-US.md

:: BASE_DOC ::

API

Popup Props

name type default description required
style Object - CSS(Cascading Style Sheets) N
custom-style Object - CSS(Cascading Style Sheets)used to set style on virtual component N
close-btn Boolean / Slot - see more ts definition N
close-on-overlay-click Boolean true - N
content String / Slot - see more ts definition N
duration Number 240 - N
overlay-props Object {} TypescriptOverlayPropsOverlay API Documentssee more ts definition N
placement String top options: top/left/right/bottom/center N
prevent-scroll-through Boolean true - N
show-overlay Boolean true - N
using-custom-navbar Boolean false - N
visible Boolean - 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'

Popup External Classes

className Description
t-class -
t-class-content -

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 -
--td-popup-close-btn-color @text-color-primary -