const rowSelection = userInfo.isManager == 1 || userInfo.isSuperAdmin == 1 ? { onChange: (selectkeys) => { setSelectedRowKeys(selectkeys) }, } : { onChange: (selectkeys) => { setSelectedRowKeys(selectkeys) }, getCheckboxProps: ({ createName }) => ({ disabled: createName !== userInfo.userName }), };
是管理员和超管不禁用所有多选框,如果不是,创建角色不是登录角色的禁用
标签:禁用,selectkeys,setSelectedRowKeys,userInfo,Table,antd,选框 From: https://www.cnblogs.com/Esai-Z/p/17568652.html