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 @@ -16,6 +16,7 @@ const props = withDefaults(
16
16
language? : string
17
17
copyPlacement? : ' top-right' | ' bottom-right' | ' outside' | ' none'
18
18
copyMessage? : string
19
+ wordWrap? : boolean
19
20
}>(),
20
21
{
21
22
followHeightOf: null ,
@@ -47,7 +48,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
47
48
:style =" height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
48
49
>
49
50
<n-config-provider :hljs =" hljs" >
50
- <n-code :code =" value" :language =" language" :trim =" false" data-test-id =" area-content" />
51
+ <n-code :code =" value" :language =" language" :word-wrap = " wordWrap " : trim =" false" data-test-id =" area-content" />
51
52
</n-config-provider >
52
53
</n-scrollbar >
53
54
<div absolute right-10px top-10px >
You can’t perform that action at this time.
0 commit comments