Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/#177'
Browse files Browse the repository at this point in the history
  • Loading branch information
linx4200 committed Mar 5, 2020
2 parents 63ce390 + 501e3e5 commit f914997
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ let defaultProps = {
a: 0.9
},
rgba: {
r: 25,
g: 77,
b: 51,
r: 159,
g: 96,
b: 43,
a: 0.9
},
a: 0.9
Expand Down
6 changes: 6 additions & 0 deletions src/mixin/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ function _colorChange (data, oldHue) {
color = tinycolor(data.hsl)
} else if (data && data.hex && data.hex.length > 0) {
color = tinycolor(data.hex)
} else if (data && data.hsv) {
color = tinycolor(data.hsv)
} else if (data && data.rgba) {
color = tinycolor(data.rgba)
} else if (data && data.rgb) {
color = tinycolor(data.rgb)
} else {
color = tinycolor(data)
}
Expand Down

0 comments on commit f914997

Please sign in to comment.