鼠标滚轮-头部删除maxheight
This commit is contained in:
parent
579c8c2295
commit
9667e9cef6
|
|
@ -36,6 +36,7 @@
|
||||||
:space-between="32"
|
:space-between="32"
|
||||||
:loop="true"
|
:loop="true"
|
||||||
:speed="500"
|
:speed="500"
|
||||||
|
:mousewheel="true"
|
||||||
navigation
|
navigation
|
||||||
:pagination="{ clickable: true }"
|
:pagination="{ clickable: true }"
|
||||||
:preventClicksPropagation="true"
|
:preventClicksPropagation="true"
|
||||||
|
|
@ -77,7 +78,8 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from "vue"
|
import { ref } from "vue"
|
||||||
import { Swiper, SwiperSlide } from "swiper/vue"
|
import { Swiper, SwiperSlide } from "swiper/vue"
|
||||||
import { Navigation, Pagination, EffectCoverflow } from "swiper/modules"
|
import { Navigation, Pagination, EffectCoverflow, Mousewheel } from "swiper/modules"
|
||||||
|
|
||||||
import { useRouter } from "vue-router" // 引入路由钩子
|
import { useRouter } from "vue-router" // 引入路由钩子
|
||||||
|
|
||||||
// Swiper 样式
|
// Swiper 样式
|
||||||
|
|
@ -85,7 +87,7 @@ import "swiper/css"
|
||||||
import "swiper/css/navigation"
|
import "swiper/css/navigation"
|
||||||
import "swiper/css/pagination"
|
import "swiper/css/pagination"
|
||||||
|
|
||||||
const modules = [Navigation, Pagination, EffectCoverflow]
|
const modules = [Navigation, Pagination, EffectCoverflow, Mousewheel]
|
||||||
|
|
||||||
// 10 个导航项(按你的要求)
|
// 10 个导航项(按你的要求)
|
||||||
const navItems = ref([
|
const navItems = ref([
|
||||||
|
|
@ -194,10 +196,8 @@ const onSetTransition = (swiper, duration) => {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.header-image {
|
.header-image {
|
||||||
max-width: 100%;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
max-height: 100px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user