-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Table组件,TableAction中使用dropDownActions下拉选项,下拉选项的popConfirm无法被禁用 #3538
Comments
@dengdai11201 最新示例:
测试页面:
场景模拟: {
label: '删除',
icon: 'ic:outline-delete-outline',
// 原来的逻辑
// onClick: handleDelete.bind(null, record),
// 模拟的场景
popConfirm: {
title: `删除?`,
confirm: () => handleDelete.bind(null, record),
},
onClick: (e) => {
e.stopPropagation();
},
disabled: true,
}, |
|
e.stopPropagation() 在这里只是防止点击触发 select,没什么关系。 |
新源码中确实没有了 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
如图所示,图中下拉按钮已置灰,但依然可以点击并弹出popConfirm框,且弹出框的cancel和ok点击后仍然可以执行相关操作
The text was updated successfully, but these errors were encountered: