[improvement] optimize listeners

This commit is contained in:
陈嘉涵
2019-05-05 17:46:55 +08:00
parent 70550a500f
commit 9104e2dc5a
11 changed files with 38 additions and 36 deletions

View File

@@ -28,7 +28,7 @@ function Loading(
const style: { [key: string]: string } = { color };
if (size) {
const iconSize = suffixPx(size);
const iconSize = suffixPx(size) as string;
style.width = iconSize;
style.height = iconSize;
}