We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
renderIcon
The renderIcon function of the custom menu cannot control whether icons are used.
Consider not enabling icons when a function returns null or false.
null
false
const renderMenuIcon = option => { if (!option.icon) return null return h(NIcon, null, { default: option.icon }) }
The text was updated successfully, but these errors were encountered:
feat(menu): don't show placeholder when renderIcon return a falsy val…
153ecc9
…ue (#724) * feat(NMenu): enhanced renderIcon close #722 * feat: render-icon enhanced
Successfully merging a pull request may close this issue.
The renderIcon function of the custom menu cannot control whether icons are used.
This function solves the problem (这个功能解决的问题)
Consider not enabling icons when a function returns
null
orfalse
.Expected API (期望的 API)
The text was updated successfully, but these errors were encountered: