add: UserInfo.vue

master
liuyx 2 years ago
parent ffbf09cef7
commit 6e1149ac59

@ -6,7 +6,10 @@
<el-col :span="17"> <el-col :span="17">
<router-view></router-view> <router-view></router-view>
</el-col> </el-col>
<el-col :span="7"><div class="grid-content ep-bg-purple" /></el-col> <el-col :span="7"
><div class="grid-content ep-bg-purple" />
<UserInfo />
</el-col>
</el-row> </el-row>
</div> </div>
</main> </main>
@ -17,6 +20,7 @@
<script setup> <script setup>
import Header from '@/components/Header.vue' import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue' import Footer from '@/components/Footer.vue'
import UserInfo from './components/UserInfo.vue'
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

@ -0,0 +1,19 @@
<template>
<el-card shadow="hover">
<div class="avatar">
<el-avatar :size="100" :src="avatar" />
</div>
</el-card>
</template>
<script setup>
import { ref } from 'vue'
const avatar = ref('https://liuyxcc.github.io/img/avatar.png')
</script>
<style lang="scss" scoped>
.el-card {
margin: 20px 0;
}
</style>
Loading…
Cancel
Save