fix(menu): calc 0 不能省略单位 (#124)

This commit is contained in:
wendell0316 2020-12-11 11:11:03 +08:00 committed by GitHub
parent 8f9eff78aa
commit d023fb1374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ export default defineComponent({
return {
height: isHorizontal
? `calc(100% + 1px)`
: `calc(100% - ${props.showLogo ? '48px' : '0'})`,
: `calc(100% - ${props.showLogo ? '48px' : '0px'})`,
overflowY: isHorizontal ? 'hidden' : 'auto',
};
}