mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 21:06:00 +00:00
feat(diagram): show data type and nullability
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user