popup component

This commit is contained in:
cookfront
2017-02-15 21:03:07 +08:00
parent 8f474da314
commit 82bb27896e
15 changed files with 673 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
export default function(target, ...sources) {
for (let i = 1, j = sources.length; i < j; i++) {
let source = arguments[i] || {};
for (let prop in source) {
if (source.hasOwnProperty(prop)) {
let value = source[prop];
if (value !== undefined) {
target[prop] = value;
}
}
}
}
return target;
};