Merge pull request #1138 from lcx960324/2.0
Add disabled-hover prop on Table
This commit is contained in:
commit
69e0ef5d0c
1 changed files with 5 additions and 0 deletions
|
@ -152,6 +152,9 @@
|
|||
},
|
||||
noFilteredDataText: {
|
||||
type: String
|
||||
},
|
||||
disabledHover: {
|
||||
type: Boolean
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -351,10 +354,12 @@
|
|||
});
|
||||
},
|
||||
handleMouseIn (_index) {
|
||||
if (this.disabledHover) return;
|
||||
if (this.objData[_index]._isHover) return;
|
||||
this.objData[_index]._isHover = true;
|
||||
},
|
||||
handleMouseOut (_index) {
|
||||
if (this.disabledHover) return;
|
||||
this.objData[_index]._isHover = false;
|
||||
},
|
||||
highlightCurrentRow (_index) {
|
||||
|
|
Loading…
Add table
Reference in a new issue