File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 68
68
'live-preview-browser': browser
69
69
}"
70
70
>
71
- <one-iframe global-style =" body { margin: 0 !important; } body > article { margin: 24px 36px; } .veui-layout { min-width: auto !important; }" >
71
+ <one-iframe
72
+ v-if =" browser"
73
+ global-style =" body { margin: 0 !important; } body > article { margin: 24px 36px; } .veui-layout { min-width: auto !important; }"
74
+ >
72
75
<v-live-preview
73
76
class =" editor-preview"
74
77
:code =" transformedCode"
78
81
@error =" handleError"
79
82
/>
80
83
</one-iframe >
84
+ <v-live-preview
85
+ v-else
86
+ class =" editor-preview"
87
+ :code =" transformedCode"
88
+ :requires =" imports"
89
+ :check-variable-availability =" false"
90
+ @success =" dismissError"
91
+ @error =" handleError"
92
+ />
81
93
<transition name =" editor-error" >
82
94
<veui-alert
83
95
v-if =" error"
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ Icon.register({
121
121
flex 1 1 auto
122
122
height calc (100% - 48px )
123
123
124
+ & >>> .live-preview
125
+ padding 24px 36px
126
+
124
127
& >>> .VueLive-error
125
128
display none
126
129
You can’t perform that action at this time.
0 commit comments