File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<b-card >
3
3
<div slot =" header" v-html =" caption" ></div >
4
- <b-table :dark =" dark" :hover =" hover" :striped =" striped" :bordered =" bordered" :small =" small" :fixed =" fixed" responsive =" sm" :items =" items" :fields =" captions" :current-page =" currentPage" :per-page =" perPage" >
4
+ <b-table :dark =" dark" :hover =" hover" :striped =" striped" :bordered =" bordered" :small =" small" :fixed =" fixed" responsive =" sm" :items =" items" :fields =" captions" :current-page =" currentPage" :per-page =" perPage" @row-clicked = " rowClicked " >
5
5
<template slot="status" slot-scope="data">
6
6
<b-badge :variant =" getBadge(data.item.status)" >{{data.item.status}}</b-badge >
7
7
</template >
@@ -82,6 +82,9 @@ export default {
82
82
},
83
83
getRowCount : function () {
84
84
return this .items .length
85
+ },
86
+ rowClicked (item ) {
87
+ this .$emit (' row-clicked' , item)
85
88
}
86
89
}
87
90
}
You can’t perform that action at this time.
0 commit comments