feat: add tests && fix bugs

This commit is contained in:
jiangruowei
2017-04-06 15:11:29 +08:00
parent a85c3c2695
commit a32142c723
9 changed files with 216 additions and 46 deletions

View File

@@ -14,14 +14,14 @@ export default {
type: {
type: String,
default: 'gradient-circle',
validate(value) {
validator(value) {
return VALID_TYPES.indexOf(value) > -1;
}
},
color: {
type: String,
default: 'black',
validate(value) {
validator(value) {
return VALID_COLORS.indexOf(value) > -1;
}
}