低版本的Element会有更多的Bug或者未完全引入所有组件,比如[email protected]
里面需要手动引入Link
组件,如果没有手动引入Link
组件,在书写<el-link>
的时候,不但不会跳转,还会报异常
vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
所以最好要引用最新版的Element,如2.13.2
,最新版里面基本已自动引入所有组件
https://github.com/ElemeFE/element/releases