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

表头固定与展开行不存在冲突,结合使用时不应该报错
pull/3784/head
pengandpeng 4 years ago committed by GitHub
parent 76d8408045
commit 1031e46926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save