
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
vue-simple-carousel
Advanced tools
Simple carousel slider for Vue.js 3
npm install vue-simple-carousel
or
yarn add vue-simple-carousel
<template>
<simple-carousel :items="photos">
<template #default="{ item, index }">
<img :src="item" :alt="index">
</template>
</simple-carousel>
</template>
<script>
import SimpleCarousel from 'vue-simple-carousel';
import { defineComponent } from 'vue';
export default defineComponent({
components: {
SimpleCarousel,
},
setup() {
return {
photos: [
'https://via.placeholder.com/150/0000FF/808080?Text=Test%20Image%201',
'https://via.placeholder.com/150/FF0000/FFFFFF?Text=Test%20Image%202',
'https://via.placeholder.com/150/FFFF00/000000?Text=Test%20Image%203',
'https://via.placeholder.com/150/000000/FFFFFF/?text=Test%20Image%204',
]
}
}
});
</script>
Attribute | Type | Default | Description |
---|---|---|---|
items | Array | List of slides (required) | |
modelValue | Number | 0 | Current slide index |
perPage | Number / [Number, Number][] | * | |
1* | Number of slides per page. :per-page="3" or :per-page=[[640, 2], [720, 3]] for several endpoints | ||
slideByItem | Boolean | false | Slide by one item if true , or by full page if false |
loop | Boolean | false | Flag to make the carousel loop around when it reaches the end. |
adjustable | Boolean | false | Adjust the height of the wrapper to the height of the visible slides |
sideNav | Boolean | false | Show side navigation buttons |
pages | Boolean | false | Show pages navigation |
dots | Boolean | false | Show dots navigation |
Event name | Description | Parameter |
---|---|---|
update:modelValue | Emitted when current index changed | Current index Number |
change-per-page | Emitted when current per page number changed | Current per page number Number |
FAQs
Simple carousel slider for Vue.js 3
The npm package vue-simple-carousel receives a total of 0 weekly downloads. As such, vue-simple-carousel popularity was classified as not popular.
We found that vue-simple-carousel 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.