Element插件中Select组件的报错

559 阅读1分钟

import { Selce} from 'element-ui

在main.js中引入Select

结果就报错:

 Unknown custom element: <el-option> - did you register the component correctly? For recursive components, make sure to provide the "name" option. 

查了很久才发现是,忘了引入Select的子组件el-option

import { Option} from 'element-ui

然后就可以,还是记录一下吧。