add hover-highlight prop in Table

This commit is contained in:
Lawrence Lee 2017-06-07 14:19:31 +08:00
parent af43876007
commit 2474ee5929
6 changed files with 7596 additions and 9 deletions

View file

@ -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) {