New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aidol/vue-accordion

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aidol/vue-accordion

A accordion component for vue.js

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@aidol/vue-accordion

A accordion component for vue.js

Installation

Using npm

npm install @aidol/vue-accordion --save
# or
cnpm install @aidol/vue-accordion --save

Usage

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: ''},
        //...
      ]
    }
  }
}

Properties

属性类型说明可选值是否必需
wNumber容器宽度1200 (默认)
hNumber容器高度266 (默认)
gapNumber折叠间隔100 (默认)
dataArray of object展示的图片数据实例默认使用的是演示数据 , 设置 data 属性以覆盖

注:

  1. data 属性中 (对象数组类型) , 你必须为每个对象提供 src 属性 ,作为每张图片的地址。其他有用的数据,你可以视你所需去添加。

Events

@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
    }
  }
}

Logs

2018/9/5

  1. init package

Keywords

FAQs

Package last updated on 16 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc