Merge pull request #10540 from dataease/pr@dev-v2@refactor_map_load

refactor(图表): 地图加载完成标识
This commit is contained in:
wisonic-s 2024-06-26 19:08:49 +08:00 committed by GitHub
commit be1d9f3915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1081,3 +1081,17 @@ function setStyle(elements: HTMLElement[], styleProp: string, value) {
e.style[styleProp] = value e.style[styleProp] = value
}) })
} }
export function mapRendering(dom: HTMLElement | string) {
if (typeof dom === 'string') {
dom = document.getElementById(dom)
}
dom.classList.add('de-map-rendering')
}
export function mapRendered(dom: HTMLElement | string) {
if (typeof dom === 'string') {
dom = document.getElementById(dom)
}
dom.classList.add('de-map-rendered')
}