misc: 세력장수는 높이가 사실상 확정
This commit is contained in:
@@ -152,7 +152,7 @@ watch(() => props.list, refineGeneralList);
|
||||
const gridApi = ref<GridApi>();
|
||||
const columnApi = ref<ColumnApi>();
|
||||
|
||||
const rowHeight = ref(28);
|
||||
const rowHeight = ref(68);
|
||||
|
||||
function getRowId(params: GetRowIdParams): string {
|
||||
const genID = (params.data as GeneralListItem).no;
|
||||
@@ -173,9 +173,10 @@ function onGridReady(params: GridReadyEvent) {
|
||||
function setRowHeight() {
|
||||
if (columnApi.value === undefined) {
|
||||
console.error("아직 준비 안됨?");
|
||||
return 28;
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
let height = gridApi.value?.getSizesForCurrentTheme().rowHeight ?? 28;
|
||||
|
||||
if (columnApi.value.getColumn("icon")?.isVisible()) {
|
||||
@@ -184,7 +185,12 @@ function setRowHeight() {
|
||||
if (columnApi.value.getColumn("reservedCommand")?.isVisible()) {
|
||||
height = Math.max(height, 64 + 4);
|
||||
}
|
||||
rowHeight.value = height;
|
||||
|
||||
if(rowHeight.value != height){
|
||||
rowHeight.value = height;
|
||||
gridApi.value?.redrawRows();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function getRowHeight(): number {
|
||||
@@ -336,6 +342,7 @@ function toggleColumn(colID: headerType, col: Column) {
|
||||
}
|
||||
}
|
||||
columnApi.value?.setColumnsVisible(target, newState);
|
||||
setRowHeight();
|
||||
}
|
||||
|
||||
const defaultCellClass = ["cell-middle"];
|
||||
|
||||
Reference in New Issue
Block a user