fix: table scroll.x throw error when use expandedRowRender (#3626)

表头固定与展开行不存在冲突,结合使用时不应该报错
pull/3784/head
pengandpeng 2021-02-06 13:46:43 +08:00 committed by GitHub
parent 76d8408045
commit 1031e46926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ export default {
// this.columns = props.columns || normalizeColumns(props.children)
const props = getOptionProps(this);
warning(
!props.expandedRowRender || !('scroll' in props),
!props.expandedRowRender || !('scroll' in props) || !props.scroll.x,
'`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.',
);
this.CheckboxPropsCache = {};