We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.11.1
win10/chrome
2.6.10
https://codepen.io/bei123wang/pen/YmaJmx?&editable=true
鼠标点击 点我打开按钮 need repro -> 按 esc关闭
close-on-press-escape 为 true 按 esc 能关闭抽屉
close-on-press-escape 为 false 按 esc 只能关闭遮罩层
The text was updated successfully, but these errors were encountered:
Translation of this issue:
Win10/chrome
Https://codepen.io/bei123wang/pen/YmaJmx?&editable=true
Click on the mouse to open the button need Repro - > Press ESC to close
Close-on-press-escape is true
Press ESC to close drawers
Close-on-press-escape is false Press ESC to close the mask layer only
Sorry, something went wrong.
先这样解决了,在 created() 里面给Drawer 组件绑定 handleClose 函数 created() { let _this = this this.$nextTick( => { if (!_this.$refs.acountDrawer.handleClose) { _this.$refs.acountDrawer.handleClose = function() { _this.$refs.acountDrawer.closeDrawer() } } }) },
#16953
No branches or pull requests
Element UI version
2.11.1
OS/Browsers version
win10/chrome
Vue version
2.6.10
Reproduction Link
https://codepen.io/bei123wang/pen/YmaJmx?&editable=true
Steps to reproduce
鼠标点击 点我打开按钮 need repro -> 按 esc关闭
What is Expected?
close-on-press-escape 为 true
按 esc 能关闭抽屉
What is actually happening?
close-on-press-escape 为 false
按 esc 只能关闭遮罩层
The text was updated successfully, but these errors were encountered: