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">
|
||||
import TextCellView from './TextCellView.svelte';
|
||||
export let selection;
|
||||
</script>
|
||||
|
||||
<textarea class="flex1" wrap="no" readonly value={selection[0].value} />
|
||||
<TextCellView wrap="no" {selection} />
|
||||
|
@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import TextCellView from './TextCellView.svelte';
|
||||
export let selection;
|
||||
</script>
|
||||
|
||||
<textarea class="flex1" wrap="hard" readonly value={selection[0].value} />
|
||||
<TextCellView wrap="hard" {selection} />
|
||||
|
@ -4,13 +4,13 @@
|
||||
type: 'textWrap',
|
||||
title: 'Text (wrap)',
|
||||
component: TextCellViewWrap,
|
||||
single: true,
|
||||
single: false,
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
title: 'Text (no wrap)',
|
||||
component: TextCellViewNoWrap,
|
||||
single: true,
|
||||
single: false,
|
||||
},
|
||||
{
|
||||
type: 'json',
|
||||
|
Loading…
Reference in New Issue
Block a user