Skip to content

There is less incompatible calc writing in the menu style #4466

@wangyu-2024

Description

@wangyu-2024
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.2

Environment

vue:3.1 webpack:4 less:2.7.3 less-loader:4.1.0

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/menu/style/index.less

Steps to reproduce

基于less编译的样式会将max-height: calc(100vh - 100px);改为max-height: calc(0vh); 导致子菜单无法正常显示

What is expected?

calc(100vh - 100px) 改为 ~'calc(100vh - 100px)'

What is actually happening?

兼容less版本 修复子菜单无法正常显示的问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions