File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const Demo = () => {
2121          active  ? ( 
2222            < Hi  /> 
2323          )  : ( 
24-             < Image  src = "https://storage.360buyimg.com/imgtools/00e365dee3-8fe58f80-0952 -11f0-8d73-ab964e6901f9 .png"  /> 
24+             < Image  src = "https://storage.360buyimg.com/imgtools/cadd649d79-8de544e0-0a11 -11f0-9f55-9901c75f24a0 .png"  /> 
2525          ) 
2626        } 
2727        title = { ( active : boolean )  =>  ( active  ? '逛'  : '' ) } 
Original file line number Diff line number Diff line change 99  background $color-background-overlay ;
1010
1111  & -wrap  {
12-     width 100%  ;
1312    height $tabbar-height ;
1413    display flex ;
1514
2221    }
2322
2423    & -horizontal  {
24+       align-items center ;
2525      .nut-tabbar-item  {
2626        flex-direction row ;
2727        justify-content center ;
3333          margin 0  4px   0  6px  ;
3434          font-size 14px  ;
3535        }
36+         .nut-badge-sup  {
37+           & ::after  {
38+             border 0 ;
39+           }
40+         }
3641      }
3742    }
3843  }
Original file line number Diff line number Diff line change 66  align-items center ;
77  flex 1 ;
88  padding 6px   0  2px  ;
9-   text-align center ;
10-   text-decoration none ;
119  color $tabbar-inactive-color ;
1210  height 100%  ;
1311
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export const TabbarItem: FunctionComponent<Partial<TaroTabbarItemProps>> = (
103103  const  renderIconAndTitle  =  ( )  =>  { 
104104    return  ( 
105105      < > 
106-         < Badge  size = "normal"  { ...badgeProps } > 
106+         < Badge  size = "normal"  { ...badgeProps }   top = { 3 } > 
107107          { renderIcon ( ) } 
108108        </ Badge > 
109109        { renderTitleText ( ) } 
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export const TabbarItem: FunctionComponent<Partial<WebTabbarItemProps>> = (
9191  const  renderIconAndTitle  =  ( )  =>  { 
9292    return  ( 
9393      < > 
94-         < Badge  size = "normal"  { ...badgeProps } > 
94+         < Badge  size = "normal"  { ...badgeProps }   top = { 3 } > 
9595          { renderIcon ( ) } 
9696        </ Badge > 
9797        { renderTitleText ( ) } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments