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

[Dialog] 对话框 组件增加回车确认事件 #1376

Closed
linzhenjie opened this issue Aug 10, 2022 · 2 comments
Closed

[Dialog] 对话框 组件增加回车确认事件 #1376

linzhenjie opened this issue Aug 10, 2022 · 2 comments
Labels
💪🏻 enhancement New feature or request to be published to be published

Comments

@linzhenjie
Copy link

这个功能解决了什么问题

image

同关闭操作,弹窗支持回车确认。方便在点出弹窗后,通过键盘快速进行操作。

你建议的方案是什么

组件

:confirmOnEnterKeydown="true"
:on-enter-keydown="onConfirm"

函数:
DialogPlugin.confirm({
confirmOnEnterKeydown: true,
onEnterKeydown : onConfirm
})

@PengYYYYY PengYYYYY added the 💪🏻 enhancement New feature or request label Aug 12, 2022
@PengYYYYY
Copy link
Collaborator

支持enter键框触发confirm方法,不会增加API

@huoyuhao
Copy link
Contributor

OK 我来处理一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants