-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
119 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,52 @@ | ||
<template> | ||
<div class="carousel shadow-3"> | ||
<q-carousel animated v-model="slide" navigation infinite :autoplay="autoplay" arrows transition-prev="slide-right" | ||
transition-next="slide-left" @mouseenter="autoplay = false" @mouseleave="autoplay = true"> | ||
<q-carousel-slide :name="1" img-src="https://s1.ax1x.com/2022/04/13/LKrfsK.jpg" /> | ||
<q-carousel-slide :name="2" img-src="https://s1.ax1x.com/2022/04/13/LKrfsK.jpg" /> | ||
<q-carousel-slide :name="3" img-src="https://s1.ax1x.com/2022/04/13/LKrfsK.jpg" /> | ||
<q-carousel-slide :name="4" img-src="https://s1.ax1x.com/2022/04/13/LKrfsK.jpg" /> | ||
<q-carousel | ||
animated | ||
v-model="slide" | ||
navigation | ||
infinite | ||
:autoplay="autoplay" | ||
arrows | ||
transition-prev="slide-right" | ||
transition-next="slide-left" | ||
@mouseenter="autoplay = false" | ||
@mouseleave="autoplay = true" | ||
> | ||
<q-carousel-slide | ||
:name="1" | ||
img-src="https://img2.imgtp.com/2024/04/12/BOwH8zQx.jpg" | ||
/> | ||
<q-carousel-slide | ||
:name="2" | ||
img-src="https://img2.imgtp.com/2024/04/12/pC18zgX2.png" | ||
/> | ||
<q-carousel-slide | ||
:name="3" | ||
img-src="https://img2.imgtp.com/2024/04/12/4eJ6LLBL.jpg" | ||
/> | ||
<q-carousel-slide | ||
:name="4" | ||
img-src="https://img2.imgtp.com/2024/04/12/wMUocoa0.jpg" | ||
/> | ||
</q-carousel> | ||
</div> | ||
|
||
</template> | ||
|
||
<script> | ||
import { | ||
ref | ||
} from 'vue' | ||
import { ref } from "vue"; | ||
export default { | ||
setup() { | ||
return { | ||
slide: ref(1), | ||
autoplay: ref(true) | ||
} | ||
} | ||
} | ||
export default { | ||
setup() { | ||
return { | ||
slide: ref(1), | ||
autoplay: ref(true), | ||
}; | ||
}, | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
.carousel { | ||
width: 60%; | ||
margin-top: 50px; | ||
} | ||
.carousel { | ||
width: 60%; | ||
margin-top: 50px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div class="icp"> | ||
{{ `© ${year} ${author} ` | ||
}}<a href="http://beian.miit.gov.cn/" target="_blank">{{ record }}</a> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
let year = new Date().getFullYear(); // 一般都是最新的一年 | ||
let author = ""; // 作者名 | ||
let record = "豫ICP备2024043581号-1"; // 备案号 | ||
</script> | ||
|
||
<style> | ||
.icp { | ||
position: absolute; | ||
bottom: 20px; | ||
right: 0; | ||
margin: 10px 0; | ||
width: 100%; | ||
height: 36px; | ||
white-space: pre; | ||
text-align: center; | ||
color: gray; | ||
z-index: 1000; | ||
} | ||
.icp > a { | ||
color: gray; | ||
text-decoration: none; | ||
} | ||
.icp > a:hover { | ||
color: black; | ||
text-decoration: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters