@zebra-ui/swiper
Version:
专为多端设计的高性能swiper轮播组件库,支持多种复杂的 3D swiper轮播效果。
19 lines (14 loc) • 444 B
text/typescript
import type { OnLoad } from '../../../types/components/core/events/on-load'
import type { SwiperInterface } from '../../../types/swiper-class'
const onLoad: OnLoad = function (this: SwiperInterface) {
const swiper = this
// processLazyPreloader(swiper, e.target)
if (
swiper.params.cssMode ||
(swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight)
) {
return
}
swiper.update()
}
export default onLoad