├── .gitignore ├── LICENSE ├── README.md ├── package.json └── src ├── Collapse.vue ├── Item.vue └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Fangdun Cai (fundon.me) 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Collapse 2 | 3 | Collapse component for Vue Bulma. 4 | 5 | 6 | ## Installation 7 | 8 | ``` 9 | $ npm install vue-bulma-collapse --save 10 | ``` 11 | 12 | 13 | ## Examples 14 | 15 | ```vue 16 | 33 | 34 | 44 | ``` 45 | 46 | 47 | ## Badges 48 | 49 | ![](https://img.shields.io/badge/license-MIT-blue.svg) 50 | ![](https://img.shields.io/badge/status-stable-green.svg) 51 | 52 | --- 53 | 54 | > [fundon.me](https://fundon.me)  ·  55 | > GitHub [@fundon](https://github.com/fundon)  ·  56 | > Twitter [@_fundon](https://twitter.com/_fundon) 57 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-bulma-collapse", 3 | "version": "1.0.3", 4 | "description": "Collapse component for Vue Bulma", 5 | "repository": "vue-bulma/collapse", 6 | "license": "MIT", 7 | "author": { 8 | "name": "Fangdun Cai", 9 | "email": "cfddream@gmail.com", 10 | "url": "fundon.me" 11 | }, 12 | "keywords": [ 13 | "vue", 14 | "bulma", 15 | "vue-bulma", 16 | "vue-bulma-component", 17 | "vue-bulma-collapse", 18 | "collapse" 19 | ], 20 | "main": "src/index.js", 21 | "peerDependencies": { 22 | "bulma": ">=0.2", 23 | "vue": ">=2" 24 | }, 25 | "dependencies": { 26 | "animejs": "1" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Collapse.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 34 | 35 | 40 | -------------------------------------------------------------------------------- /src/Item.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 124 | 125 | 152 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | exports.Collapse = require('./Collapse') 2 | exports.Item = require('./Item') 3 | --------------------------------------------------------------------------------