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.
@ks-web/image-preview
Advanced tools
npm install @ks-web/image-preview
Vue.use(imagePreview)
// 组件方式调用
<image-preview v-model="dialogShow"
:index.sync="dialogIndex"
:images="images"></image-preview>
// api方式调用
this.$dialogImagePreview({
index: 0,
images: [...images],
onClose () {
console.log('关闭')
},
onChange () {
console.log('滑动')
}
})
名称 | 说明 | 类型 | 是否必填 | 默认值 |
---|---|---|---|---|
index | 图片下标 | number | Y | 0 |
lazyImage | 图片懒加载 | boolean | N | false |
clickOnceClose | 点击任意区域一次关闭弹窗 | boolean | N | false |
imageSwiper | 是否需要图片指示器,与clickOnceClose互斥 | boolean | N | true |
lazySwiper | 图片指示器虚拟滚动 | boolean | N | false |
images | 图片列表 | array | Y | [] |
swiperImages | 图片指示器列表,如没有图片则取images中的对应图片 | array | N | [] |
closeOnlyDialog | 使用物理返回键时,是否只关闭图片查看器弹窗,而不改变路由 | boolean | N | true |
名称 | 说明 | 类型 | 是否必填 | 默认值 |
---|---|---|---|---|
index | 图片下标 | number | Y | 0 |
images | 图片列表 | array | Y | [] |
onClose | 关闭时的回调 | function | N | undefined |
onChange | 切换时的回调 | function | N | undefined |
https://doc.ky-tech.com.cn/docs/b1764a82be0c4992b5a2da1fc45ade58
FAQs
### 安装 ``` npm install @ks-web/image-preview ```
The npm package @ks-web/image-preview receives a total of 3 weekly downloads. As such, @ks-web/image-preview popularity was classified as not popular.
We found that @ks-web/image-preview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.