From ba14c8caf2e6370c6e872daea7829dddd124bc32 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 7 Apr 2022 01:01:22 +0900 Subject: [PATCH] =?UTF-8?q?misc:=20=EC=84=B8=EB=A0=A5=EC=9E=A5=EC=88=98?= =?UTF-8?q?=EB=8A=94=20=EB=86=92=EC=9D=B4=EA=B0=80=20=EC=82=AC=EC=8B=A4?= =?UTF-8?q?=EC=83=81=20=ED=99=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/components/GeneralList.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hwe/ts/components/GeneralList.vue b/hwe/ts/components/GeneralList.vue index 3d646989..656f90e6 100644 --- a/hwe/ts/components/GeneralList.vue +++ b/hwe/ts/components/GeneralList.vue @@ -152,7 +152,7 @@ watch(() => props.list, refineGeneralList); const gridApi = ref(); const columnApi = ref(); -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"];