refactor all components and isolated from ART dependency

This commit is contained in:
Horcrux
2016-04-20 00:52:59 +08:00
parent c8a04c3d28
commit d700ca5493
81 changed files with 2993 additions and 1437 deletions

View File

@@ -2,8 +2,8 @@ import Color from 'color';
let noneFill = ['transparent', 'none'];
export default function (color, opacity = 1) {
if (noneFill.indexOf(color) !== -1 || !color) {
return null;
return Color('#000');
} else {
return Color(color).alpha(+opacity).rgbaString();
return Color(color).alpha(+opacity);
}
}