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.
timeline-carousel
Advanced tools
一个基于vue的时间轴轮播图插件。
npm i timeline-carousel --save
import timelineCarousel from 'timeline-carousel'
Vue.use(timelineCarousel)
<template>
<timeline-carousel
:timelineList="[{
id: 1,
text: '2020-09-28'
}]"
:carouselList="[{
id: 1,
img: require('./images/1.jpg'),
title: '陶渊明',
info: '盛年不重来,一日难再晨。及时宜自勉,岁月不待人。'
}]"
/>
</template>
名称 | 默认值 | 类型 | 简介 | 注意 |
---|---|---|---|---|
themeColor | #bd1622 | String | 主题色 | |
timelineList | [] | Array | 时间轴列表 | 数量需与轮播图列表一致 |
carouselList | [] | Array | 轮播图列表 | 数量需与时间轴列表一致 |
carouseIsShow | true | Boolean | 是否显示轮播图 | |
autoPlay | true | Boolean | 是否自动播放 | |
loop | true | Boolean | 是否循环播放 | |
timelineNum | 7 | Number | 时间轴显示数量 | |
timelineWidth | 150 | Number | 时间轴item宽度 | 默认150宽度,如果更改宽度,组件中展示几个元素需要与timelineNum属性展示数量保持一致 |
enterActiveClass | animate__animated animate__fadeInLeft | String | 轮播图切换动画 | animate.css库中任意动画都可以使用 |
mouseEvent | false | Boolean | 鼠标移入轮播图禁止滚动 |
名称 | 返回值 | 说明 |
---|---|---|
getCurrentItem | getCurrentItem(index, timelineItem, carouselItem){} | (索引值, 时间轴Item, 轮播图Item) |
FAQs
vue时间轴轮播图插件
We found that timeline-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
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.