-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Comments
Translation of this issue:Recursively generate menu of menu navigation menu, add color to background when hoverWhat 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 |
ng-zorro-antd 同步 ant design 设计规范,请去 https://github.com/ant-design/ant-design 发起issue,谢谢 |
Menu组件属性和ant design不一样啊,很多属性没有,是不需要,还是以后会同步antdesign? |
@CK110 哪些属性没有? |
鼠标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里面也会导致和全主题无法统一配置 |
不需要提供API,只是在内部实现而已,因为如果站着使用者的角度来讲,我增加了css,担心会对以后升级组件有影响
…------------------ 原始邮件 ------------------
发件人: "vthinkxie"<notifications@github.com>;
发送时间: 2019年6月26日(星期三) 下午2:32
收件人: "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)
鼠标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里面也会导致和全主题无法统一配置
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@CK110 angular 本身是不需要keys进行选中操作的,在你想要选中的menu上直接加nzSelectable就可以了,其他的所有api在angular设计中都是冗余的 |
确实menu上直接加nzSelectable可以达到defaultselectkeys的操作,你说的不同点是angular和react本身机制的不同,还是就是react ant design中的属性设计就是冗余的?? |
What problem does this feature solve?
hover时的效果类似于树组件的hover效果,更能够突出用户鼠标当前位置,仅仅只是字体颜色变化,用户体验不是很友好
What does the proposed API look like?
类似于树组件中树节点title的hover效果,不提供API,内部实现
The text was updated successfully, but these errors were encountered: