feat(Text Diff): add word wrap option

Fix #1554
This commit is contained in:
ShareVB committed 2025-04-20 23:12:33 +02:00
1 parent ed875a13b1
commit 33cffc5d73
1 file changed
+14 -3
+14 -3
View File
@@ -1,5 +1,16 @@
<script setup lang="ts">
const wordWrap = ref(false);
</script>
<template>
<c-card w-full important:flex-1 important:pa-0>
<c-diff-editor />
</c-card>
<div w-full>
<n-space justify="center" mb-3>
<n-checkbox v-model:checked="wordWrap">
Word Wrap?
</n-checkbox>
</n-space>
<c-card w-full important:flex-1 important:pa-0>
<c-diff-editor :options="{ wordWrap: wordWrap ? 'on' : 'off' }" />
</c-card>
</div>
</template>