[bugfix] Functional component inherit context (#2686)

This commit is contained in:
neverland
2019-02-05 12:04:34 +08:00
committed by GitHub
parent b896113ad6
commit ef38458a38
2 changed files with 15 additions and 7 deletions

View File

@@ -22,10 +22,12 @@ const prefix = (name, mods) => {
}
const ret = {};
mods &&
if (mods) {
Object.keys(mods).forEach(key => {
ret[name + MODS + key] = mods[key];
});
}
return ret;
};