mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
fix onExpand control on row index column
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
|||||||
TableColumnContainer,
|
TableColumnContainer,
|
||||||
TableColumnTextContainer,
|
TableColumnTextContainer,
|
||||||
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
|
} from '/@/renderer/components/item-list/item-table-list/item-table-list-column';
|
||||||
|
import { ItemListItem } from '/@/renderer/components/item-list/types';
|
||||||
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
||||||
import { Text } from '/@/shared/components/text/text';
|
import { Text } from '/@/shared/components/text/text';
|
||||||
|
|
||||||
@@ -21,7 +22,12 @@ export const RowIndexColumn = (props: ItemTableListInnerColumn) => {
|
|||||||
icon="arrowDownS"
|
icon="arrowDownS"
|
||||||
iconProps={{ color: 'muted', size: 'md' }}
|
iconProps={{ color: 'muted', size: 'md' }}
|
||||||
onClick={(e) =>
|
onClick={(e) =>
|
||||||
controls.onExpand?.(props.data[props.rowIndex] as any, props.itemType, e)
|
controls.onExpand?.({
|
||||||
|
event: e,
|
||||||
|
internalState: props.internalState,
|
||||||
|
item: props.data[props.rowIndex] as ItemListItem,
|
||||||
|
itemType: props.itemType,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
size="xs"
|
size="xs"
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
|
|||||||
Reference in New Issue
Block a user