mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
fix: change utils && mixins alias
This commit is contained in:
15
packages/utils/merge.js
Normal file
15
packages/utils/merge.js
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user