Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
liulei92 opened this issue Dec 15, 2021 · 1 comment
Labels

Comments

@liulei92
Copy link

  • 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,

@github-actions github-actions bot changed the title Menu组件inheritAttrs:false,但未提供相关的class的prop,用于自定义样式 Menu component inheritAttrs: false, but the prop of the related class is not provided for custom style Dec 15, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant