arco-design-vue
arco-design-vue copied to clipboard
fix(color-picker): fix shaking issue when selecting color with v-model
Types of changes
- [ ] New feature
- [x] Bug fix
- [ ] Enhancement
- [ ] Component style change
- [ ] Typescript definition change
- [ ] Documentation change
- [ ] Coding style change
- [ ] Refactoring
- [ ] Test cases
- [ ] Continuous integration
- [ ] Breaking change
- [ ] Others
Background and context
选择颜色时出现的抖动问题
色值转换 hsv 时会出现小的误差导致抖动。开启 v-model外部颜色变化重新 setHsv 出现抖动。
Solution
How is the change tested?
Changelog
| Component | Changelog(CN) | Changelog(EN) | Related issues |
|---|---|---|---|
| color-picker | 修复在 v-model 下选择颜色时出现的抖动问题 | fix shaking issue when selecting color with v-model | Closed #3174 |
Checklist:
- [x] Test suite passes (
npm run test) - [x] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
- [x] Changes are submitted to the appropriate branch (e.g. features should be submitted to
featurebranch and others should be submitted tomainbranch)