fix: table scroll.x throw error when use expandedRowRender (#3626)
表头固定与展开行不存在冲突,结合使用时不应该报错pull/3784/head
parent
76d8408045
commit
1031e46926
|
@ -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 = {};
|
||||
|
|
Loading…
Reference in New Issue