You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

@aidol/vue-accordion

A accordion component for vue.js

0.1.3
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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 属性以覆盖

注:

  • 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

  • init package

Keywords

accordion

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