vueComponent / pro-components

easy use `Ant Design Vue` layout
MIT License
535 stars 214 forks source link

[BUG] menuItemRender 不能正常使用 #200

Closed ymy0622 closed 2 years ago

ymy0622 commented 2 years ago

🐛 Bug 描述 Bug description

vuecli+pnpm创建的vue3项目(vuecli+yarn的项目经测试,正常)

使用menuItemRender时会报错,layout为仓库中examples的CustomLayout:

  1. [Vue warn]: injection "Symbol(menuContextKey)" not found.
  2. TypeError: Cannot read properties of undefined (reading 'prefixCls')

🚑 其他信息 Other information

"@ant-design-vue/pro-layout": "^3.1.13", "ant-design-vue": "^3.0.0-beta.13",

image image

ymy0622 commented 2 years ago

复现仓库:https://github.com/TomatoYakult/pro-layout-issues

sendya commented 2 years ago

"ant-design-vue" 用 2x 谢谢。暂不支持 3x