forked from github/dataease
refactor(图表): 地图加载完成标识
This commit is contained in:
parent
dd39088396
commit
d8e9d088ff
@ -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