Add examples and refactor code

Add examples and refactor code
This commit is contained in:
Horcrux
2016-01-21 23:44:38 +08:00
parent 89b52fd4a2
commit a482948b83
61 changed files with 3143 additions and 105 deletions
+2 -6
View File
@@ -1,8 +1,4 @@
let noneFill = ['transparent', 'none'];
import rgba from './rgba';
export default function (props) {
let fill = props.fill;
if (noneFill.indexOf('fill') !== -1) {
return null;
}
return fill;
return rgba(props.fill, props.fillOpacity);
}