mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 17:53:59 +00:00
text cell view
This commit is contained in:
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',
|
||||||
|
|||||||
Reference in New Issue
Block a user