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 436866d commit 1be15afCopy full SHA for 1be15af
packages/runtime-dom/src/apiCustomElement.ts
@@ -172,9 +172,8 @@ export function defineCustomElement(
172
*/
173
_createApp?: CreateAppFunction<Element>,
174
): VueElementConstructor {
175
- if (isPlainObject(options)) options = extend({}, options)
176
- const Comp = defineComponent(options, extraOptions) as any
177
- if (isPlainObject(Comp)) extend(Comp, extraOptions)
+ let Comp = defineComponent(options, extraOptions) as any
+ if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions)
178
class VueCustomElement extends VueElement {
179
static def = Comp
180
constructor(initialProps?: Record<string, any>) {
0 commit comments