optimize ts type

This commit is contained in:
xiaoma
2021-09-24 09:08:23 +08:00
parent 7929a74d20
commit ef4912636e
13 changed files with 490 additions and 373 deletions

View File

@@ -1,6 +1,5 @@
//获取相关CSS属性
const getCss = function (o, key) {
// @ts-ignore
return o.currentStyle
? o.currentStyle[key]
: document.defaultView?.getComputedStyle(o, null)[key];