赞
踩
参考链接:https://swiper6.vercel.app/react#usage
其实swiper中文文档很多api都是直接阔以用的,只是形式不一样
中文文档:https://www.swiper.com.cn/api/
import { Swiper, SwiperSlide } from 'swiper/react' import { sliderList } from './source' import SwiperCore, { Pagination, Autoplay, Navigation } from 'swiper' import styled from '@emotion/styled' // Import Swiper styles import 'swiper/swiper-bundle.css' import { useEffect, useState } from 'react' export const MaskingLeft = styled.div` left: ${(props) => `${-props.offset}px`}; ` export const MaskingRight = styled.div` right: ${(props) => `${-props.offset}px`}; ` // 另外加载其他附加模块,比如 Navigatio
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。