优化
This commit is contained in:
1 parent
2b18fe9991
commit
69e5f166e1
20 files changed
+70
-65
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import { onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||
import { AgGridVue } from 'ag-grid-vue3'
|
||||
import type { ColDef, FirstDataRenderedEvent, GridApi, GridReadyEvent, GridSizeChangedEvent } from 'ag-grid-community'
|
||||
import { myTheme, gridOptions } from '@/lib/diyAgGridOptions'
|
||||
import { myTheme, gridOptions, agGridWrapClass, agGridStyle } from '@/lib/diyAgGridOptions'
|
||||
import { parseNumberOrNull } from '@/lib/number'
|
||||
import { AG_GRID_LOCALE_CN } from '@ag-grid-community/locale'
|
||||
import { useKvStore } from '@/pinia/kv'
|
||||
@@ -325,9 +325,9 @@ onBeforeUnmount(() => {
|
||||
<div class="text-xs text-muted-foreground"></div>
|
||||
</div>
|
||||
|
||||
<div class="ag-theme-quartz h-full min-h-0 w-full flex-1">
|
||||
<div :class="agGridWrapClass">
|
||||
<AgGridVue
|
||||
:style="{ height: '100%' }"
|
||||
:style="agGridStyle"
|
||||
:rowData="detailRows"
|
||||
:columnDefs="columnDefs"
|
||||
:autoGroupColumnDef="autoGroupColumnDef"
|
||||
|
||||
Reference in new issue
Block a user