mirror of
https://github.com/dbgate/dbgate
synced 2024-11-15 08:16:28 +00:00
23 lines
517 B
Svelte
23 lines
517 B
Svelte
<script lang="ts" context="module">
|
|
export const extractKey = ({ columnName }) => columnName;
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
import { getColumnIcon } from '../elements/ColumnLabel.svelte';
|
|
|
|
import AppObjectCore from './AppObjectCore.svelte';
|
|
|
|
export let data;
|
|
|
|
$: extInfo = data.foreignKey ? `${data.dataType} -> ${data.foreignKey.refTableName}` : data.dataType;
|
|
</script>
|
|
|
|
<AppObjectCore
|
|
{...$$restProps}
|
|
{data}
|
|
title={data.columnName}
|
|
{extInfo}
|
|
icon={getColumnIcon(data, true)}
|
|
disableHover
|
|
/>
|