Ray物料的聚合包中LampColorSlider

面板小程序开发相关产品技术讨论,包括面板小程序、智能小程序、React Native、Ray跨端框架、Panel SDK、微信小程序、小程序开发工具(IDE)及其他开发技术相关等话题


Post Reply
13871602308
Posts: 10

<LampColorSlider
trackStyle={{
height: '25px',
width: ${viewWidth - 40}px,
}}
thumbStyle={{ height: '29px', background: hueToRGBString(selectedHue) }}
value={selectedHue}
onTouchEnd={hueValue => {
console.log('slider选中的hue', hueValue);
setDefaultColorIndex(-1);

Code: Select all

        setSelectedHue(hueValue);

        if (opration === 2) {
          publishSameHueDP(hueValue);
        }
      }}
    ></LampColorSlider>

在点击slider的时候onTouchEnd很难触发


Tags:
crisiron
Posts: 47

Re: Ray物料的聚合包中LampColorSlider

麻烦更新到最新版本 ==> 1.7.6

Post Reply