提交 650b4a90 编写于 作者: U u014071104

Thu May 23 10:44:00 CST 2024 inscode

上级 79c5bd79
<script setup> <script setup>
import HelloWorld from './components/HelloWorld.vue' import { reactive, ref } from 'vue';
import TheWelcome from './components/TheWelcome.vue' //圈数
let cycleindex=ref(0);
//当前位置
let itemIndex=ref(0);
//可选项
let items=ref([]);
for(let i=0;i <8;i++){
items.push({label:`元素${i}`,id:i})
}
</script> </script>
<template> <template>
<header> <div class="box">
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper">
<HelloWorld msg="You did it!" />
</div>
</header>
<main> </div>
<TheWelcome />
</main>
</template> </template>
<style scoped> <style scoped>
header { .box{
line-height: 1.5; width:600px;
} height:600px;
border:1px solid gainsboro;
.logo {
display: block;
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
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.
先完成此消息的编辑!
想要评论请 注册