Skip to content

Commit e0366f4

Browse files
committed
文件更名
1 parent 18821b5 commit e0366f4

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

src/components/Topnav.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="topnav">
2+
<div class="topNav">
33
<div class="logo">LOGO</div>
44
<ul class="menu">
55
<li>菜单1</li>
@@ -21,8 +21,8 @@ export default {
2121
};
2222
</script>
2323
<style lang="scss" scoped>
24-
.topnav {
25-
background: pink;
24+
.topNav {
25+
//background: pink;
2626
display: flex;
2727
padding: 16px;
2828
position: fixed;

src/lib/Switch.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button class="zhiwei-switch" @click="toggle" :class="{'zhiwei-checked':value}"><span></span></button>
2+
<button class="zw-switch" @click="toggle" :class="{'zw-checked':value}"><span></span></button>
33
</template>
44
<script lang="ts">
55
export default {
@@ -19,7 +19,7 @@ export default {
1919
<style lang="scss">
2020
$h: 22px;
2121
$h2: $h - 4px;
22-
.zhiwei-switch {
22+
.zw-switch {
2323
height: $h;
2424
width: $h * 2;
2525
border: none;
@@ -38,7 +38,7 @@ $h2: $h - 4px;
3838
transition: all 250ms;
3939
}
4040
41-
&.zhiwei-checked {
41+
&.zw-checked {
4242
background: #1890ff;
4343
4444
> span {
@@ -56,7 +56,7 @@ $h2: $h - 4px;
5656
}
5757
}
5858
59-
&.zhiwei-checked:active {
59+
&.zw-checked:active {
6060
> span {
6161
width: $h2 + 4px;
6262
margin-left: -4px;

src/views/Doc.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ export default {
6161
> main {
6262
flex-grow: 1;
6363
padding: 16px;
64-
background: lightgreen;
64+
border: 1px solid pink;
65+
//background: lightgreen;
6566
}
6667
}
6768
aside {
68-
background: lightblue;
69+
//background: lightblue;
6970
width: 150px;
7071
padding: 16px;
7172
position: fixed;

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
justify-content: center;
2525
align-items: center;
2626
flex-direction: column;
27-
background: lightgreen;
27+
//background: lightgreen;
2828
> .actions{
2929
padding: 8px 0;
3030
a {

0 commit comments

Comments
 (0)