foot.vue
<template>
<div class="foot">
<img src="../assets/foot/foot.jpg" alt="">
</div>
</template>
<script>
export default {
name: 'lzqFoot',
data () {
return {
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.foot {
width: 100%;
background: #fff;
box-sizing: border-box;
display: flex;
}
.foot img{
width: 750px;
height: 755px;
}
</style>
index.js
import Vue from 'vue'
import Foot from './foot'
// 组件对象
const components = {
Foot
}
// 组件全局注册 ---s
Object
.keys(components)
.forEach(key => {
Vue.component(`Lzq${key}`, components[key])
})
// 组件全局注册 ---e