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
希望Popconfirm组件支持一个disabled的属性 #16947
Labels
Comments
可以来个 PR~
透传没必要,做的太多了。 |
This was referenced Jun 5, 2019
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
包住有可能disabled的Button的时候,如果按钮是disabled,点击还会弹出确认框:
这样子,就要加个判断,按照条件去掉外面那层Popconfirm,有点麻烦:
如果用的是
visible={!isDisabled}
来控制,那么此时如果不是disabled,不用点都会弹出了,这样子又要额外写state控制,也是麻烦。所以希望有一个disabled属性,可以少写这些逻辑
What does the proposed API look like?
支持disabled属性,使得点击都不会弹出确认框,最好能透传,连button都不用写disabled了
The text was updated successfully, but these errors were encountered: