*/
_createApp?: CreateAppFunction<Element>,
): VueElementConstructor {
- const Comp = defineComponent(options, extraOptions) as any
- if (isPlainObject(Comp)) extend(Comp, extraOptions)
+ let Comp = defineComponent(options, extraOptions) as any
+ if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions)
class VueCustomElement extends VueElement {
static def = Comp
+ static formAssociated = !!options.formAssociated
+
constructor(initialProps?: Record<string, any>) {
super(Comp, initialProps, _createApp)
}