Skip to content

Commit

Permalink
V2.8.2
Browse files Browse the repository at this point in the history
修复行 key 为 0 时,行高亮失效的问题
  • Loading branch information
huangshuwei committed Sep 26, 2021
1 parent 5a0ccc5 commit f5b7800
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGE-LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Vx.x.x(TPL)
- Style
- Dependencies Changes

V2.8.2

### Bug Fixes

- 修复行 key 为 0 时,行高亮失效的问题

V2.8.1

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-easytable",
"version": "2.8.1",
"version": "2.8.2",
"main": "libs/main.js",
"description": "Vue table component",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import VeSelect from './ve-select';
import VeTable from './ve-table';


const version = '2.8.1';
const version = '2.8.2';
const components = [
VeCheckbox,
VeCheckboxGroup,
Expand Down
3 changes: 2 additions & 1 deletion packages/ve-table/src/body/body-tr.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { clsName } from "../util";
import { COMPS_NAME, EMIT_EVENTS, COMPS_CUSTOM_ATTRS } from "../util/constant";
import VueDomResizeObserver from "../../../src/comps/resize-observer";
import emitter from "../../../src/mixins/emitter";
import { isEmptyValue } from "../../../src/utils";
export default {
name: COMPS_NAME.VE_TABLE_BODY_TR,
mixins: [emitter],
Expand Down Expand Up @@ -141,7 +142,7 @@ export default {

let isHighlight = false;

if (highlightRowKey) {
if (!isEmptyValue(highlightRowKey)) {
if (highlightRowKey === currentRowKey) {
isHighlight = true;
}
Expand Down

0 comments on commit f5b7800

Please sign in to comment.