Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document issue: wrong object structure for rgba format color #102

Closed
hjlld opened this issue Nov 27, 2017 · 3 comments
Closed

Document issue: wrong object structure for rgba format color #102

hjlld opened this issue Nov 27, 2017 · 3 comments
Assignees

Comments

@hjlld
Copy link

hjlld commented Nov 27, 2017

if you use rgba as the default color format, and pass it with v-model, you should use:

<vue-color v-model="color">
...
data(){
    return {
        color: {
            r: 1,
            g: 1,
            b: 1,
            a: 1,
        }
    }
}
...

What the document told you is wrong:

color:{
  rgba: {
    r: 25,
    g: 77,
    b: 51,
    a: 1
  },
}

Because tinycolor.toRgb() dosen't support this documented object format.

@hjlld
Copy link
Author

hjlld commented Jan 26, 2018

any news about this issue?

@linx4200 linx4200 self-assigned this Feb 2, 2018
@linx4200
Copy link
Collaborator

linx4200 commented Feb 2, 2018

We will fix the document in the next release, estimated in next week.
Thanks for your feedback.

@linx4200
Copy link
Collaborator

linx4200 commented Feb 6, 2018

Have updated document. Thanks!

@linx4200 linx4200 closed this as completed Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants