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

希望NTabs增加类似before-leave钩子属性 #1337

Closed
AustinQin opened this issue Oct 12, 2021 · 1 comment · Fixed by #1394
Closed

希望NTabs增加类似before-leave钩子属性 #1337

AustinQin opened this issue Oct 12, 2021 · 1 comment · Fixed by #1394
Labels
feature request New feature or request priority: high

Comments

@AustinQin
Copy link

This function solves the problem (这个功能解决的问题)

切换标签之前,可以处理一些业务逻辑,来决定是否切换

Expected API (期望的 API)

before-leave属性,若返回 false 或者返回 Promise 且被 reject,则阻止切换,类型:Function(activeName, oldActiveName) (参考element-ui)

@github-actions github-actions bot added the feature request New feature or request label Oct 12, 2021
@07akioni
Copy link
Collaborator

可以考虑一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants