mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 00:44:23 +02:00
28 lines
895 B
TypeScript
28 lines
895 B
TypeScript
import {
|
|
ItemTableListInnerColumn,
|
|
TableColumnContainer,
|
|
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
|
|
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
|
|
|
export const ActionsColumn = (props: ItemTableListInnerColumn) => {
|
|
const row: any = (props.data as (any | undefined)[])[props.rowIndex];
|
|
|
|
if (row !== undefined) {
|
|
return (
|
|
<TableColumnContainer {...props}>
|
|
<ActionIcon
|
|
className="hover-only"
|
|
icon="ellipsisHorizontal"
|
|
iconProps={{
|
|
color: 'muted',
|
|
size: 'lg',
|
|
}}
|
|
variant="subtle"
|
|
/>
|
|
</TableColumnContainer>
|
|
);
|
|
}
|
|
|
|
return <TableColumnContainer {...props}> </TableColumnContainer>;
|
|
};
|