Tuya MiniApp Tools version information: 0.5.15
The versions of @ray-js/ray: 1.4.45, @ray-js/panel-sdk: 1.10.0
Mobile device information: Andriod
Related code:
Code: Select all
import React from "react";
import Slider from "@ray-js/components-ty-slider";
const TempSet = () => {
const handleChange = (...args) => console.log(args);
return (
<Slider
min={1}
max={100}
isShowTicks={false}
maxTrackHeight="20rpx"
maxTrackRadius="14rpx"
minTrackHeight="20rpx"
minTrackColor="linear-gradient(to left, #87abf2 11.6%, #4b7ee2)"
maxTrackColor="#f4faff"
thumbHeight="56rpx"
thumbWidth="77rpx"
thumbRadius="48rpx"
thumbBoxShadowStyle="14rpx 14rpx 30rpx rgba(158, 184, 210, 0.45)"
thumbColor="linear-gradient(225deg, #FDFEFF 13%, #D5E3F3 96%)"
onChange={handleChange}
/>
);
};
Log information:
Problem description (reproduction steps):
- Install the package
@ray-js/components-ty-slider@1.10.7
. - Create a component using the code from above and start the project.
- Install the package
expected outcome:
Circle Slider to appear on the Pageactual results:
The App doesn't start and has error logs