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