File tree 3 files changed +45
-13
lines changed
src/view/components/tree-table
3 files changed +45
-13
lines changed Original file line number Diff line number Diff line change 24
24
"js-cookie" : " ^2.2.0" ,
25
25
"simplemde" : " ^1.11.2" ,
26
26
"sortablejs" : " ^1.7.0" ,
27
- "tree-table-vue" : " ^1.0.5 " ,
27
+ "tree-table-vue" : " ^1.1.0 " ,
28
28
"vue" : " ^2.5.10" ,
29
29
"vue-i18n" : " ^7.8.0" ,
30
30
"vue-router" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 4
4
树状表格组件tree-table-vue,基于<a href =" https://github.com/MisterTaki/vue-table-with-tree-grid" >vue-table-with-tree-grid</a >进行开发,修复了一些bug,添加了一些新属性
5
5
<p ><b >支持使用slot-scope进行自定义列渲染内容</b ></p >
6
6
<p >文档请看<a href =" https://github.com/lison16/tree-table-vue" >https://github.com/lison16/tree-table-vue</a ></p >
7
- <tree-table expand-key =" sex" :expand-type =" false" :selection-type =" false" :columns =" columns" :data =" data" >
7
+ <tree-table expand-key =" sex" :expand-type =" false" :selectable =" false" :columns =" columns" :data =" data" >
8
8
<template slot="likes" slot-scope="scope">
9
9
<Button @click =" handle(scope)" >123</Button >
10
10
</template >
@@ -20,22 +20,22 @@ export default {
20
20
return {
21
21
columns: [
22
22
{
23
- label : ' name' ,
24
- prop : ' name' ,
23
+ title : ' name' ,
24
+ key : ' name' ,
25
25
width: ' 400px'
26
26
},
27
27
{
28
- label : ' sex' ,
29
- prop : ' sex' ,
28
+ title : ' sex' ,
29
+ key : ' sex' ,
30
30
minWidth: ' 50px'
31
31
},
32
32
{
33
- label : ' score' ,
34
- prop : ' score'
33
+ title : ' score' ,
34
+ key : ' score'
35
35
},
36
36
{
37
- label : ' likes' ,
38
- prop : ' likes' ,
37
+ title : ' likes' ,
38
+ key : ' likes' ,
39
39
minWidth: ' 200px' ,
40
40
type: ' template' ,
41
41
template: ' likes'
You can’t perform that action at this time.
0 commit comments