报错
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
![Ant Design Pro在使用某些Ant Design Vue的组件时,报错未注册 Ant Design Pro在使用某些Ant Design Vue的组件时,报错未注册](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzcxNy8zMjI3YjU0ZDI4NjExMzY1ZTg3ZWQ2MmQwNDJlZWEyNS5wbmc=)
简单测试,发现树型选择控件(TreeSelect)、穿梭框(Transfer)是没有预加的。
解决
Ant Design Pro为了减少编译支持库包大小,是按需加入的。
配置文件为components_use.js。
![Ant Design Pro在使用某些Ant Design Vue的组件时,报错未注册 Ant Design Pro在使用某些Ant Design Vue的组件时,报错未注册](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzM0Lzg0ZTllOTBmYTRkYTA0ZmUxYjA5ZTM3OWYyNzY2MzNhLnBuZw==)