Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: toast改造 #1279

Merged
merged 2 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions docs/mobile/api_v2/toast.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,20 @@ isComponent: true
toc: false
---

### 文本轻提示
## 代码演示

当进行某一操作,需要对该操作进行解释或者提示时,提示 2 秒后自动消失 提示内容整体居中对齐,最多显示两行 整体位置可以位于内容区顶部、底部、中心等,需整体居中对齐
### 基础演示

{{ text }}
{{ base }}

### 默认提示
### 组件状态

相比图标轻提示可以加一些辅助文字,对当前状态进行解释说明

{{ iconText }}

### 不同位置的提示

{{ position }}
{{ theme }}

### 显示遮罩

{{ preventScrollThrough }}
{{ cover }}

### 手动关闭

{{ mask }}

### 透传 Overlay

{{ overlay }}
{{ close }}
4 changes: 2 additions & 2 deletions style/mobile/components/toast/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

.@{prefix}-toast {
position: fixed;
right: -50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 12001;
opacity: 1;
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;
Expand Down