optimize ts type

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

No files matched your search

-1
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];