File tree Expand file tree Collapse file tree 3 files changed +45
-13
lines changed
src/view/components/tree-table Expand file tree Collapse file tree 3 files changed +45
-13
lines changed Original file line number Diff line number Diff line change 2424 "js-cookie" : " ^2.2.0" ,
2525 "simplemde" : " ^1.11.2" ,
2626 "sortablejs" : " ^1.7.0" ,
27- "tree-table-vue" : " ^1.0.5 " ,
27+ "tree-table-vue" : " ^1.1.0 " ,
2828 "vue" : " ^2.5.10" ,
2929 "vue-i18n" : " ^7.8.0" ,
3030 "vue-router" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 44 树状表格组件tree-table-vue,基于<a href =" https://github.com/MisterTaki/vue-table-with-tree-grid" >vue-table-with-tree-grid</a >进行开发,修复了一些bug,添加了一些新属性
55 <p ><b >支持使用slot-scope进行自定义列渲染内容</b ></p >
66 <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" >
88 <template slot="likes" slot-scope="scope">
99 <Button @click =" handle(scope)" >123</Button >
1010 </template >
@@ -20,22 +20,22 @@ export default {
2020 return {
2121 columns: [
2222 {
23- label : ' name' ,
24- prop : ' name' ,
23+ title : ' name' ,
24+ key : ' name' ,
2525 width: ' 400px'
2626 },
2727 {
28- label : ' sex' ,
29- prop : ' sex' ,
28+ title : ' sex' ,
29+ key : ' sex' ,
3030 minWidth: ' 50px'
3131 },
3232 {
33- label : ' score' ,
34- prop : ' score'
33+ title : ' score' ,
34+ key : ' score'
3535 },
3636 {
37- label : ' likes' ,
38- prop : ' likes' ,
37+ title : ' likes' ,
38+ key : ' likes' ,
3939 minWidth: ' 200px' ,
4040 type: ' template' ,
4141 template: ' likes'
You can’t perform that action at this time.
0 commit comments