|
|
@ -490,13 +490,15 @@ export default {
|
|
|
|
return getPopupContainer;
|
|
|
|
return getPopupContainer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Use undefined to let rc component use default logic.
|
|
|
|
// Use undefined to let rc component use default logic.
|
|
|
|
return scroll && table ? () => table.tableNode : undefined;
|
|
|
|
return scroll && table ? () => table.getTableNode() : undefined;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scrollToFirstRow() {
|
|
|
|
scrollToFirstRow() {
|
|
|
|
const { scroll } = this.$props;
|
|
|
|
const { scroll } = this.$props;
|
|
|
|
if (scroll && scroll.scrollToFirstRowOnChange !== false) {
|
|
|
|
if (scroll && scroll.scrollToFirstRowOnChange !== false) {
|
|
|
|
scrollTo(0, {
|
|
|
|
scrollTo(0, {
|
|
|
|
getContainer: () => this.$refs.vcTable.bodyTable,
|
|
|
|
getContainer: () => {
|
|
|
|
|
|
|
|
return this.$refs.vcTable.getBodyTable();
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|