forked from devsam/core
fix: 세력장수 이름 순에 NPC 정보 반영
This commit is contained in:
@@ -523,6 +523,14 @@ const columnRawDefs = ref<Partial<Record<headerType, GenColDef | GenColGroupDef>
|
||||
};
|
||||
return style as CellStyle;
|
||||
},
|
||||
comparator: (_lhs, _rhs, {data: lhs}: GenRowNode, {data: rhs}: GenRowNode)=>{
|
||||
const npcDiff = lhs.npc - rhs.npc;
|
||||
if(npcDiff != 0){
|
||||
return npcDiff;
|
||||
}
|
||||
return lhs.name.localeCompare(rhs.name);
|
||||
},
|
||||
|
||||
filterValueGetter: ({ data }) => convertSearch초성(data.name),
|
||||
cellClass: [props.availableGeneralClick ? "clickable-cell" : "", ...defaultCellClass],
|
||||
filter: true,
|
||||
|
||||
Reference in New Issue
Block a user