Skip to content

Conversation

wcurly
Copy link

@wcurly wcurly commented Sep 8, 2025

背景

在业务场景中需要对loadMore对样式进行自定义的改造,如图。

Image

但是当前只支持更改loadMoreText,不支持对整体样式进行修改。
如果用 renderBeforeMessageList 替代会有如下问题:

  • 需要重新手动实现点击/下拉刷新和滚动等一系列逻辑
  • renderBeforeMessageList原本仅用于显示静态内容,这样会被用于非设计目的,职责混乱

更改

在loadMoreText增加传入(onLoadMore: () => void) => React.ReactNode的类型,可支持传入自定义的样式。

@CLAassistant
Copy link

CLAassistant commented Sep 8, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants