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
代码如下,想要自定义Menu组件下的.n-menu .n-menu-item::before样式,但是没有效果,试过去定义.n-menu之类的也没有生效
<template> <NMenu class="custom-menu" :options="menus" :inverted="inverted" :mode="mode" :collapsed="collapsed" :collapsed-width="64" :collapsed-icon-size="14" :expanded-keys="openKeys" :value="getSelectedKeys" @update:value="clickMenuItem" @update:expanded-keys="menuExpanded" /> </template>
<style lang="less" scoped> :deep(.n-menu .n-menu-item::before) { left: 12px !important; right: 12px !important; } </style>
The text was updated successfully, but these errors were encountered:
可以了解一下deep用法 ::v-deep(.n-menu-item::before) 或者 .newMenu ::v-deep(.n-menu-item::before) 都是可行的
Sorry, something went wrong.
No branches or pull requests
代码如下,想要自定义Menu组件下的.n-menu .n-menu-item::before样式,但是没有效果,试过去定义.n-menu之类的也没有生效
The text was updated successfully, but these errors were encountered: