"@ray-js/components-ty-lamp": "1.10.12",
色盘有个bug,拖动之后记录onTouchEnd里边的HS,再通过其他方式setHS(),当设置的值是拖动的值的时候色盘不会变
物料-组件库ComponentsTyLamp
- 
				13871602308
- Posts: 18
物料-组件库ComponentsTyLamp
Tags:
- 
				13871602308
- Posts: 18
Re: 物料-组件库ComponentsTyLamp
Code: Select all
    <LampRectPickerColor
      hs={{ h: hsvValue.h, s: hsvValue.s }}
      rectWidth={viewWidth - 40 * 2}
      rectHeight={200}
      thumbRadius={12}
      borderRadiusStyle={'30rpx'}
      onTouchEnd={()=>{
         setHsvValue({ h: evt.h, s: evt.s, v: brightnessValue });
      }}
    />//收藏的颜色块
  const renderFavoriteColor = () => {
    return favoriteColorList.map((item, index) => {
      return (
        <View
          className={color ${index === activeFavoriteColorIndex ? 'active' : ''}}
          key={index}
          style={{ background: formatHSVValueToColorString(item) }}
          onClick={()=> {
            const activeColor = favoriteColorList[index];
            setHsvValue(activeColor);//格式为{h:120,s:1000,v:1000}
          }}
        ></View>
      );
    });
  };
添加附件的时候无法选中MP4,我只能口头复述一遍:LampRectPickerColor的小圆圈无法通过设置HS滑动到它自身最后的拖动位置上,比如 拖动LampRectPickerColor结束后得到hsvValue = {h:100,s:1000},然后点击收藏的颜色块设置LampRectPickerColor的HS,当hsvValue为{h:100,s:1000}的时候,LampRectPickerColor的滑块会变颜色但是位置不会变,hsvValue为其他值的时候滑块的滑动是正常的。
应该看的懂了吧 别再让我解释了 我在群里有发视频,还是看不懂的话去群里看看视频,这里发不上来
Re: 物料-组件库ComponentsTyLamp
感谢反馈,问题已修复,麻烦升级到最新版本 yarn add --registry=https://registry.npmjs.org/ @ray-js/components-ty-lamp@1.10.13-beta-1 验证下
