Skip to content

Commit a4c82d7

Browse files
committed
current row color
1 parent 1e28c3f commit a4c82d7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/assets/stylus/main.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ table.v-table
1515
tbody
1616
tr
1717
cursor:pointer !important
18+
&.current-row
19+
background-color: #ddd
1820
&.row-active
1921
// box-shadow:4px -1px 0px 0px rgb(76, 175, 80) inset
2022
&.row-inactive

src/crud/components/DataTableRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
},
112112
currentClass(itemId) {
113113
let currentId = this.currentItemId
114-
return itemId == currentId ? 'secondary' : ''
114+
return itemId == currentId ? 'current-row' : ''
115115
},
116116
rowDblclickAction(item, index) {
117117
if(this.editButton){

0 commit comments

Comments
 (0)