vue-demo/src/views/Home.vue

74 lines
1.9 KiB
Vue
Raw Normal View History

2021-02-26 16:06:19 +08:00
<template>
<!-- App.vue -->
<v-app id="inspire">
2021-03-03 16:41:18 +08:00
<!-- 顶部菜单表 -->
<AppBar></AppBar>
<v-main class="grey lighten-3">
<v-container>
2021-03-03 16:41:18 +08:00
<v-row class="flex-nowrap" justify="center">
<v-sheet rounded="lg" class="left-menu-sheet ma-1">
<!-- 左菜单列表 -->
<MenuContentList></MenuContentList>
</v-sheet>
2021-03-03 16:41:18 +08:00
<v-sheet class="ma-1" min-height="100vh" min-width="60vw" rounded="lg">
<v-col>
<!-- 轮播 -->
2021-03-02 18:27:36 +08:00
<Carousel></Carousel>
2021-03-03 16:41:18 +08:00
</v-col>
<v-col>
<!-- 显示商品内容列表 -->
2021-03-02 18:27:36 +08:00
<v-row justify="start">
2021-03-03 16:41:18 +08:00
<v-card width="100" height="100" class="ma-1">
<v-img class="ma-1" src="http://i.serengeseba.com/uploads/i_0_3792700707x1517265037_26.jpg"></v-img>
<v-card-text>
</v-card-text>
2021-03-02 18:27:36 +08:00
</v-card>
2021-03-03 16:41:18 +08:00
<v-card width="100" height="100" class="ma-1">
<v-img class="ma-1" src="http://i.serengeseba.com/uploads/i_0_3792700707x1517265037_26.jpg"></v-img>
2021-03-02 18:27:36 +08:00
</v-card>
</v-row>
2021-03-03 16:41:18 +08:00
</v-col>
</v-sheet>
<v-sheet rounded="lg" class="left-menu-sheet ma-1" >
<!-- 左菜单列表 -->
<MenuContentList></MenuContentList>
</v-sheet>
</v-row>
</v-container>
</v-main>
</v-app>
2021-02-26 16:06:19 +08:00
</template>
<script>
import Carousel from "../components/Carousel.vue";
import AppBar from "../components/AppBar";
2021-03-03 16:41:18 +08:00
import MenuContentList from "../components/MenuContentList";
2021-02-26 16:06:19 +08:00
export default {
name: "Home",
data: () => ({
links: ["Dashboard", "Messages", "Profile", "Updates"],
}),
2021-02-26 16:06:19 +08:00
components: {
Carousel,
AppBar,
2021-03-03 16:41:18 +08:00
MenuContentList,
},
};
2021-02-26 16:06:19 +08:00
</script>
2021-03-03 16:41:18 +08:00
<style>
.left-menu-sheet {
width: 15%;
}
</style>