arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

fix(color-picker): fix shaking issue when selecting color with v-model

Open oljc opened this issue 1 year ago • 1 comments

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 feature branch and others should be submitted to main branch)

Other information

oljc avatar Jun 11 '24 10:06 oljc

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Jun 11 '24 10:06 codesandbox[bot]