Merge branch 'master' into feature/2.9.42310.01-薪资项目拓扑图

This commit is contained in:
lys 2024-11-04 13:55:00 +08:00
commit c1760af39d
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ const index: FunctionComponent<Props> = (props) => {
i18n: item.i18n,
onCell: (record: any) => ({
onContextMenu: (e: any) => {
e.preventDefault();
record.lockItems && e.preventDefault();
}
}),
render: (text: string, record: any) => {
@ -135,7 +135,7 @@ const index: FunctionComponent<Props> = (props) => {
}
];
return (
<Dropdown menu={{ items }} trigger={["contextMenu"]} overlayClassName={styles.contextMenu} destroyPopupOnHide>
<Dropdown menu={{ items: record.lockItems ? items : [] }} trigger={["contextMenu"]} overlayClassName={styles.contextMenu} destroyPopupOnHide>
<span className={styles.contentSpan}>
<span title={text} className={styles.contentTitle} style={{ color: `${record?.[item.dataIndex + "_color"]}` }}>
{text}