提交 cc58ab07 编写于 作者: W wyhslx

Auto Commit

上级 7a093d7e
run = "npm i && npm run dev" run = "npm i && npm run dev"
language = "node"
[deployment] [deployment]
build = "npm i && npm run build" build = "npm i && npm run build"
...@@ -8,3 +9,6 @@ run = "npm run preview" ...@@ -8,3 +9,6 @@ run = "npm run preview"
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}" PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config" XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
<script setup>
import HelloWorld from './components/HelloWorld.vue'
import TheWelcome from './components/TheWelcome.vue'
</script>
<template> <template>
<header> <header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" /> <nav>
<ul>
<div class="wrapper"> <li v-for="navItem in navList" :key="navItem.id">
<HelloWorld msg="You did it!" /> <a :href="navItem.url">{{ navItem.name }}</a>
</div> </li>
</ul>
</nav>
</header> </header>
<main>
<TheWelcome />
</main>
</template> </template>
<style scoped> <script>
export default {
data() {
return {
navList: [
{ id: 1, name: '预订中心', url: '#' },
{ id: 2, name: 'VIP中心', url: '#' },
{ id: 3, name: '订单中心', url: '#' },
{ id: 4, name: '客户中心', url: '#' },
{ id: 5, name: '产品中心', url: '#' },
{ id: 6, name: '财务中心', url: '#' },
{ id: 7, name: '报表统计', url: '#' },
{ id: 8, name: '系统设置', url: '#' },
{ id: 9, name: '会议中心', url: '#' },
{ id: 10, name: '开发者中心', url: '#' },
],
};
},
};
</script>
<style>
header { header {
line-height: 1.5; background-color: rgb(9, 36, 109);
padding: 5px;
} }
.logo { nav ul {
display: block; list-style: none;
margin: 0 auto 2rem; margin: 0;
padding: 0;
display: flex;
} }
@media (min-width: 1024px) { nav li {
header { margin-right: 15px;
display: flex; }
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo { nav li:last-child {
margin: 0 2rem 0 0; margin-right: 0;
} }
nav a {
color: #fff;
text-decoration: none;
font-size: 13px;
font-weight: bold;
padding: 10px;
transition: background-color 0.2s ease-in-out;
}
header .wrapper { nav a:hover {
display: flex; background-color: #666;
place-items: flex-start;
flex-wrap: wrap;
}
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册