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

Toast Props

name type default description required
direction String row optionsrow/column N
duration Number 2000 - N
external-classes Array - ['t-class'] N
icon String - - N
message String / Slot - - N
overlay-props Object {} - N
placement String middle options top/middle/bottom N
prevent-scroll-through Boolean false - N
show-overlay Boolean false - N
theme String - optionsloading/success/error N

Toast Events

name params description
close - -
destory - -

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 -