
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
vue-h5-swiper
Advanced tools
Slight vue slider component for H5 applications.
loop
mode.SwiperItem
count.Online demo: https://edgarallanzp.github.io/vue-h5-swiper/
Or
yarn dev
npm install vue-h5-swiper --save
# or use yarn
yarn add vue-h5-swiper
<template>
<swiper>
<swiper-item>
...
Content Slot
...
</swiper-item>
</swiper>
</template>
<script>
import { Swiper, SwiperItem } from 'vue-h5-swiper';
export default {
components: {
Swiper,
SwiperItem
}
};
</script>
Prop | Default | Description |
---|---|---|
loop | false | Enable loop mode. |
show-indicator | true | Display indicators. |
page-transition | 'move' | Paging animation. Available animations: ['move', 'fade', 'cover', 'carousel', 'scale', 'glue', 'cube', 'push', 'three'] |
autoplay | false | Auto slide. |
interval | 3000 | Auto slide interval. |
Event | Params | Description |
---|---|---|
beforeChange | activeIndex , oldIndex | Before paging hook. |
afterChange | activeIndex , oldIndex | After paging hook. |
Method | Description |
---|---|
moveTo(index) | Move to the specified page. |
next() | Move to next page. |
prev() | Move to previous page. |
Slot | Description |
---|---|
default--------- | For SwiperItem . |
indicator------- | Custom swiper indicator. |
Slot | Description |
---|---|
default--------- | For display content. |
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Copyright (c) 2019, Edgar Li
FAQs
Slight vue slider component for H5 applications.
The npm package vue-h5-swiper receives a total of 6 weekly downloads. As such, vue-h5-swiper popularity was classified as not popular.
We found that vue-h5-swiper demonstrated a not healthy version release cadence and project activity because the last version was released 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.