
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@aidol/vue-accordion
Advanced tools
A accordion component for vue.js
Using npm
npm install @aidol/vue-accordion --save
# or
cnpm install @aidol/vue-accordion --save
In main.js
import Vue from 'vue'
import accordion from '@aidol/vue-accordion'
Vue.use(accordion)
// new Vue({ // ... })
<ai-accordion :data="imgList" @jump="jumpTo"/>
export default {
data(){
return {
imgList: [
{title: '' , src: ''},
{title: '' , src: ''},
//...
]
}
}
}
属性 | 类型 | 说明 | 可选值 | 是否必需 |
---|---|---|---|---|
w | Number | 容器宽度 | 1200 (默认) | 否 |
h | Number | 容器高度 | 266 (默认) | 否 |
gap | Number | 折叠间隔 | 100 (默认) | 否 |
data | Array of object | 展示的图片数据 | 实例默认使用的是演示数据 , 设置 data 属性以覆盖 | 是 |
注:
data
属性中 (对象数组类型) , 你必须为每个对象提供 src
属性 ,作为每张图片的地址。其他有用的数据,你可以视你所需去添加。@jump
点击某张展示图片时触发句柄
<ai-accordion @jump="jumpTo"/>
export default {
data(){
return {}
},
methods: {
jumpTo(info){
// `info` is the data of curr img which you setted the `data` prop , you can use this
// do somethig when you click foo img
}
}
}
2018/9/5
FAQs
A accordion component for vue.js
The npm package @aidol/vue-accordion receives a total of 0 weekly downloads. As such, @aidol/vue-accordion popularity was classified as not popular.
We found that @aidol/vue-accordion 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.