滑动条不显示,这个是yarn.lock文件和package.json文件,代码是组件库原封不动的代码。
滑动条组件不显示滑动条
Re: 滑动条组件不显示滑动条
Code: Select all
import React, { useState } from 'react';
import OpacitySlider from '@ray-js/lamp-style-slider';
export function Home() {
const [value, setValue] = useState(1000);
const handleMove = v => {
// console.log('move====', v);
};
return (
<OpacitySlider
style={{
paddingLeft: 16,
}}
label="色温"
valueStyle={{ color: 'blue' }}
disable={false}
value={value}
onTouchMove={handleMove}
trackBackgroundColor="linear-gradient(270deg, #CDECFE 1.22%, #FFFFFF 45.36%, #FFFFFF 53.27%, #FFCA5C 98.32%)"
/>
);
}
export default Home;
"@ray-js/components-ty-lamp": "1.10.3",
我试了一下是正常的
Re: 滑动条组件不显示滑动条
提供一下IDE版本号
Re: 滑动条组件不显示滑动条
0.5.12