@@ -28,6 +28,12 @@ export default {
28
28
type: String ,
29
29
default: " table table-bordered text-nowrap" ,
30
30
},
31
+ formatNoMatches: {
32
+ type: Function ,
33
+ default : function () {
34
+ return " " ;
35
+ },
36
+ },
31
37
stickyHeader: {
32
38
type: Boolean ,
33
39
default: true ,
@@ -76,12 +82,22 @@ export default {
76
82
stickyHeader: this .stickyHeader ,
77
83
treeShowField: this .treeShowField ,
78
84
parentIdField: this .parentIdField ,
85
+ rowStyle: this .rowStyle ,
79
86
onPostBody : () => this .$emit (" onPostBody" , treeGrid),
80
87
onClickRow : (row , element , field ) =>
81
88
this .$emit (" onClickRow" , { row, element, field }),
89
+ onClickCell : (field , value , row , element ) =>
90
+ this .$emit (" onClickCell" , { field, value, row, element }),
91
+ onDblClickRow : (row , element , field ) =>
92
+ this .$emit (" onDblClickRow" , { row, element, field }),
93
+ onDblClickCell : (field , value , row , element ) =>
94
+ this .$emit (" onDblClickCell" , { field, value, row, element }),
95
+ onExpandRow : (index , row , detail ) =>
96
+ this .$emit (" onExpandRow" , { index, row, detail }),
97
+ onCollapseRow : (index , row , detailView ) =>
98
+ this .$emit (" onCollapseRow" , { index, row, detailView }),
82
99
headerStyle : (column ) => this .$emit (" headerStyle" , column),
83
- rowStyle: this .rowStyle ,
84
- formatNoMatches : () => this .$emit (" formatNoMatches" ),
100
+ formatNoMatches : () => this .formatNoMatches (),
85
101
});
86
102
},
87
103
},
0 commit comments