【Vue】iview全局引用报错 Unknown custom element

错误提示

【Vue】iview全局引用报错 Unknown custom element

main.js

import Vue from 'vue'

import App from './App.vue'

import iView from 'iview'

import 'iview/dist/styles/iview.css'

Vue.use(iView)

Vue.config.productionTip = false

new Vue({

render: h => h(App),

}).$mount('#app')

template

<template>

<div class="main">

<el-row type="flex" class="row-bg" justify="center">

<el-col :span="6">

<Card class="grid-content bg-purple">

</Card>

</el-col>

</el-row>

</div>

</template>

请问这是为什么呢?

回答

el-colelement的啊,你引错依赖组件了吧。

以上是 【Vue】iview全局引用报错 Unknown custom element 的全部内容, 来源链接: utcz.com/a/78457.html

回到顶部