forked from github/dataease
Merge pull request #10540 from dataease/pr@dev-v2@refactor_map_load
refactor(图表): 地图加载完成标识
This commit is contained in:
commit
be1d9f3915
@ -1081,3 +1081,17 @@ function setStyle(elements: HTMLElement[], styleProp: string, 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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user