mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
show table name in perspective
This commit is contained in:
@@ -106,7 +106,10 @@ export class PerspectiveDisplay {
|
|||||||
|
|
||||||
constructor(public root: PerspectiveTreeNode, rows: any[]) {
|
constructor(public root: PerspectiveTreeNode, rows: any[]) {
|
||||||
// dbg('source rows', rows);
|
// dbg('source rows', rows);
|
||||||
this.fillColumns(root.childNodes, []);
|
this.fillColumns(root.childNodes, [root]);
|
||||||
|
if (this.columns.length > 0) {
|
||||||
|
this.columns[0].colSpanAtLevel[0] = this.columns.length;
|
||||||
|
}
|
||||||
this.columnLevelCount = _max(this.columns.map(x => x.parentNodes.length)) + 1;
|
this.columnLevelCount = _max(this.columns.map(x => x.parentNodes.length)) + 1;
|
||||||
const collectedRows = this.collectRows(rows, root.childNodes);
|
const collectedRows = this.collectRows(rows, root.childNodes);
|
||||||
// dbg('collected rows', collectedRows);
|
// dbg('collected rows', collectedRows);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@
|
|||||||
<th rowspan={column.rowSpan}>{column.title}</th>
|
<th rowspan={column.rowSpan}>{column.title}</th>
|
||||||
{/if}
|
{/if}
|
||||||
{#if column.showParent(columnLevel)}
|
{#if column.showParent(columnLevel)}
|
||||||
<th colspan={column.getColSpan(columnLevel)}>{column.getParentName(columnLevel)}</th>
|
<th colspan={column.getColSpan(columnLevel)} class='tableName'>{column.getParentName(columnLevel)}</th>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
@@ -234,11 +234,16 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
vertical-align: center;
|
vertical-align: center;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
font-weight: normal;
|
||||||
|
|
||||||
border-bottom: 1px solid var(--theme-border);
|
border-bottom: 1px solid var(--theme-border);
|
||||||
border-right: 1px solid var(--theme-border);
|
border-right: 1px solid var(--theme-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th.tableName {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
th.filter {
|
th.filter {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user