[improvement] rename suffixPx to addUnit

This commit is contained in:
陈嘉涵
2019-07-08 17:42:24 +08:00
parent 1f03a703f5
commit 4b829ea7dd
15 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { createNamespace, suffixPx } from '../utils';
import { createNamespace, addUnit } from '../utils';
import { inherit } from '../utils/functional';
import Info from '../info';
import Image from '../image';
@@ -39,7 +39,7 @@ function Icon(
class={[props.classPrefix, imageIcon ? '' : `${props.classPrefix}-${props.name}`]}
style={{
color: props.color,
fontSize: suffixPx(props.size)
fontSize: addUnit(props.size)
}}
{...inherit(ctx, true)}
>