IDE环境配置
Code: Select all
<RayCircleProgress
value={value}
// 当这个打开时且startDegree !== 90,就会出现以下报错
// trackColor="#00a7cc"
colorList={[
{ offset: 0, color: '#ccc' },
{ offset: 1, color: '#ccc' },
]}
thumbRadius={24}
thumbOffset={16}
thumbBorderWidth={0}
thumbColor='#00a7cc'
ringRadius={120}
innerRingRadius={116}
// 将这个数字换成 90, trackColor 打开不会产生报错
startDegree={135}
offsetDegree={270}
touchCircleStrokeStyle="rgba(0, 0, 0, 0.4)"
onTouchStart={handleTouchStart}
onTouchMove={handleMove}
onTouchEnd={handleEnd}
/>
这个是报错信息