city-casereport/miniprogram_npm/tdesign-miniprogram/dialog
2023-12-06 14:22:42 +08:00
..
dialog.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
dialog.js 户籍信息录入 2023-12-06 14:22:42 +08:00
dialog.json 户籍信息录入 2023-12-06 14:22:42 +08:00
dialog.wxml 户籍信息录入 2023-12-06 14:22:42 +08:00
dialog.wxs 户籍信息录入 2023-12-06 14:22:42 +08:00
dialog.wxss 户籍信息录入 2023-12-06 14:22:42 +08:00
index.d.ts 户籍信息录入 2023-12-06 14:22:42 +08:00
index.js 户籍信息录入 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

Dialog Props

name type default description required
actions Array / Slot - TypescriptArray<ButtonProps>Button API Documentssee more ts definition N
button-layout String horizontal optionshorizontal/vertical N
cancel-btn String / Object / Slot - see more ts definition N
close-btn Boolean / Object false 0.31.0 N
close-on-overlay-click Boolean undefined - N
confirm-btn String / Object / Slot - - N
content String / Slot - - N
external-classes Array - ['t-class', 't-class-content', 't-class-confirm', 't-class-cancel'] N
overlay-props Object {} - N
prevent-scroll-through Boolean true - N
show-overlay Boolean true - N
title String / Slot - - N
visible Boolean - - N
z-index Number 11500 - N

Dialog Events

name params description
cancel - -
close (trigger: DialogEventSource) see more ts definition
type DialogEventSource = 'cancel' | 'overlay' | 'close-btn'
confirm - -
overlay-click - -

CSS Variables

The component provides the following CSS variables, which can be used to customize styles.

Name Default Value Description
--td-dialog-body-max-height 912rpx -
--td-dialog-close-color @font-gray-3 -
--td-dialog-content-color @font-gray-2 -
--td-dialog-content-font-size 32rpx -
--td-dialog-content-line-height 48rpx -
--td-dialog-title-color @font-gray-1 -
--td-dialog-title-font-size 36rpx -
--td-dialog-title-line-height 52rpx -
--td-dialog-width 622rpx -