vue-multiple / collapse

基于 Vue2.x 的折叠面板组件。Vue-based collapse component
https://vue-multiple.github.io/collapse/
MIT License
19 stars 8 forks source link
collapse vue-collapse vue-multiple-collapse vue2 vuejs2

collapse

Element Collapse clone, extract the core function and did a little change. If you have a better idea of this component improvement, please share it and I will update it immediately.

Screenshots

vue-multiple-collapse

Install

npm install vue-multiple-collapse -S

Quick Start

import Vue from 'vue'
import {VmCollapse, VmCollapseItem } from 'vue-multiple-collapse'
Vue.component('vm-collapse', VmCollapse)
Vue.component('vm-collapse-item', VmCollapseItem)

OR

import Vue from 'vue'
import VmCollapse from 'vue-multiple-collapse'
Vue.use(VmCollapse)

For more information, please refer to Collapse in our documentation.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run demo:dev

# build for demo with minification
npm run demo:build

# build for gh-pages with minification
npm run demo:prepublish

# build for production with minification
npm run build

# generate gh-pages
npm run deploy

LICENSE

MIT