mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +00:00
fix: fix sort icon update in transpose list-table
This commit is contained in:
parent
81c68b3e72
commit
5f3b24f648
@ -0,0 +1,10 @@
|
||||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@visactor/vtable",
|
||||
"comment": "fix: fix sort icon update in transpose list-table",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@visactor/vtable"
|
||||
}
|
@ -507,12 +507,21 @@ export class StateManager {
|
||||
column => column?.field === item?.field
|
||||
);
|
||||
//let path = (item as any)?.event?.path?.findLast((item:any)=>item.col!=undefined);
|
||||
prev.push({
|
||||
field: item.field,
|
||||
order: item.order,
|
||||
col: column.startInTotal,
|
||||
row: column.level
|
||||
} as any);
|
||||
if (this.table.internalProps.transpose) {
|
||||
prev.push({
|
||||
field: item.field,
|
||||
order: item.order,
|
||||
row: column.startInTotal,
|
||||
col: column.level
|
||||
} as any);
|
||||
} else {
|
||||
prev.push({
|
||||
field: item.field,
|
||||
order: item.order,
|
||||
col: column.startInTotal,
|
||||
row: column.level
|
||||
} as any);
|
||||
}
|
||||
|
||||
return prev;
|
||||
}, []);
|
||||
|
Loading…
Reference in New Issue
Block a user