We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55593c9 commit ad7e3e0Copy full SHA for ad7e3e0
src/Preview.vue
@@ -171,8 +171,13 @@ export default {
171
this.handleError(e);
172
return;
173
}
174
-
175
- options.components = this.components;
+ if (this.components) {
+ if (!options.components) {
176
+ options.components = this.components;
177
+ } else {
178
+ options.components = { ...options.components, ...this.components };
179
+ }
180
181
if (style) {
182
// To add the scope id attribute to each item in the html
183
// this way when we add the scoped style sheet it will be aplied
0 commit comments