From 4d7ed44d57ffc0dcce63a56787dd8744c75c20e0 Mon Sep 17 00:00:00 2001 From: thewang Date: Mon, 17 Apr 2023 20:36:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20toast=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mobile/api_v2/toast.md | 31 ++++++++++++++++---- style/mobile/components/toast/v2/_index.less | 4 +-- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/docs/mobile/api_v2/toast.md b/docs/mobile/api_v2/toast.md index 366f058141..fe82bdf997 100644 --- a/docs/mobile/api_v2/toast.md +++ b/docs/mobile/api_v2/toast.md @@ -8,19 +8,38 @@ toc: false ### 文本轻提示 -当进行某一操作,需要对该操作进行解释或者提示时,提示 2 秒后自动消失 提示内容整体居中对齐,最多显示两行 整体位置可以位于内容区顶部、底部、中心等,需整体居中对齐 +当进行某一操作,需要对该操作进行解释或者提示时,提示 2 秒后自动消失 提示内容整体居中对齐,最多显示三行 {{ text }} -### 默认提示 +### 多行文字 -相比图标轻提示可以加一些辅助文字,对当前状态进行解释说明 +{{ multilineText }} -{{ iconText }} +### 带横向图标 -### 不同位置的提示 +{{ rowIconText }} -{{ position }} +### 带竖向图标 + +{{ columnIconText }} + + +### 带加载图标 + +{{ loadingIconText }} + +### 成功提示 + +{{ successIconText }} + +### 警告提示 + +{{ warnIconText }} + +### 失败提示 + +{{ errorIconText }} ### 显示遮罩 diff --git a/style/mobile/components/toast/v2/_index.less b/style/mobile/components/toast/v2/_index.less index 49a111e85e..593b401aa6 100644 --- a/style/mobile/components/toast/v2/_index.less +++ b/style/mobile/components/toast/v2/_index.less @@ -4,7 +4,7 @@ .@{prefix}-toast { position: fixed; - right: -50%; + top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 12001; @@ -12,7 +12,7 @@ transition: opacity 300ms ease; background-color: @toast-bg-color; border-radius: @toast-radius; - font-size: 24px; + font-size: 14px; color: @toast-color; max-width: @toast-max-width; width: fit-content; From f6d1ceb67471141c4376b62958c5d8a45801ef86 Mon Sep 17 00:00:00 2001 From: thewang Date: Wed, 19 Apr 2023 11:43:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20toast-md=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mobile/api_v2/toast.md | 43 ++++++------------------------------- 1 file changed, 7 insertions(+), 36 deletions(-) diff --git a/docs/mobile/api_v2/toast.md b/docs/mobile/api_v2/toast.md index fe82bdf997..af895c59f8 100644 --- a/docs/mobile/api_v2/toast.md +++ b/docs/mobile/api_v2/toast.md @@ -6,49 +6,20 @@ isComponent: true toc: false --- -### 文本轻提示 +## 代码演示 -当进行某一操作,需要对该操作进行解释或者提示时,提示 2 秒后自动消失 提示内容整体居中对齐,最多显示三行 +### 基础演示 -{{ text }} +{{ base }} -### 多行文字 +### 组件状态 -{{ multilineText }} - -### 带横向图标 - -{{ rowIconText }} - -### 带竖向图标 - -{{ columnIconText }} - - -### 带加载图标 - -{{ loadingIconText }} - -### 成功提示 - -{{ successIconText }} - -### 警告提示 - -{{ warnIconText }} - -### 失败提示 - -{{ errorIconText }} +{{ theme }} ### 显示遮罩 -{{ preventScrollThrough }} +{{ cover }} ### 手动关闭 -{{ mask }} - -### 透传 Overlay - -{{ overlay }} +{{ close }}