Skip to content

对 List 自动滚动实现的方案的讨论 #1062

@AqingCyan

Description

@AqingCyan

开发团队你好!十分感激有这样的组件库出现帮助我提升了业务效率。但最近有一些疑问想要讨论。

看到 antx 对于正在文本输出时,会通过 onUpdate 的回调触发外层组件调用向下滚动保持最新内容能一直出现在视线范围内。这种方式十分精准,但是我想到这种方式这让两个组件的解耦度降低。

另外,是否有考虑直接通过 observer 来直接监控 scrollHeight 的变化来判断是否要往下滚动?我认为这种方式可以不依赖触发外部调用的方式,实现解耦。为何没有采用这种方式?想知道没有采用是出于什么考虑。

辛苦团队解答 🙏。

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions