|
|
|
|
@ -25,7 +25,7 @@ function Index({ series, full }: Props) {
|
|
|
|
|
top: "32rpx",
|
|
|
|
|
left: "48rpx",
|
|
|
|
|
right: "86rpx",
|
|
|
|
|
bottom: "68rpx",
|
|
|
|
|
bottom: "38rpx",
|
|
|
|
|
},
|
|
|
|
|
// legend: {
|
|
|
|
|
// itemStyle: {
|
|
|
|
|
@ -162,8 +162,6 @@ function Index({ series, full }: Props) {
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
const cancelFull = useCallback((res) => {
|
|
|
|
|
console.log(1111);
|
|
|
|
|
|
|
|
|
|
full()
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
@ -182,16 +180,17 @@ function Index({ series, full }: Props) {
|
|
|
|
|
<Block>
|
|
|
|
|
<View id='box' className='box_full'>
|
|
|
|
|
<Echarts
|
|
|
|
|
|
|
|
|
|
force-use-old-canvas='false'
|
|
|
|
|
echarts={echarts}
|
|
|
|
|
option={options}
|
|
|
|
|
ref={echartsRef}
|
|
|
|
|
// isPage={false}
|
|
|
|
|
// style自定义设置echarts宽高
|
|
|
|
|
style={{ width: "620rpx", height: "80vh", zIndex: 1 }}
|
|
|
|
|
style={{ width: "620rpx", height: "75vh", zIndex: 1 }}
|
|
|
|
|
/>
|
|
|
|
|
<View className='box_background1'>
|
|
|
|
|
<Image className='part' src={require("@/img/part-scran.png")} onClick={cancelFull}></Image>
|
|
|
|
|
<Image className='part' src={require("@/img/part-scran.png")} onClick={cancelFull}></Image>
|
|
|
|
|
<View className='power'>实时能量</View>
|
|
|
|
|
{level.map((item) => (
|
|
|
|
|
<View className='line' key={item}>
|
|
|
|
|
|