Explorar o código

Revert "fix(rating): size props working error when set number #356 (#358)" (#434)

This reverts commit a6ccf0ca7b831111e5e72be8192fb009627b79b2.
tank0317 %!s(int64=3) %!d(string=hai) anos
pai
achega
e19b80c887
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      packages/semi-ui/rating/item.tsx

+ 1 - 4
packages/semi-ui/rating/item.tsx

@@ -88,10 +88,7 @@ export default class Item extends PureComponent<RatingItemProps> {
             height: size,
             fontSize: size
         } : {};
-        
-        // when set custom size, no need a builtin style for icon, so here wo set iconSize a empty value.
-        const iconSize = isCustomSize ? 'empty-value' : (size === 'small' ? 'default' : 'extra-large');
-        // @ts-ignore 
+        const iconSize = size === 'small' ? 'default' : 'extra-large';
         const content = character ? character : <IconStar size={iconSize} />;
         return (
             <li className={starCls} style={{ ...sizeStyle }}>