Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
helloprogh committed Mar 5, 2023
1 parent 931edea commit 2ea5f64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/table/table-tr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
const objData = this.isChildren ? this.$parent.$parent.getDataByRowKey(this.row._rowKey) : this.objData[_index];
return [
`${this.prefixCls}-row`,
this.rowClsName(_index),
this.rowClsName(objData, _index),
{
[`${this.prefixCls}-row-highlight`]: objData && objData._isHighlight,
[`${this.prefixCls}-row-hover`]: objData && objData._isHover
}
];
},
rowClsName (_index) {
return this.$parent.$parent.rowClassName(this.objData[_index], _index);
rowClsName (objData, _index) {
return this.$parent.$parent.rowClassName(objData, _index);
}
}
};
Expand Down

0 comments on commit 2ea5f64

Please sign in to comment.