File tree 4 files changed +51
-6
lines changed
4 files changed +51
-6
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ coverage
27
27
* .sln
28
28
* .sw ?
29
29
components.d.ts
30
+ yarn.lock
Original file line number Diff line number Diff line change @@ -4,9 +4,14 @@ import LayoutLeftMenu from '@/components/Layout/components/LayoutLeftMenu.vue';
4
4
</script >
5
5
6
6
<template >
7
- <div :class =" ['transition-colors','duration-300']" >
7
+ <div
8
+ style =" width : 75vw ;margin : auto ;"
9
+ :class =" ['transition-colors','duration-300']"
10
+ >
8
11
<base-header />
9
- <layout-left-menu />
12
+ <div >
13
+ <layout-left-menu />
14
+ </div >
10
15
</div >
11
16
</template >
12
17
Original file line number Diff line number Diff line change 14
14
@apply bg-zinc-50 dark:bg-black
15
15
}
16
16
.bg-second-main {
17
- @apply bg-zinc-200 dark:bg-secondBack;
17
+ @apply bg-zinc-100 dark:bg-secondBack;
18
18
}
19
19
::-webkit-scrollbar {
20
20
display : none;
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
-
2
+ import { computed , ref } from ' vue' ;
3
+ const effectRef = ref <' slide' | ' fade' | ' card' >(' slide' );
4
+ const isCardRef = computed (() => effectRef .value === ' card' );
3
5
</script >
4
6
5
7
<template >
6
8
<div >
7
- Song List
9
+ <n-carousel
10
+ effect =" card"
11
+ draggable
12
+ prev-slide-style =" transform: translateX(-150%) translateZ(-800px);"
13
+ next-slide-style =" transform: translateX(50%) translateZ(-800px);"
14
+ style =" height : 240px "
15
+ :show-dots =" true"
16
+ >
17
+ <n-carousel-item :style =" { width: '50%' }" >
18
+ <img
19
+ class =" carousel-img"
20
+ src =" https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel1.jpeg"
21
+ >
22
+ </n-carousel-item >
23
+ <n-carousel-item :style =" { width: '55%' }" >
24
+ <img
25
+ class =" carousel-img"
26
+ src =" https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel2.jpeg"
27
+ >
28
+ </n-carousel-item >
29
+ <n-carousel-item :style =" { width: '55%' }" >
30
+ <img
31
+ class =" carousel-img"
32
+ src =" https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel3.jpeg"
33
+ >
34
+ </n-carousel-item >
35
+ <n-carousel-item :style =" { width: '55%' }" >
36
+ <img
37
+ class =" carousel-img"
38
+ src =" https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel4.jpeg"
39
+ >
40
+ </n-carousel-item >
41
+ </n-carousel >
8
42
</div >
9
43
</template >
10
44
11
45
<style scoped>
12
-
46
+ .carousel-img {
47
+ margin : 0 auto ;
48
+ width : 100% ;
49
+ height : 100% ;
50
+ object-fit : cover ;
51
+ }
13
52
</style >
You can’t perform that action at this time.
0 commit comments