Commit 69e0ef5d0c25fe29ec8589c6b9f1d274517c9213
Committed by
GitHub
Merge pull request #1138 from lcx960324/2.0
Add disabled-hover prop on Table
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/components/table/table.vue
... | ... | @@ -152,6 +152,9 @@ |
152 | 152 | }, |
153 | 153 | noFilteredDataText: { |
154 | 154 | type: String |
155 | + }, | |
156 | + disabledHover: { | |
157 | + type: Boolean | |
155 | 158 | } |
156 | 159 | }, |
157 | 160 | data () { |
... | ... | @@ -351,10 +354,12 @@ |
351 | 354 | }); |
352 | 355 | }, |
353 | 356 | handleMouseIn (_index) { |
357 | + if (this.disabledHover) return; | |
354 | 358 | if (this.objData[_index]._isHover) return; |
355 | 359 | this.objData[_index]._isHover = true; |
356 | 360 | }, |
357 | 361 | handleMouseOut (_index) { |
362 | + if (this.disabledHover) return; | |
358 | 363 | this.objData[_index]._isHover = false; |
359 | 364 | }, |
360 | 365 | highlightCurrentRow (_index) { | ... | ... |