修改测试问题

This commit is contained in:
guanj
2026-06-30 08:38:05 +08:00
parent 490b52b525
commit 536f22584d
103 changed files with 3220 additions and 2394 deletions

View File

@@ -113,14 +113,14 @@ const initChart = () => {
bottom: '20px',
end: 100,
filterMode: 'filter'
filterMode: 'none'
},
{
start: 0,
height: 13,
bottom: '20px',
end: 100,
filterMode: 'filter'
filterMode: 'none'
}
// {
// show: true,
@@ -133,7 +133,7 @@ const initChart = () => {
],
color: props.options?.color || color,
series: props.options?.series,
...props.options?.options
...setStep(props.options?.options)
}
// console.log(options.series,"获取x轴");
handlerBar(options)
@@ -251,6 +251,21 @@ const handlerXAxis = () => {
}
}
}
// const setStep = (name: string) => {
// const isShanBian = name.includes('闪变')
// return isShanBian ? { step: 'end' as const } : { }
// }
const setStep = (options: any) => {
if(options?.series){
options.series.forEach((item: any) => {
if(item.type === 'line' && item.name.includes('闪变')){
item.step = 'end'
}
})
}
return options
}
let throttle: ReturnType<typeof setTimeout>
// 动态计算table高度