Merge pull request #1138 from lcx960324/2.0

Add disabled-hover prop on Table
This commit is contained in:
Aresn 2017-06-09 17:37:36 +08:00 committed by GitHub
commit 69e0ef5d0c

View file

@ -152,6 +152,9 @@
}, },
noFilteredDataText: { noFilteredDataText: {
type: String type: String
},
disabledHover: {
type: Boolean
} }
}, },
data () { data () {
@ -351,10 +354,12 @@
}); });
}, },
handleMouseIn (_index) { handleMouseIn (_index) {
if (this.disabledHover) return;
if (this.objData[_index]._isHover) return; if (this.objData[_index]._isHover) return;
this.objData[_index]._isHover = true; this.objData[_index]._isHover = true;
}, },
handleMouseOut (_index) { handleMouseOut (_index) {
if (this.disabledHover) return;
this.objData[_index]._isHover = false; this.objData[_index]._isHover = false;
}, },
highlightCurrentRow (_index) { highlightCurrentRow (_index) {