Skip to content

Commit 3a226c9

Browse files
committed
changed project structure and build using Vue CLI
bugfix when multiple tables were on the same page 1.2.1 release
1 parent e709990 commit 3a226c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+53109
-11217
lines changed

.babelrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.gitignore

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
.DS_Store
22
node_modules
3-
build
4-
npm-debug.log
5-
.idea
3+
#/dist
4+
dist/demo.html
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?
23+
yarn.lock
24+
yarn-error.log

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
### 1.2.1 (May 22, 2019)
4+
5+
* changed project structure and build using Vue CLI
6+
* bugfix when multiple tables were on the same page
7+
38
### 1.2.0 (May 21, 2019)
49

510
* Support for column slots

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
vue-bootstrap-table is a sortable and searchable table, with Bootstrap styling, for Vue.js.
44

5-
### VUE 2.6.0 : 1.2.0 (column slots support, Bootstrap v4.3.1)
5+
### Vue 2.6.0 : 1.2.1 (column slots support, Bootstrap v4.3.1)
66

7-
### VUE < 2.6.0: 1.1.13 (Bootstrap v3)
7+
### Vue < 2.6.0: 1.1.13 (Bootstrap v3)
88

99
### Vue 1 : [jbaysolutions/vue-bootstrap-table](https://github.com/jbaysolutions/vue-bootstrap-table)
1010

@@ -54,14 +54,40 @@ TODO UPDATE CHANGELOG
5454

5555
## Installation
5656

57-
Install the vue-bootstrap-table [package](https://www.npmjs.org/package/vue2-bootstrap-table2) package using [npm](https://www.npmjs.com/):
57+
#### [npm](https://www.npmjs.org/package/vue2-bootstrap-table2)
5858

59-
npm install vue2-bootstrap-table2
59+
# install with npm
60+
npm install vue2-bootstrap-table2 --save
61+
62+
# install with yarn
63+
yarn add vue2-bootstrap-table2
6064

6165

62-
Or add the js script to your html (download from [releases](https://github.com/jbaysolutions/vue2-bootstrap-table/releases)):
63-
64-
<script src="vue-bootstrap-table.js"></script>
66+
Import the library
67+
68+
```javascript
69+
import VueBootstrapTable from "vue2-bootstrap-table2";
70+
```
71+
72+
Add to other Vue components
73+
74+
```javascript
75+
export default {
76+
components: {
77+
VueBootstrapTable: VueBootstrapTable,
78+
},
79+
// ... data, methods, mounted (), etc.
80+
}
81+
82+
```
83+
84+
#### browser
85+
86+
Include the browser-ready bundle (download from [releases](https://github.com/jbaysolutions/vue2-bootstrap-table/releases)) in your page. The components will be automatically available.
87+
88+
```html
89+
<script src="vue2-bootstrap-table2.umd.min.js"></script>
90+
```
6591

6692

6793
## Usage

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

dist/vue-bootstrap-table.js

Lines changed: 0 additions & 10496 deletions
This file was deleted.

dist/vue-bootstrap-table.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue-bootstrap-table.min.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)