低版本的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