WGShare.Client.Wx/miniprogram_npm/tdesign-miniprogram/toast
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 Initial Commit 2024-11-11 14:16:29 +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
toast.d.ts 初始化 2024-11-20 17:29:49 +08:00
toast.js 初始化 2024-11-20 17:29:49 +08:00
toast.json 初始化 2024-11-20 17:29:49 +08:00
toast.wxml 初始化 2024-11-20 17:29:49 +08:00
toast.wxss 初始化 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

Toast 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
direction String row options: row/column N
duration Number 2000 - N
icon String / Object / Slot - see more ts definition N
message String / Slot - see more ts definition N
overlay-props Object - TypescriptOverlayProps Overlay API Documentssee more ts definition N
placement String middle options: top/middle/bottom N
prevent-scroll-through Boolean false - N
show-overlay Boolean false - N
theme String - options: loading/success/error N
using-custom-navbar Boolean false - N

Toast Events

name params description
close - -
destroy - -

Toast External Classes

className Description
t-class -

CSS Variables

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

Name Default Value Description
--td-toast-bg-color @font-gray-2 -
--td-toast-color @font-white-1 -
--td-toast-column-icon-size 64rpx -
--td-toast-max-width 374rpx -
--td-toast-radius 8rpx -
--td-toast-row-icon-size 48rpx -