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
複製程式碼