Skip to content

Commit 5c5237a

Browse files
committed
简化模板
1 parent c5f27bc commit 5c5237a

35 files changed

+22
-1122
lines changed

template/base/.vscode/extensions.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

template/base/src/assets/base.css

Lines changed: 0 additions & 86 deletions
This file was deleted.

template/base/src/assets/main.css

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,6 @@
1-
@import './base.css';
2-
3-
#app {
4-
max-width: 1280px;
5-
margin: 0 auto;
6-
padding: 2rem;
7-
font-weight: normal;
8-
}
9-
10-
a,
11-
.green {
12-
text-decoration: none;
13-
color: hsla(160, 100%, 37%, 1);
14-
transition: 0.4s;
15-
padding: 3px;
16-
}
17-
18-
@media (hover: hover) {
19-
a:hover {
20-
background-color: hsla(160, 100%, 37%, 0.2);
21-
}
22-
}
23-
24-
@media (min-width: 1024px) {
25-
body {
26-
display: flex;
27-
place-items: center;
28-
}
29-
30-
#app {
31-
display: grid;
32-
grid-template-columns: 1fr 1fr;
33-
padding: 0 2rem;
34-
}
1+
html, body, #app {
2+
width: 100%;
3+
height: 100%;
4+
padding: 0;
5+
margin: 0;
356
}

template/code/default/src/App.vue

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,5 @@
1-
<script setup>
2-
import HelloWorld from './components/HelloWorld.vue'
3-
import TheWelcome from './components/TheWelcome.vue'
4-
</script>
1+
<template></template>
52

6-
<template>
7-
<header>
8-
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
3+
<script setup lang="ts"></script>
94

10-
<div class="wrapper">
11-
<HelloWorld msg="You did it!" />
12-
</div>
13-
</header>
14-
15-
<main>
16-
<TheWelcome />
17-
</main>
18-
</template>
19-
20-
<style scoped>
21-
header {
22-
line-height: 1.5;
23-
}
24-
25-
.logo {
26-
display: block;
27-
margin: 0 auto 2rem;
28-
}
29-
30-
@media (min-width: 1024px) {
31-
header {
32-
display: flex;
33-
place-items: center;
34-
padding-right: calc(var(--section-gap) / 2);
35-
}
36-
37-
.logo {
38-
margin: 0 2rem 0 0;
39-
}
40-
41-
header .wrapper {
42-
display: flex;
43-
place-items: flex-start;
44-
flex-wrap: wrap;
45-
}
46-
}
47-
</style>
5+
<style lang="less" scoped></style>

template/code/default/src/components/HelloWorld.vue

Lines changed: 0 additions & 44 deletions
This file was deleted.

template/code/default/src/components/TheWelcome.vue

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)