Skip to content

When expandedRowRender, scroll was not used, but an error was reported #3935

@nickolboy

Description

@nickolboy
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.2

Environment

chrome,vue2.6.12

Steps to reproduce

使用了expandedRowRender,但没有用到scroll,没有配置

What is actually happening?

报错,props.scroll.x
调试了代码

warning(
!props.expandedRowRender || !('scroll' in props) || !props.scroll.x,
'expandedRowRender and scroll are not compatible. Please use one of them at one time.',
);

这里props中有scroll,值为undefined,于是props.scroll.x报错

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions