Merge pull request #7758 from ulleo/dev

fix: 区间条形图调整大小后数据条消失
This commit is contained in:
ulleo 2024-01-23 11:10:27 +08:00 committed by GitHub
commit 4e4fe54eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,6 +296,11 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) {
// config
const slider = getSlider(chart)
const analyse = getAnalyse(chart)
data.forEach(d => {
d.tempId = (Math.random() * 10000000).toString()
})
// options
const options = {
theme: theme,
@ -364,7 +369,9 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) {
type: 'time',
min: minTime,
max: maxTime,
mask: 'YYYY-MM-DD HH:mm:ss',
mask: 'YYYY-MM-DD HH:mm:ss'
},
tempId: {
key: true
}
}
@ -373,7 +380,9 @@ export function timeRangeBarOptionAntV(plot, container, chart, action) {
values: {
min: minNumber,
max: maxNumber,
mask: 'YYYY-MM-DD HH:mm:ss',
mask: 'YYYY-MM-DD HH:mm:ss'
},
tempId: {
key: true
}
}