Commit d023fb13742cc1f5cc1585b82f1a7b3c576ee66c
Committed by
GitHub
1 parent
8f9eff78
fix(menu): calc 0 不能省略单位 (#124)
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Menu/src/BasicMenu.tsx
@@ -104,7 +104,7 @@ export default defineComponent({ | @@ -104,7 +104,7 @@ export default defineComponent({ | ||
104 | return { | 104 | return { |
105 | height: isHorizontal | 105 | height: isHorizontal |
106 | ? `calc(100% + 1px)` | 106 | ? `calc(100% + 1px)` |
107 | - : `calc(100% - ${props.showLogo ? '48px' : '0'})`, | 107 | + : `calc(100% - ${props.showLogo ? '48px' : '0px'})`, |
108 | overflowY: isHorizontal ? 'hidden' : 'auto', | 108 | overflowY: isHorizontal ? 'hidden' : 'auto', |
109 | }; | 109 | }; |
110 | } | 110 | } |