Skip to content

Commit

Permalink
fix(table): use lastFullRow insteadOf $lastFullRow
Browse files Browse the repository at this point in the history
  • Loading branch information
chaishi committed Jul 5, 2022
1 parent 4f940b2 commit 652db4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/table/editable-cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default defineComponent({
row,
(row) => {
let val = get(row, col.value.colKey);
if (typeof val === 'object') {
if (typeof val === 'object' && val !== null) {
val = val instanceof Array ? [...val] : { ...val };
}
editValue.value = val;
Expand Down
2 changes: 1 addition & 1 deletion src/table/tbody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default defineComponent({
trNodeList,
getFullRow(h, columnLength, 'last-full-row'),
];
const isEmpty = !this.data?.length && !this.loading && !this.firstFullRow && !this.$lastFullRow;
const isEmpty = !this.data?.length && !this.loading && !this.firstFullRow && !this.lastFullRow;

const translate = `translate(0, ${this.translateY}px)`;
const posStyle = {
Expand Down

0 comments on commit 652db4f

Please sign in to comment.