Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/Aaron00101010/vue-split-carousel
A carousel component for vue,meanwhile display several carousel item.
2.x version for vue 3
1.x version for vue 2
Modern browser, follow vue 3 compatibility.
Use <split-carousel-item>
in <split-carousel>
,put your custom content in split-carousel-item
.
<split-carousel>
<split-carousel-item>
custom content
</split-carousel-item>
<split-carousel-item>
custom content2
</split-carousel-item>
</split-carousel>
# use npm
npm i vue-split-carousel
# use yarn
yarn add vue-split-carousel
support prefix option prevent name conflict while install component with app.use
<template>
<div id="app">
<split-carousel>
<split-carousel-item v-for="item in 8" :key="item">
{{ item }}
</split-carousel-item>
</split-carousel>
</div>
</template>
<script>
import { SplitCarousel, SplitCarouselItem } from "vue-split-carousel";
export default {
components: {
SplitCarousel,
SplitCarouselItem
}
};
</script>
import Vue from "vue";
import App from "./App.vue";
import SplitCarousel from "vue-split-carousel";
const app = createApp(App);
app.use(SplitCarousel);
//accpect prefix for component name conflict, use as `<ElSplitCarousel>` and `<ElSplitCarouselItem>`
//app.use(SplitCarousel,{prefix:'El'});
app.mount("#app");
<script>
can use vue-split-carousel.min.umd.js in the dist folder.
<div id="app"></div>
<script src="https://unpkg.com/vue@next"></script>
<script src="./vue-split-carousel.umd.min.js"></script>
<script>
const app = Vue.createApp({
template:`
<split-carousel>
<split-carousel-item v-for="i in 8">{{i}}</split-carousel-item>
</split-carousel>
`
})
app.use(window['vue-split-carousel'])
app.mount('#app')
</script>
Attribute | Description | Type | Accpected Values | Default |
---|---|---|---|---|
speed | transition duration of carousel item, in milliseconds | Number | - | 500 |
autoplay | whether automatically switch carousel items | Boolean | - | true |
interval | interval of switch carousel items, in milliseconds | Number | - | 3000 |
loop | whether display carousel items in loop | Boolean | - | true |
display-amount | the amount of carousel items display in carousel container | Number | - | 4 |
item-width | the width of carousel items | Number | - | 120 |
height | height of carousel, if the prop value type is number,the unit is px by default. you can pass string value to use other unit, eg: 40vh | Number/String | - | 80 |
timing-function | the animation effect of carousel item,reference transition-timing-function | String | - | ease |
pause-on-hover | whether pause autoplay while mouse hover | Boolean | - | true |
arrow-visible | whether arrow visiable, avaliable when loop set to false | String | default/always | default |
Name | Descrition |
---|---|
left | customize left arrow |
right | customize right arrow |
FAQs
Unknown package
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.