Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@trodolv/vue-splide
Advanced tools
Vue Splide is the Splide component for Vue.
Get the latest version by NPM:
$ npm install @trodolv/vue-splide
Import vue-splide
and install into Vue:
import Vue from 'vue';
import App from './App';
import VueSplide from '@trodolv/vue-splide';
Vue.use( VueSplide );
new Vue( {
el : '#app',
render: h => h( App ),
} );
Import Splide
and SplideSlide
components:
import { Splide, SplideSlide } from '@trodolv/vue-splide';
export default {
components: {
Splide,
SplideSlide,
},
}
Import styles if you need.
import '@trodolv/splide/dist/css/themes/splide-default.min.css';
// or
import '@trodolv/splide/dist/css/themes/splide-sea-green.min.css';
// or
import '@trodolv/splide/dist/css/themes/splide-skyblue.min.css';
The Splide
component accepts options as an object:
<splide :options="yourOptions"></splide>
Also, you can pass extensions or transition as props.
<splide
:extensions="yourExtensions"
:transition="yourTransition"
>
</splide>
See this document for more details.
You can listen to all Splide events through the Splide
component. The callback function name is generated by the original event name, adding a "splide:" prefix. For example, "arrow:mounted" will be "splide:arrow:mounted".
<splide @splide:arrow:mounted="onArrowMounted"></splide>
Note that the first argument is the splide instance, meaning original arguments are shifted by one.
Here is a small example:
<template>
<splide :options="options">
<splide-slide>
<img src="image1.jpg">
</splide-slide>
<splide-slide>
<img src="image2.jpg">
</splide-slide>
<splide-slide>
<img src="image3.jpg">
</splide-slide>
</splide>
</template>
<script>
export default {
data() {
return {
options: {
rewind : true,
width : 800,
gap : '1rem',
},
};
},
}
</script>
More examples:
Vue Splide and Splide are released under the MIT license. © 2020 Naotoshi Fujita
FAQs
The Splide component for Vue.
The npm package @trodolv/vue-splide receives a total of 0 weekly downloads. As such, @trodolv/vue-splide popularity was classified as not popular.
We found that @trodolv/vue-splide 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.