Skip to content

Commit

Permalink
手机端底部显示关闭按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed May 24, 2024
1 parent 94aa23c commit 11894d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/@steedos-widgets/amis-lib/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"frontend_notifications": "Notifications",
"frontend_notifications_allread": "Mark all as read",
"frontend_notifications_allread_message": "All marked as read",
"frontend_notifications_close_dialog": "Close",
"frontend_profile": "Profile",
"switch_space": "Switch Space",
"frontend_about": "About",
Expand Down
1 change: 1 addition & 0 deletions packages/@steedos-widgets/amis-lib/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"frontend_notifications": "通知",
"frontend_notifications_allread": "全部标记为已读",
"frontend_notifications_allread_message": "已全部标记为已读",
"frontend_notifications_close_dialog": "关闭",
"frontend_profile": "个人资料",
"switch_space": "切换工作区",
"frontend_about": "关于",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: [email protected]
* @Date: 2022-09-01 14:44:57
* @LastEditors: 殷亮辉 [email protected]
* @LastEditTime: 2024-05-24 19:16:50
* @LastEditTime: 2024-05-24 19:37:30
* @Description:
*/

Expand Down Expand Up @@ -117,11 +117,16 @@ const getNotificationBadgeButton = () => {
},
],
actions: [
{
"type": "button",
"label": i18next.t('frontend_notifications_close_dialog'),
"visibleOn": "${window:innerWidth <= 768}",
"close": true
},
{
"type": "button",
"label": i18next.t('frontend_notifications_allread'),
"id": "u:5530f3779e3a",
"close": true,
"onEvent": {
"click": {
"actions": [
Expand Down

0 comments on commit 11894d0

Please sign in to comment.