Skip to content

Commit

Permalink
refactor(message): new message (Tencent#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-yz authored and oljc committed May 9, 2023
1 parent 0c44f8f commit d5ff9fb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/mobile/api/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ toc: false

### 基础消息通知

弹窗内容为纯文本、标题和副标题、带操作按钮
用于轻量级反馈或提示,不会打断用户操作


{{ base }}
Expand Down
2 changes: 1 addition & 1 deletion docs/mobile/api_v2/message.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ toc: false

### 基础消息通知

弹窗内容为纯文本、标题和副标题、带操作按钮
用于轻量级反馈或提示,不会打断用户操作


{{ base }}
Expand Down
33 changes: 33 additions & 0 deletions style/mobile/components/message/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
white-space: nowrap;
}

&__close-wrap {
display: flex;
align-items: center;
}

&--info {
color: @message-info-color;
}
Expand Down Expand Up @@ -72,3 +77,31 @@
margin-left: @spacer;
}
}

.message-enter-active {
animation: messageEnter .5s;
}

.message-leave-active {
animation: messageOut .2s;
}

@keyframes messageEnter {
from {
transform: translate3d(0, -@message-height, 0);
}

to {
transform: translate3d(0, 0, 0);
}
}

@keyframes messageOut {
from {
transform: translate3d(0, 0, 0);
}

to {
transform: translate3d(0, -@message-height, 0);
}
}

0 comments on commit d5ff9fb

Please sign in to comment.