VUE 使用 mint ui 在组件中引入Cell提示错误
在组件中想使用Cell
Unknown custom element: <mt-cell> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
报这个错误
我在组件中
import {Cell} from 'mint-ui';
这样引入的
官方文档中
**import { Cell } from 'mint-ui';
Vue.component(Cell.name, Cell);**
其中Vue.component(Cell.name, Cell);这行我在组件中应当怎么处理?
放到当前组件中
components: {
Cell.name,
Cell
}
报错
去掉任何一个还是报错。
请大家给看看,怎么回事呢