mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 04:16:00 +00:00
dataty pe in column manager and in form view
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}}
|
||||
/>
|
||||
{/if}
|
||||
<ColumnLabel {...column} />
|
||||
<ColumnLabel {...column} showDataType />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
export let headerText = '';
|
||||
export let columnName = '';
|
||||
export let extInfo = null;
|
||||
export let dataType = null;
|
||||
export let showDataType = false;
|
||||
|
||||
$: icon = getColumnIcon($$props, forceIcon);
|
||||
</script>
|
||||
@@ -27,6 +29,9 @@
|
||||
{#if extInfo}
|
||||
<span class="extinfo">{extInfo}</span>
|
||||
{/if}
|
||||
{#if showDataType && dataType}
|
||||
<span class="extinfo">{dataType.toLowerCase()}</span>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -567,6 +567,7 @@
|
||||
{...col}
|
||||
headerText={col.columnName}
|
||||
extInfo={col.foreignKey ? ` -> ${col.foreignKey.refTableName}` : null}
|
||||
showDataType={!col.foreignKey}
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user