mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
sliding up title dialog
This commit is contained in:
parent
ea688c363b
commit
3a874583bc
5 changed files with 92 additions and 27 deletions
9
src/utils/dom.ts
Normal file
9
src/utils/dom.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export const getStyle = (oElm: any, strCssRule: string): string => {
|
||||
if(document.defaultView && document.defaultView.getComputedStyle){
|
||||
return document.defaultView.getComputedStyle(oElm, '').getPropertyValue(strCssRule);
|
||||
} else if(oElm.currentStyle){
|
||||
return oElm.currentStyle[strCssRule.replace(/\-(\w)/g, (strMatch, p1) => p1.toUpperCase())];
|
||||
}
|
||||
|
||||
return '';
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue