mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 02:13:57 +00:00
last row render fix
This commit is contained in:
@@ -95,10 +95,13 @@ export class PerspectiveDisplay {
|
||||
// this.mergeRows(collectedRows);
|
||||
this.mergeRows(collectedRows);
|
||||
// dbg('merged rows', this.rows);
|
||||
|
||||
// console.log(
|
||||
// 'MERGED',
|
||||
// this.rows.map(r =>
|
||||
// r.incompleteRowsIndicator ? `************************************ ${r.incompleteRowsIndicator.join('|')}` : r.rowData.join('|')
|
||||
// r.incompleteRowsIndicator
|
||||
// ? `************************************ ${r.incompleteRowsIndicator.join('|')}`
|
||||
// : r.rowData.join('|')
|
||||
// )
|
||||
// );
|
||||
}
|
||||
@@ -204,6 +207,14 @@ export class PerspectiveDisplay {
|
||||
}
|
||||
rowIndex++;
|
||||
}
|
||||
|
||||
// simulate row after last row
|
||||
for (let i = 0; i < this.columns.length; i++) {
|
||||
if (rowIndex - lastFilledColumns[i] > 1) {
|
||||
this.rows[lastFilledColumns[i]].rowSpans[i] = rowIndex - lastFilledColumns[i];
|
||||
}
|
||||
lastFilledColumns[i] = rowIndex;
|
||||
}
|
||||
}
|
||||
|
||||
mergeRows(collectedRows: CollectedPerspectiveDisplayRow[]) {
|
||||
|
||||
@@ -1,21 +1,12 @@
|
||||
<script lang="ts">
|
||||
import {
|
||||
// groupPerspectiveLoadProps,
|
||||
PerspectiveDataLoadProps,
|
||||
PerspectiveDataLoadPropsWithNode,
|
||||
PerspectiveDisplay,
|
||||
PerspectiveTreeNode,
|
||||
} from 'dbgate-datalib';
|
||||
import _, { range } from 'lodash';
|
||||
import { PerspectiveDisplay, PerspectiveTreeNode } from 'dbgate-datalib';
|
||||
import _ from 'lodash';
|
||||
import { onMount } from 'svelte';
|
||||
import { prop_dev, tick } from 'svelte/internal';
|
||||
import { sleep } from '../utility/common';
|
||||
import resizeObserver from '../utility/resizeObserver';
|
||||
import PerspectiveIntersectionObserver from './PerspectiveIntersectionObserver.svelte';
|
||||
import debug from 'debug';
|
||||
import contextMenu from '../utility/contextMenu';
|
||||
import DataFilterControl from '../datagrid/DataFilterControl.svelte';
|
||||
import { countVisibleRealColumns } from '../datagrid/gridutil';
|
||||
|
||||
const dbg = debug('dbgate:PerspectivaTable');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user