Skip to content

How to set condition in :class in element <a-menu-item/> #1009

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

Closed
1 task
cuongdevjs opened this issue Jul 23, 2019 · 3 comments
Closed
1 task

How to set condition in :class in element <a-menu-item/> #1009

cuongdevjs opened this issue Jul 23, 2019 · 3 comments
Labels

Comments

@cuongdevjs
Copy link

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

Version

1.3.10

Environment

3.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

When i set condition to render class in element . But it just only render 0 and 1?

What is expected?

How to set :class=['something'] in tag <a-menu-item/>

What is actually happening?

Just only render 0 and 1


<a-menu-item
key="1"
:class="[`menuWrapper`, !isCollapse ? 'expand' : 'collapse']"
/>
@tangjinzhou
Copy link
Member

You can use [].join(' '). We will fix it later.
https://codesandbox.io/s/vue-antd-template-7i6ce

@cuongdevjs
Copy link
Author

Many thanks

@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 Jul 24, 2020
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

2 participants