From 45be153eaef9e1c1a3fe21515e9cbd785fba8e1f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 22 四月 2025 17:38:35 +0800 Subject: [PATCH] 线索任务 --- miniprogram_npm/tdesign-miniprogram/toast/README.en-US.md | 34 +++++++++++++++++++++++++++------- 1 files changed, 27 insertions(+), 7 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/toast/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/toast/README.en-US.md index a3f5848..0c80f67 100644 --- a/miniprogram_npm/tdesign-miniprogram/toast/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/toast/README.en-US.md @@ -1,20 +1,23 @@ :: BASE_DOC :: ## API + ### Toast Props name | type | default | description | required -- | -- | -- | -- | -- -direction | String | row | options锛歳ow/column | N +style | Object | - | CSS(Cascading Style Sheets) | N +custom-style | Object | - | CSS(Cascading Style Sheets)锛寀sed to set style on virtual component | N +direction | String | row | options: row/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 +icon | String / Object / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +message | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N +overlay-props | Object | {} | Typescript锛歚OverlayProps `锛孾Overlay API Documents](./overlay?tab=api)銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/toast/type.ts) | N +placement | String | middle | options: top/middle/bottom | N prevent-scroll-through | Boolean | false | \- | N show-overlay | Boolean | false | \- | N -theme | String | - | options锛歭oading/success/error | N +theme | String | - | options: loading/success/error | N +using-custom-navbar | Boolean | false | \- | N ### Toast Events @@ -22,3 +25,20 @@ -- | -- | -- close | \- | \- destory | \- | \- +### 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 | - \ No newline at end of file -- Gitblit v1.9.3