fix(runtime-core): ensure defineComponent name in extraOptions takes higher priority
This commit is contained in:
parent
1279b17300
commit
b2be75bad4
|
@ -279,6 +279,6 @@ export function defineComponent(
|
||||||
extraOptions?: ComponentOptions
|
extraOptions?: ComponentOptions
|
||||||
) {
|
) {
|
||||||
return isFunction(options)
|
return isFunction(options)
|
||||||
? extend({}, extraOptions, { setup: options, name: options.name })
|
? extend({ name: options.name }, extraOptions, { setup: options })
|
||||||
: options
|
: options
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue