fix: change utils && mixins alias

This commit is contained in:
陈嘉涵
2017-08-15 17:27:02 +08:00
parent 711352ae12
commit 72d590d890
31 changed files with 76 additions and 92 deletions

15
packages/utils/merge.js Normal file
View File

@@ -0,0 +1,15 @@
export default function(target, ...sources) {
for (let i = 0; i < sources.length; i++) {
const source = sources[i] || {};
for (const prop in source) {
if (source.hasOwnProperty(prop)) {
const value = source[prop];
if (value !== undefined) {
target[prop] = value;
}
}
}
}
return target;
};