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

[Bug]: 手机端,点击编辑或者新建按钮之后,原先弹出按钮菜单不会自动关闭 #6830

Closed
ysc1234 opened this issue May 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working done 开发已完成 priority: High
Milestone

Comments

@ysc1234
Copy link
Contributor

ysc1234 commented May 13, 2024

Description

编辑或者新建完成之后,点击确认,原先弹出按钮菜单不会自动关闭,需再次点击空白地方或者右上角的x才能关闭
image

Steps To Reproduce 重现步骤

手机端对象新建或者编辑记录

Version 版本

2.7.1-beta.8

@tujiajun
Copy link
Contributor

tujiajun commented May 14, 2024

"actions": [
  {
      type: 'button',
      actionType: 'confirm',
      label: i18next.t('frontend_form_save'),
      primary: true,
      close: `object_actions_drawer_${uiSchema.name}`
  },
]

自定义按钮可参考上述代码中的close属性,在按钮事件处理完成之后关闭按钮菜单,
https://aisuda.bce.baidu.com/amis/zh-CN/components/dialog?page=1#%E5%8A%A8%E4%BD%9C%E5%90%8E%E5%85%B3%E9%97%AD%E5%BC%B9%E6%A1%86

@tujiajun tujiajun added the done 开发已完成 label May 14, 2024
@tujiajun
Copy link
Contributor

tujiajun commented May 14, 2024

@ysc1234 ysc1234 added done 开发已完成 and removed done 开发已完成 labels May 14, 2024
@hotlong hotlong closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done 开发已完成 priority: High
Projects
None yet
Development

No branches or pull requests

4 participants