优化样式

master
rongweikang 2 years ago
parent 74b1901625
commit 8f043948c8

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

Loading…
Cancel
Save