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

Bug:ColorPicker组件在选取颜色的时候,光标移动到左边界或下边界的时候,色相会变成红色 #48

Open
zzcypc opened this issue Jan 14, 2019 · 2 comments
Assignees

Comments

@zzcypc
Copy link

zzcypc commented Jan 14, 2019

ColorPicker组件在选取颜色的时候,光标移动到左边界或下边界的时候,色相会变成红色

@AngusFu
Copy link
Contributor

AngusFu commented Jan 15, 2019

请先使用 vue-color。功能更强大。bug 年后有空修。

@AngusFu
Copy link
Contributor

AngusFu commented Jan 15, 2019

确认是 bug,问题出在 watch color。

组件 watch color 做出修改(digestProp)的时候,应该判断一下 hue 是否为 0,如果是 0,则保持之前的 hue 值不变(因为 hue 为 0 只可能是因为走到了黑白边界,这时候 hue 是否为 0 根本无所谓)。

@AngusFu AngusFu self-assigned this Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants