mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
text cell view
This commit is contained in:
parent
6c5f5a7cfb
commit
4c87ad50b1
6
packages/web/src/celldata/TextCellView.svelte
Normal file
6
packages/web/src/celldata/TextCellView.svelte
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
export let selection;
|
||||||
|
export let wrap;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<textarea class="flex1" {wrap} readonly value={selection.map(cell => cell.value).join('\n')} />
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import TextCellView from './TextCellView.svelte';
|
||||||
export let selection;
|
export let selection;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<textarea class="flex1" wrap="no" readonly value={selection[0].value} />
|
<TextCellView wrap="no" {selection} />
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import TextCellView from './TextCellView.svelte';
|
||||||
export let selection;
|
export let selection;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<textarea class="flex1" wrap="hard" readonly value={selection[0].value} />
|
<TextCellView wrap="hard" {selection} />
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
type: 'textWrap',
|
type: 'textWrap',
|
||||||
title: 'Text (wrap)',
|
title: 'Text (wrap)',
|
||||||
component: TextCellViewWrap,
|
component: TextCellViewWrap,
|
||||||
single: true,
|
single: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
title: 'Text (no wrap)',
|
title: 'Text (no wrap)',
|
||||||
component: TextCellViewNoWrap,
|
component: TextCellViewNoWrap,
|
||||||
single: true,
|
single: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'json',
|
type: 'json',
|
||||||
|
Loading…
Reference in New Issue
Block a user