add hover-highlight prop in Table
This commit is contained in:
parent
af43876007
commit
2474ee5929
6 changed files with 7596 additions and 9 deletions
|
@ -152,6 +152,9 @@
|
|||
},
|
||||
noFilteredDataText: {
|
||||
type: String
|
||||
},
|
||||
hoverHighlight: {
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -351,10 +354,12 @@
|
|||
});
|
||||
},
|
||||
handleMouseIn (_index) {
|
||||
if (!this.hoverHighlight) return;
|
||||
if (this.objData[_index]._isHover) return;
|
||||
this.objData[_index]._isHover = true;
|
||||
},
|
||||
handleMouseOut (_index) {
|
||||
if (!this.hoverHighlight) return;
|
||||
this.objData[_index]._isHover = false;
|
||||
},
|
||||
highlightCurrentRow (_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue