Skip to content

Commit

Permalink
fix: popupClassName typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Aug 30, 2021
1 parent b798c46 commit e76e047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SiderMenu/BaseMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class MenuUtil {
<MenuComponent
title={defaultTitle}
key={item.path}
popupClassName={hasGroup ? null : `${prefixCls}-menu-popup`}
popupClassName={hasGroup ? undefined : `${prefixCls}-menu-popup`}
icon={hasGroup ? null : <LazyIcon icon={item.meta?.icon} />}
>
{this.getNavMenuItems(item.children)}
Expand Down
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ export default defineConfig({
name: 'ProLayout',
},
rollupOptions: {
external: ['vue', '@ant-design/icons-vue', 'ant-design-vue', 'antd', 'moment'],
external: ['vue', 'vue-router', '@ant-design/icons-vue', 'ant-design-vue', 'antd', 'moment'],
output: {
exports: "named",
exports: 'named',
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: 'Vue',
'vue-router': 'VueRouter',
moment: 'moment',
'ant-design-vue': 'antd',
'@ant-design/icons-vue': 'iconsVue',
Expand Down

0 comments on commit e76e047

Please sign in to comment.