File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ks-labs/treegrid" ,
3
- "version" : " 0.0.10 " ,
3
+ "version" : " 0.0.11 " ,
4
4
"author" : " Victor Lessa victordsgnr@gmail.com" ,
5
5
"main" : " src/wrapper.js" ,
6
6
"module" : " dist/vue-treegrid.esm.js" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <table id =" tree " ></table >
2
+ <table : id =" treeId " ></table >
3
3
</template >
4
4
5
5
<script >
6
6
import " ./assets/js/jquery.treegrid" ;
7
7
export default {
8
8
name: " treegrid" ,
9
9
props: {
10
+ treeId: {
11
+ type: String ,
12
+ default: " tree" ,
13
+ },
10
14
columns: {
11
15
type: Array ,
12
16
required: true ,
@@ -71,7 +75,7 @@ export default {
71
75
},
72
76
methods: {
73
77
treeGrid () {
74
- const treeGrid = $ (" #tree " );
78
+ const treeGrid = $ (` # ${ this . treeId } ` );
75
79
treeGrid .bootstrapTable ({
76
80
data: this .rows ,
77
81
idField: this .idField ,
You can’t perform that action at this time.
0 commit comments