├── .gitignore ├── main.js ├── src ├── arrow-down.svg └── components │ └── Collapse.vue ├── package.json ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | npm-debug.log 4 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | const Collapse = require('./src/components/Collapse.vue') 2 | module.exports = Collapse 3 | -------------------------------------------------------------------------------- /src/arrow-down.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-collapse", 3 | "version": "1.0.3", 4 | "description": "A simple collapse component for vue.js", 5 | "main": "./main.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git+https://github.com/cezardasilva/vue-collapse.git" 9 | }, 10 | "keywords": [ 11 | "vue", 12 | "vue-component", 13 | "vue-collapse", 14 | "collapse" 15 | ], 16 | "author": "Cezar Alexandre", 17 | "license": "MIT", 18 | "bugs": { 19 | "url": "https://github.com/cezardasilva/vue-collapse/issues" 20 | }, 21 | "homepage": "https://github.com/cezardasilva/vue-collapse#readme", 22 | "peerDependencies": { 23 | "vue": "2.x.x" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue Collapse [![npm](https://img.shields.io/npm/dt/vue-collapse.svg)]() [![npm](https://img.shields.io/npm/v/vue-collapse.svg)]() [![npm](https://img.shields.io/npm/l/vue-collapse.svg)]() [![GitHub stars](https://img.shields.io/github/stars/cezardasilva/vue-collapse.svg?style=social&label=Star)]() [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/cezaralex) 2 | 3 | 4 | 5 | 6 | > A simple collapse component for vue.js 7 | 8 | # Instalation 9 | ```bash 10 | npm install vue-collapse --save-dev 11 | ``` 12 | 13 | # Usage 14 | ```Vue 15 | 27 | 28 | 38 | ``` 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Cezar Alexandre 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/components/Collapse.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 73 | 74 | 112 | --------------------------------------------------------------------------------