vue.js有輪播圖插件,例如vue-concise-slider,它是基于Swiper4、適用于Vue的輪播組件,支持服務(wù)端渲染和單頁應(yīng)用;vue-awesome-swiper配置簡單,支持自適應(yīng)/全屏+按鈕+分頁,同時(shí)兼容移動(dòng)和PC端。
讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長期合作伙伴,公司提供的服務(wù)項(xiàng)目有:主機(jī)域名、網(wǎng)絡(luò)空間、營銷軟件、網(wǎng)站建設(shè)、紅古網(wǎng)站維護(hù)、網(wǎng)站推廣。
vue.js輪播圖插件vue-awesome-swiper
vue-awesome-swiper是基于 Swiper4、適用于 Vue 的輪播組件,支持服務(wù)端渲染和單頁應(yīng)用。
vue-awesome-swiper是基于swiper的,安裝不同版本的vue-awesome-swiper對(duì)應(yīng)不同的swiper,所以swiper里面的屬性多數(shù)能應(yīng)用到vue-awesome-swiper中,也可以根據(jù)swiper文檔來設(shè)置vue-awesome-swiper屬性;
swiper官方文檔:https://www.swiper.com.cn/api/index2.html
安裝:
npm install vue-awesome-swiper --save
導(dǎo)入使用:
// import import Vue from 'vue' import VueAwesomeSwiper from 'vue-awesome-swiper' // mount with global Vue.use(VueAwesomeSwiper) // mount with component import { swiper, swiperSlide } from 'vue-awesome-swiper' export default { components: { swiper, swiperSlide } }
案例展示及示例代碼:
https://surmon-china.github.io/vue-awesome-swiper/
注意版本變化
starting with version 2.6.0, you need to manually introduce swiper's css
import 'swiper/dist/css/swiper.css'
更多編程相關(guān)知識(shí),請(qǐng)?jiān)L問:編程課程??!
文章名稱:vue.js有輪播圖插件嗎?
鏈接URL:http://www.rwnh.cn/article32/cgcepc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、Google、電子商務(wù)、網(wǎng)站營銷、網(wǎng)頁設(shè)計(jì)公司、微信小程序
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容