diff --git a/packages/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js b/packages/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js index 5985bc6af062721c78b2f9e9fbceddd604d8e6f2..425a03e67dbf76325da0f28775b092a4d115266a 100644 --- a/packages/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js +++ b/packages/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js @@ -23,7 +23,15 @@ export default function normalizeComponent ( // fixed by xxxxxx auto components if (components) { - options.components = Object.assign(components, options.components || {}) + if (!options.components) { + options.components = {} + } + var hasOwn = Object.prototype.hasOwnProperty + for (var name in components) { + if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) { + options.components[name] = components[name] + } + } } // fixed by xxxxxx renderjs if (renderjs) {