From 54ec40f8f7dd28eb06edf498abea18689b37ab84 Mon Sep 17 00:00:00 2001 From: alexnatalia Date: Wed, 9 Dec 2020 22:59:32 +0300 Subject: [PATCH] Fixed SIcon size with number type. --- src/components/Icon/SIcon.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Icon/SIcon.vue b/src/components/Icon/SIcon.vue index da82e129..89244937 100644 --- a/src/components/Icon/SIcon.vue +++ b/src/components/Icon/SIcon.vue @@ -42,7 +42,7 @@ export default class SIcon extends Vue { get computedStyles () { const styles = {} as any if (this.size) { - styles.fontSize = typeof this.size === 'number' ? `${this.size}px` : this.size + styles.fontSize = !isNaN(+this.size) ? `${this.size}px` : this.size } return styles }