├── .gitignore
├── Dropdown.vue
├── LICENSE
├── README.md
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | /dist/
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Editor directories and files
9 | .idea
10 | .vscode
11 | *.suo
12 | *.ntvs*
13 | *.njsproj
14 | *.sln
15 | .editorconfig
16 |
--------------------------------------------------------------------------------
/Dropdown.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
14 |
20 |
21 |
22 |
23 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
386 |
387 |
496 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017-present, Boris Butenko
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # bp-vuejs-dropdown
2 |
3 | [Documentation and demo](https://brandquad.github.io/bp-vuejs-demo/#/dropdown)
4 |
5 | Install:
6 | ```bash
7 | npm i -D bp-vuejs-dropdown
8 | ```
9 |
10 | ```bash
11 | import Vue from 'vue';
12 | import Dropdown from 'bp-vuejs-dropdown';
13 | ```
14 |
15 | ```bash
16 | // global
17 | Vue.use(Dropdown)
18 | ```
19 |
20 | ```bash
21 | // local
22 | components: { Dropdown }
23 | ```
24 |
25 | Use:
26 | ```vue
27 |
28 | Custom btn
29 | Custom icon
30 | Custom body
31 |
32 | ```
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bp-vuejs-dropdown",
3 | "version": "2.1.1",
4 | "description": "dropdown with auto positioning for vuejs",
5 | "repository": {
6 | "type": "git",
7 | "url": "git+https://github.com/borisbutenko/bp-vuejs-dropdown.git"
8 | },
9 | "keywords": [
10 | "vuejs",
11 | "vue",
12 | "component",
13 | "dropdown"
14 | ],
15 | "author": "Boris Butenko",
16 | "license": "MIT",
17 | "bugs": {
18 | "url": "https://github.com/borisbutenko/bp-vuejs-dropdown/issues"
19 | },
20 | "homepage": "https://brandquad.github.io/bp-vuejs-demo/#/dropdown",
21 | "dependencies": {
22 | "vue": "^2.5.13",
23 | "vue-template-compiler": "^2.5.13"
24 | },
25 | "main": "Dropdown.vue",
26 | "scripts": {
27 | "build": "webpack --progress --colors"
28 | },
29 | "devDependencies": {
30 | "babel-core": "^6.26.0",
31 | "babel-loader": "^7.1.2",
32 | "babel-plugin-syntax-jsx": "^6.18.0",
33 | "babel-plugin-transform-runtime": "^6.23.0",
34 | "babel-plugin-transform-vue-jsx": "^3.5.0",
35 | "babel-preset-env": "^1.6.1",
36 | "babel-preset-stage-2": "^6.24.1",
37 | "css-loader": "^0.28.7",
38 | "extract-text-webpack-plugin": "^3.0.2",
39 | "optimize-css-assets-webpack-plugin": "^3.2.0",
40 | "postcss-cssnext": "^3.0.2",
41 | "postcss-import": "^11.0.0",
42 | "vue-loader": "^13.6.2",
43 | "webpack": "^3.10.0"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------