fix: table warning #1267

pull/1272/head
tanjinzhou 2019-10-11 18:25:23 +08:00
parent ef16772a80
commit 6c9de7146c
1 changed files with 1 additions and 1 deletions

View File

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