steedos / steedos-platform

华炎魔方低代码平台,超强前后端在线编程能力。 | Steedos is an open-source alternative to Salesforce Low-Code Platform. 🤖 🎨 🚀
https://www.steedos.com
GNU Affero General Public License v3.0
1.4k stars 391 forks source link

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

Closed ysc1234 closed 5 months ago

ysc1234 commented 6 months ago

Description

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

Steps To Reproduce 重现步骤

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

Version 版本

2.7.1-beta.8

tujiajun commented 6 months ago
"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 commented 6 months ago

https://github.com/steedos/steedos-widgets/blob/master/packages/%40steedos-widgets/amis-lib/src/schema/standard_new.amis.js

参考onDialogCancelScript