Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
基于 Vue
的 swipe
组件,依赖vue-touch
1. 安装:npm install zui-swipe
2. 项目使用:
import VueTouch from 'vue-touch';
import Swipe from 'zui-swipe';
Vue.use(VueTouch);
new Vue({
el: '#app',
components: {
'zz-swipe': Swipe
},
data: function(){
return {
imgs: [
'http://pic1.58cdn.com.cn/1.png',
'http://pic1.58cdn.com.cn/2.xpng',
'http://pic1.58cdn.com.cn/3.png'
]
}
},
template: '<div><zz-swipe :imgs="imgs" height="13rem"></zz-swipe></div>'
});
##Config(props)
Name | Type | Default | Description |
---|---|---|---|
imgs | Array | [] | 图片url,单张图片不建议使用本组件 |
auto | Number | 0 | 设置自动轮播interval时间,<=0不启用自动轮播 |
disableCustom | Boolean | false | 是否禁用手动轮播 |
duration | Number | 600 | 轮播滑动过程耗时,毫秒 |
height | String | 8rem | 轮播框高度,需带上单位 |
showIndicators | Boolean | true | 是否显示底部小圆点 |
indicatorsColor | String | #dbd8d8 | 圆点默认颜色 |
indicatorsActiveColor | String | #ffffff | 正在展示的图片对应圆点的颜色 |
indicatorsPosition | String | 0.53rem | 圆点位置(离图片底部距离) |
indicatorsSize | String | 0.53rem | 圆点尺寸(直径) |
indicatorsSpacing | String | 0.53rem | 圆点之间的距离 |
showWholeImg | Boolean | false | false默认图片居中显示;true图片长宽设为100%,显示全图,但图片变形,不建议使用 |
FAQs
基于VUE的swipe组件
We found that zui-swipe 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.