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导航菜单的递归生成菜单,hover时背景增加颜色 #3612

Closed
007GitHu opened this issue Jun 20, 2019 · 10 comments
Closed

Menu导航菜单的递归生成菜单,hover时背景增加颜色 #3612

007GitHu opened this issue Jun 20, 2019 · 10 comments
Assignees

Comments

@007GitHu
Copy link

What problem does this feature solve?

hover时的效果类似于树组件的hover效果,更能够突出用户鼠标当前位置,仅仅只是字体颜色变化,用户体验不是很友好

What does the proposed API look like?

类似于树组件中树节点title的hover效果,不提供API,内部实现

@zorro-bot
Copy link

zorro-bot bot commented Jun 20, 2019

Translation of this issue:

Recursively generate menu of menu navigation menu, add color to background when hover

What problem does this feature solve?

The effect of hover is similar to the hover effect of the tree component, which can highlight the current position of the user's mouse, just the font color changes, the user experience is not very friendly.

What does the proposed API look like?

Similar to the hover effect of the tree node title in the tree component, no API is provided, internal implementation

@vthinkxie
Copy link
Member

ng-zorro-antd 同步 ant design 设计规范,请去 https://github.com/ant-design/ant-design 发起issue,谢谢

@CK110
Copy link
Member

CK110 commented Jun 26, 2019

ng-zorro-antd 同步 ant design 设计规范,请去 https://github.com/ant-design/ant-design 发起issue,谢谢

Menu组件属性和ant design不一样啊,很多属性没有,是不需要,还是以后会同步antdesign?

@vthinkxie
Copy link
Member

@CK110 哪些属性没有?

@007GitHu
Copy link
Author

007GitHu commented Jun 26, 2019 via email

@vthinkxie
Copy link
Member

鼠标hover效果:背景颜色

------------------ 原始邮件 ------------------ 发件人: "vthinkxie"notifications@github.com; 发送时间: 2019年6月26日(星期三) 下午2:27 收件人: "NG-ZORRO/ng-zorro-antd"ng-zorro-antd@noreply.github.com; 抄送: "卿玲玲"1971722214@qq.com; "Author"author@noreply.github.com; 主题: Re: [NG-ZORRO/ng-zorro-antd] Menu导航菜单的递归生成菜单,hover时背景增加颜色 (#3612) @CK110 哪些属性没有? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hover 背景颜色一句css就可以搞定,为什么需要API提供?写在template里面也会导致和全主题无法统一配置

@007GitHu
Copy link
Author

007GitHu commented Jun 26, 2019 via email

@CK110
Copy link
Member

CK110 commented Jun 27, 2019

@CK110 哪些属性没有?

antd
image

zorro
image

@vthinkxie
Copy link
Member

@CK110 angular 本身是不需要keys进行选中操作的,在你想要选中的menu上直接加nzSelectable就可以了,其他的所有api在angular设计中都是冗余的

@CK110
Copy link
Member

CK110 commented Jun 28, 2019

@CK110 angular 本身是不需要keys进行选中操作的,在你想要选中的menu上直接加nzSelectable就可以了,其他的所有api在angular设计中都是冗余的

确实menu上直接加nzSelectable可以达到defaultselectkeys的操作,你说的不同点是angular和react本身机制的不同,还是就是react ant design中的属性设计就是冗余的??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants