feat(diagram): show data type and nullability

This commit is contained in:
Jan Prochazka
2022-01-20 15:03:30 +01:00
parent 53441d3e62
commit 8ad8d3f8cd
4 changed files with 57 additions and 1 deletions

View File

@@ -137,6 +137,20 @@
{#if designerColumn?.isGrouped}
<FontIcon icon="img group" />
{/if}
{#if designer?.style?.showNullability || designer?.style?.showDataType}
<div class="space" />
{#if designer?.style?.showDataType && column?.dataType}
<div class="ml-2">
{column?.dataType.toLowerCase()}
</div>
{/if}
{#if designer?.style?.showNullability}
<div class="ml-2">
{column?.notNull ? 'NOT NULL' : 'NULL'}
</div>
{/if}
{/if}
</div>
<style>
@@ -149,4 +163,10 @@
:global(.dbgate-screen) .line.isDragTarget {
background: var(--theme-bg-gold);
}
.line {
display: flex;
}
.space {
flex-grow: 1;
}
</style>