sliding up title dialog

This commit is contained in:
muerwre 2019-03-28 14:12:00 +07:00
parent ea688c363b
commit 3a874583bc
5 changed files with 92 additions and 27 deletions

9
src/utils/dom.ts Normal file
View 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 '';
};