Skip to content

Commit f5b7800

Browse files
committed
V2.8.2
修复行 key 为 0 时,行高亮失效的问题
1 parent 5a0ccc5 commit f5b7800

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGE-LOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Vx.x.x(TPL)
77
- Style
88
- Dependencies Changes
99

10+
V2.8.2
11+
12+
### Bug Fixes
13+
14+
- 修复行 key 为 0 时,行高亮失效的问题
15+
1016
V2.8.1
1117

1218
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-easytable",
3-
"version": "2.8.1",
3+
"version": "2.8.2",
44
"main": "libs/main.js",
55
"description": "Vue table component",
66
"keywords": [

packages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import VeSelect from './ve-select';
1212
import VeTable from './ve-table';
1313

1414

15-
const version = '2.8.1';
15+
const version = '2.8.2';
1616
const components = [
1717
VeCheckbox,
1818
VeCheckboxGroup,

packages/ve-table/src/body/body-tr.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { clsName } from "../util";
33
import { COMPS_NAME, EMIT_EVENTS, COMPS_CUSTOM_ATTRS } from "../util/constant";
44
import VueDomResizeObserver from "../../../src/comps/resize-observer";
55
import emitter from "../../../src/mixins/emitter";
6+
import { isEmptyValue } from "../../../src/utils";
67
export default {
78
name: COMPS_NAME.VE_TABLE_BODY_TR,
89
mixins: [emitter],
@@ -141,7 +142,7 @@ export default {
141142

142143
let isHighlight = false;
143144

144-
if (highlightRowKey) {
145+
if (!isEmptyValue(highlightRowKey)) {
145146
if (highlightRowKey === currentRowKey) {
146147
isHighlight = true;
147148
}

0 commit comments

Comments
 (0)