![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
swiper-vue
Advanced tools
基于vue3.0的轮播组件,有左右和上下轮播方向。
支持左右点击箭头切换,也可以点击下方指示器切换。
支持鼠标左键点击item项后滑动切换,支持鼠标滚动切换。
具体配置、事件、插槽可看下方详细文档
<template>
<swiper-vue autoplay :delay='2000' arrow='hover' indicator :items="options">
<template #default="{ item, index,activeIndex,isActive }">
<div style="height: 100%;width: 100%;background: #99A9BF;display: flex;justify-content: center;align-items: center;">{{ item.name }}</div>
</template>
</swiper-vue>
</template>
<script lang='ts' setup>
import 'swiper-vue/dist/hut-es.css';
import { SwiperVue } from 'swiper-vue';
const options = [
{
name: 'swiper1'
},
{
name: 'swiper2'
},
{
name: 'swiper3'
}
]
</script>
import { createApp } from 'vue'
import 'swiper-vue/dist/hut-es.css';
import SwiperVue from 'swiper-vue';
const $app = createApp(App);
$app.use(SwiperVue);
$app.mount('#app');`
property | type | default | description |
---|---|---|---|
items | Array | 数据源 | 轮播数据源,数组形式 |
direction | String | horizontal | 当前轮播的方向,默认为horizontal水平,vertical为垂直 |
autoplay | Boolean | true | 是否自动播放轮播 |
delay | Number | 2000 | 自动播放间隔,单位毫秒,默认2秒 |
indicator | Boolean | true | 是否显示轮播底部指示器 |
mouseSlider | Boolean | true | 是否开启鼠标点击轮播项左右滑动切换 |
triggerMove | Number | null | 鼠标点击轮播项左右滑动切换的触发值,默认为滑动该容器1/2.5宽度或者高度切换 |
mouseScroll | Boolean | false | 是否开启鼠标滚轮切换轮播,默认不开启 |
hoverStop | Boolean | true | 鼠标悬停时暂停轮播,默认为true |
arrow | String | always | 左右切换箭头的显示形式,默认一直显示,值为always、hover、none |
height | Number | 200 | 轮播容器高度 |
width | Number | null | 轮播容器宽度,默认为容器父元素宽度 |
name | description |
---|---|
on-change | 轮播切换后触发事件,function(type:'pre' |
name | description |
---|---|
default | 轮播项内容,item为当前项值,index为当前索引,activeIndex为当前激活项索引,isActive为当前项是否激活 |
pre-icon | 轮播左切换 |
next-icon | 轮播右切换 |
FAQs
轮播 swiper slider component for Vue.js
The npm package swiper-vue receives a total of 9 weekly downloads. As such, swiper-vue popularity was classified as not popular.
We found that swiper-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.