fix: fix option merge global mixins presence check
This commit is contained in:
parent
dbbd9990e0
commit
10ad965100
@ -516,9 +516,9 @@ export function resolveMergedOptions(
|
|||||||
const { __merged, mixins, extends: extendsOptions } = raw
|
const { __merged, mixins, extends: extendsOptions } = raw
|
||||||
if (__merged) return __merged
|
if (__merged) return __merged
|
||||||
const globalMixins = instance.appContext.mixins
|
const globalMixins = instance.appContext.mixins
|
||||||
if (!globalMixins && !mixins && !extendsOptions) return raw
|
if (!globalMixins.length && !mixins && !extendsOptions) return raw
|
||||||
const options = {}
|
const options = {}
|
||||||
globalMixins && globalMixins.forEach(m => mergeOptions(options, m, instance))
|
globalMixins.forEach(m => mergeOptions(options, m, instance))
|
||||||
extendsOptions && mergeOptions(options, extendsOptions, instance)
|
extendsOptions && mergeOptions(options, extendsOptions, instance)
|
||||||
mixins && mixins.forEach(m => mergeOptions(options, m, instance))
|
mixins && mixins.forEach(m => mergeOptions(options, m, instance))
|
||||||
mergeOptions(options, raw, instance)
|
mergeOptions(options, raw, instance)
|
||||||
|
Loading…
Reference in New Issue
Block a user