🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

vue-grid-accordion

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-grid-accordion

基于Vue的栅格手风琴效果

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

安装

npm i vue-grid-accordion --save

使用

// main.js
import VueGridAccordion from 'vue-grid-accordion';
Vue.use(VueGridAccordion);
// app.vue
<template>
    <v-grid-accordion
        :width="960"
        :height="680"
        :columns="5"
        :gutter="6"
        :images="imgs"
        :duration="5000"/>
</template>
<script >
export default {
    data() {
        return {
            imgs: [{
                url: require('/path/to/images'),
                text: 'Some thing text',
            }, ... ]
        };
    },
}
</script>

参数

参数说明类型默认值可选值
width画布总宽number960
height画布总高number680
columns列数number5
gutter图片间隔number4
images图片地址以字符串方式组成,或者是对象,参考下表"Images参数"array
duration动画播放时间间隔number5000

"Images参数"

参数说明类型默认值可选值
url图片地址string
text图片说明文字string

Keywords

vue image grid accordion

FAQs

Package last updated on 27 Oct 2019

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