Skip to content

Menu component inheritAttrs: false, but the prop of the related class is not provided for custom style #5038

Closed
@liulei92

Description

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

Version

3.0.0-alpha.15

Environment

3.0.0-alpha.15

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/menu/src/Menu.tsx

Steps to reproduce

var _default2 = (0, _vue.defineComponent)({
name: 'AMenu',
inheritAttrs: false,
props: menuProps,
emits: ['update:openKeys', 'openChange', 'select', 'deselect', 'update:selectedKeys', 'click', 'update:activeKey'],
slots: ['expandIcon', 'overflowedIndicator'],
...

What is expected?

方案1: 恢复inheritAttrs为true
方案2: 增加prop(wrap-class) 自定义样式

What is actually happening?

inheritAttrs: false,

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