|
@@ -133,7 +133,6 @@ const EnhancedTable: FC<TableType> = props => {
|
|
orderBy,
|
|
orderBy,
|
|
} = props;
|
|
} = props;
|
|
const classes = useStyles({ tableCellMaxWidth });
|
|
const classes = useStyles({ tableCellMaxWidth });
|
|
- const [tableMouseStatus, setTableMouseStatus] = React.useState<boolean[]>([]);
|
|
|
|
const [loadingRowCount, setLoadingRowCount] = useState<number>(0);
|
|
const [loadingRowCount, setLoadingRowCount] = useState<number>(0);
|
|
|
|
|
|
const containerRef = useRef(null);
|
|
const containerRef = useRef(null);
|
|
@@ -198,20 +197,6 @@ const EnhancedTable: FC<TableType> = props => {
|
|
const isItemSelected = isSelected(row);
|
|
const isItemSelected = isSelected(row);
|
|
const labelId = `enhanced-table-checkbox-${index}`;
|
|
const labelId = `enhanced-table-checkbox-${index}`;
|
|
|
|
|
|
- const handleMouseEnter = () => {
|
|
|
|
- setTableMouseStatus(v => {
|
|
|
|
- const copy = [...v];
|
|
|
|
- copy[index] = true;
|
|
|
|
- return copy;
|
|
|
|
- });
|
|
|
|
- };
|
|
|
|
- const handleMouseLeave = () =>
|
|
|
|
- setTableMouseStatus(v => {
|
|
|
|
- const copy = [...v];
|
|
|
|
- copy[index] = false;
|
|
|
|
- return copy;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
return (
|
|
return (
|
|
<TableRow
|
|
<TableRow
|
|
hover={showHoverStyle}
|
|
hover={showHoverStyle}
|
|
@@ -224,8 +209,6 @@ const EnhancedTable: FC<TableType> = props => {
|
|
classes={{
|
|
classes={{
|
|
hover: classes.rowHover,
|
|
hover: classes.rowHover,
|
|
}}
|
|
}}
|
|
- onMouseEnter={handleMouseEnter}
|
|
|
|
- onMouseLeave={handleMouseLeave}
|
|
|
|
>
|
|
>
|
|
{openCheckBox && (
|
|
{openCheckBox && (
|
|
<TableCell
|
|
<TableCell
|
|
@@ -257,7 +240,6 @@ const EnhancedTable: FC<TableType> = props => {
|
|
style={cellStyle}
|
|
style={cellStyle}
|
|
>
|
|
>
|
|
<ActionBar
|
|
<ActionBar
|
|
- showLabel={tableMouseStatus[index]}
|
|
|
|
configs={actionBarConfigs}
|
|
configs={actionBarConfigs}
|
|
isHoverType={colDef.isHoverAction}
|
|
isHoverType={colDef.isHoverAction}
|
|
row={row}
|
|
row={row}
|