mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 05:36:01 +00:00
qury designer fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<script lang="ts" context="module">
|
<script context="module">
|
||||||
function getTableDisplayName(column, tables) {
|
function getTableDisplayName(column, tables) {
|
||||||
const table = (tables || []).find(x => x.designerId == column.designerId);
|
const table = (tables || []).find(x => x.designerId == column.designerId);
|
||||||
if (table) return table.alias || table.pureName;
|
if (table) return table.alias || table.pureName;
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script>
|
||||||
import { map } from 'lodash';
|
import { map } from 'lodash';
|
||||||
import DataFilterControl from '../datagrid/DataFilterControl.svelte';
|
import DataFilterControl from '../datagrid/DataFilterControl.svelte';
|
||||||
import { findDesignerFilterType } from '../designer/designerTools';
|
import { findDesignerFilterType } from '../designer/designerTools';
|
||||||
@@ -41,6 +41,7 @@
|
|||||||
$: hasGroupedColumn = !!(columns || []).find(x => x.isGrouped);
|
$: hasGroupedColumn = !!(columns || []).find(x => x.isGrouped);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="wrapper">
|
||||||
<TableControl
|
<TableControl
|
||||||
rows={columns || []}
|
rows={columns || []}
|
||||||
columns={[
|
columns={[
|
||||||
@@ -134,3 +135,11 @@
|
|||||||
<InlineButton on:click={() => removeColumn(row)}>Remove</InlineButton>
|
<InlineButton on:click={() => removeColumn(row)}>Remove</InlineButton>
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
</TableControl>
|
</TableControl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.wrapper {
|
||||||
|
overflow: auto;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user