File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -52,18 +52,8 @@ const props = withDefaults(defineProps<Props>(), {
52
52
clearConsole: true ,
53
53
layoutReverse: false ,
54
54
ssr: false ,
55
- previewOptions : () => ({
56
- headHTML: ' ' ,
57
- bodyHTML: ' ' ,
58
- placeholderHTML: ' ' ,
59
- customCode: {
60
- importCode: ' ' ,
61
- useCode: ' ' ,
62
- },
63
- showRuntimeError: true ,
64
- showRuntimeWarning: true ,
65
- }),
66
55
layout: ' horizontal' ,
56
+ previewOptions : () => ({}),
67
57
editorOptions : () => ({}),
68
58
})
69
59
Original file line number Diff line number Diff line change @@ -290,9 +290,9 @@ defineExpose({ reload, container })
290
290
class =" iframe-container"
291
291
:class =" { [theme]: previewTheme }"
292
292
/>
293
- <Message :err =" runtimeError && previewOptions?.showRuntimeError" />
293
+ <Message :err =" runtimeError && ( previewOptions?.showRuntimeError ?? true) " />
294
294
<Message
295
- v-if =" !runtimeError && previewOptions?.showRuntimeWarning"
295
+ v-if =" !runtimeError && ( previewOptions?.showRuntimeWarning ?? true) "
296
296
:warn =" runtimeWarning"
297
297
/>
298
298
</template >
You can’t perform that action at this time.
0 commit comments