lamp组件包的样式设置不生效

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


Post Reply
xww
Posts: 52

ray物料库中的照明矩形色盘和照明白色色盘中的容器样式设置不生效 containerStyle={{
borderRadius: '10px 10px 0 0',
}}

crisiron
Posts: 44

Re: lamp组件包的样式设置不生效

经测试,LampRectPickerColor 彩光 圆角设置正常,白光色盘存在问题,正在发布优化,稍后请更新查看;如果彩光还有有问题,可提供复现代码,我们这边排查

xww
Posts: 52

Re: lamp组件包的样式设置不生效

<LampRectPickerColor
hs={hs}
rectWidth={344}
rectHeight={200}
thumbRadius={12}
containerStyle={{borderRadius:'80px'}}
isShowColorTip
onTouchStart={handleTouchStart}
onTouchMove={handleTouchMove}
onTouchEnd={handleTouchEnd}
/>
<LampRectWhitePicker
rectWidth={300}
rectHeight={200}
thumbWidth={14}
temperature={temperature}
isShowColorTip
containerStyle={{
width: '300px',
height: '200px',
borderRadius: '80px',
}}
onTouchEnd={(_temp: number) => {
console.log('onTouchEnd', temp);
setTemperature(
temp);
}}
/>

xww
Posts: 52

Re: lamp组件包的样式设置不生效

LampRectPickerColor彩色矩形色盘的样式设置仍旧无效,LampRectWhitePicker白色矩形色盘设置样式之后,在滑动色盘,色盘样式会出现抖动现象,将LampRectPickerColor按照https://developer.tuya.com/material/library_oHEKLjj0/component?code=ComponentsTyLamp&subCode=LampRectPickerColor改成LampRectColor会报错模块“"@ray-js/components-ty-lamp"”没有导出的成员“LampRectColor”。

crisiron
Posts: 44

Re: lamp组件包的样式设置不生效

最新版本已经发布 请更新到最新版本查看

Post Reply