GithubHelp home page GithubHelp logo

Comments (5)

github-actions avatar github-actions commented on May 27, 2024

👋 @ananzhusen,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

from tdesign-vue-next.

XBIsland avatar XBIsland commented on May 27, 2024

没理解到是什么问题,如果可以补充下截图或者描述。

from tdesign-vue-next.

ananzhusen avatar ananzhusen commented on May 27, 2024

image

可以直接操作一下就能明白

from tdesign-vue-next.

XBIsland avatar XBIsland commented on May 27, 2024

看起来这个问题是由 #4005 引起的,这个 pr 修复的是 #4002

  1. 每次触发 emitColorChange 函数都会更改 innerValue 的值,从而触发了 new Color()
    image
  2. Color 类初始化时调用的 update 函数会重置 selectedId 为第一个 point,导致无法拖动渐变功能的第二个 point
    image

#4002 这个 issue 是因为在修改 ColorPicker 组件 v-model 值时触发 Color 类中 update 函数,函数将 input 值赋值给 originColor,导致后续进行相同赋值时会被拦截,无法触发 update 函数后续更新逻辑。

image

我看了源码上下文之后没有发现这段函数的作用,我可以尝试提个 pr 修复 #4002#4015

from tdesign-vue-next.

uyarn avatar uyarn commented on May 27, 2024

fixed in 1.9.1 thanks for @XBIsland

from tdesign-vue-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.