File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const props = withDefaults(
22
22
language? : string
23
23
copyPlacement? : ' top-right' | ' bottom-right' | ' outside' | ' none'
24
24
copyMessage? : string
25
+ wordWrap? : boolean
25
26
}>(),
26
27
{
27
28
followHeightOf: null ,
@@ -59,7 +60,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
59
60
:style =" height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
60
61
>
61
62
<n-config-provider :hljs =" hljs" >
62
- <n-code :code =" value" :language =" language" :trim =" false" data-test-id =" area-content" />
63
+ <n-code :code =" value" :language =" language" :word-wrap = " wordWrap " : trim =" false" data-test-id =" area-content" />
63
64
</n-config-provider >
64
65
</n-scrollbar >
65
66
<div absolute right-10px top-10px >
You can’t perform that action at this time.
0 commit comments