diff --git a/docs/mobile/api_v2/toast.md b/docs/mobile/api_v2/toast.md index 366f058141..af895c59f8 100644 --- a/docs/mobile/api_v2/toast.md +++ b/docs/mobile/api_v2/toast.md @@ -6,30 +6,20 @@ isComponent: true toc: false --- -### 文本轻提示 +## 代码演示 -当进行某一操作,需要对该操作进行解释或者提示时,提示 2 秒后自动消失 提示内容整体居中对齐,最多显示两行 整体位置可以位于内容区顶部、底部、中心等,需整体居中对齐 +### 基础演示 -{{ text }} +{{ base }} -### 默认提示 +### 组件状态 -相比图标轻提示可以加一些辅助文字,对当前状态进行解释说明 - -{{ iconText }} - -### 不同位置的提示 - -{{ position }} +{{ theme }} ### 显示遮罩 -{{ preventScrollThrough }} +{{ cover }} ### 手动关闭 -{{ mask }} - -### 透传 Overlay - -{{ overlay }} +{{ close }} 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;