fix: 세력장수 이름 순에 NPC 정보 반영

This commit is contained in:
2022-04-08 17:21:40 +09:00
parent a95b26551c
commit 1437d190e5
+8
View File
@@ -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,