|
|
|
@ -105,7 +105,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) => {
|
|
|
|
@ -134,7 +134,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}
|
|
|
|
|