File tree 3 files changed +23
-9
lines changed
3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ onMounted(() => {
57
57
58
58
<style scoped>
59
59
.course-card {
60
- @apply relative h- [160px ] w-full rounded-xl border border-gray- 400 p- 4 pb- 6 transition-all duration- 300 dark :text-gray-100;
60
+ @apply relative h- [160px ] w-full cursor-pointer rounded-xl border border-gray- 400 p- 4 pb- 6 transition-all duration- 300 dark :text-gray-100;
61
61
@apply hover :text-purple-500 hover:shadow-lg hover:shadow-gray-300 hover:dark :text-purple-400 dark :hover:shadow-gray-500;
62
62
}
63
63
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" flex w-full flex-col" >
3
- <h2 class =" my-10 text-2xl font-bold" >多课程包</h2 >
3
+ <h2 class =" mb-4 text-2xl font-bold" >多课程包</h2 >
4
4
<template v-if =" isLoading " >
5
5
<Loading ></Loading >
6
6
</template >
7
7
<template v-else >
8
- <div
9
- class =" grid grid-cols-1 justify-items-center gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"
10
- >
11
- <template v-for =" coursePack in coursePackStore .coursePacks " >
12
- <CoursePackCard :coursePack =" coursePack" ></CoursePackCard >
13
- </template >
8
+ <div class =" h-[79vh] overflow-y-auto overflow-x-hidden scrollbar-hide" >
9
+ <div
10
+ class =" grid grid-cols-1 justify-items-center gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"
11
+ >
12
+ <template v-for =" coursePack in coursePackStore .coursePacks " >
13
+ <CoursePackCard :coursePack =" coursePack" ></CoursePackCard >
14
+ </template >
15
+ </div >
14
16
</div >
15
17
</template >
16
18
</div >
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default {
56
56
// 来这里找 https://icones.js.org/
57
57
collections : getIconCollections ( [ "ph" , "simple-icons" ] ) ,
58
58
} ) ,
59
- function ( { addComponents } ) {
59
+ function ( { addComponents, addUtilities } ) {
60
60
const buttons = {
61
61
".tw-btn-blue" : {
62
62
backgroundColor : "#4e80ee" ,
@@ -69,6 +69,18 @@ export default {
69
69
} ;
70
70
71
71
addComponents ( buttons ) ;
72
+
73
+ const scrollbar = {
74
+ ".scrollbar-hide" : {
75
+ "-ms-overflow-style" : "none" /* 适用于 IE 和 Edge */ ,
76
+ "scrollbar-width" : "none" /* 适用于 Firefox */ ,
77
+ } ,
78
+ ".scrollbar-hide::-webkit-scrollbar" : {
79
+ display : "none" ,
80
+ } ,
81
+ } ;
82
+
83
+ addUtilities ( scrollbar , [ "responsive" ] ) ;
72
84
} ,
73
85
] ,
74
86
} ;
You can’t perform that action at this time.
0 commit comments