Skip to content
New issue

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

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

Already on GitHub? # to your account

在使用openCustomModal时,show/hide控制会在多个自定义按钮间互相影响造成显示错误 #7387

Closed
TNTest opened this issue Oct 25, 2024 · 2 comments

Comments

@TNTest
Copy link

TNTest commented Oct 25, 2024

版本号:

3.7.1

问题描述:

自定义按钮+JS增强如果添加了超过一个, 在使用openCustomModal时,show/hide控制会在多个按钮间互相影响造成显示错误。

举例:

定义两个按钮,出库,入库。 每个按钮弹出的界面只需要显示入库或者出库输入框。
按钮定义如下:
image
js增强代码:

plus(row) {
  this.openCustomModal({
    row: row,
    title: '入库',
    width: 800,
    show: ['plus']
  });
}

minus(row) {
  this.openCustomModal({
    row: row,
    title: '出库',
    width: 800,
    show: ['minus']
  });
}
错误截图:

使用时第一次打开是正常的:
image
当使用另外一个按钮时显示隐藏逻辑就混在一起了,造成什么都不显示:
image

@zhangdaiscott
Copy link
Member

zy

@jeecgDeveloper
Copy link

已修复,下一版本发布。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants