添加二级评论多个的时候的逻辑,默认每次点击出现5条

This commit is contained in:
2026-01-16 19:29:42 +08:00
parent 7fa124d45f
commit ac0d9584d8
5 changed files with 57 additions and 21 deletions

View File

@@ -15,7 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, KBAIReplyFooterState) {
KBAIReplyFooterStateHidden, // 无二级评论,不显示
KBAIReplyFooterStateExpand, // 显示"展开x条回复"(折叠状态)
KBAIReplyFooterStateCollapse // 显示"收起"(展开状态
KBAIReplyFooterStateLoadMore, // 显示"展开更多回复"(部分展开
KBAIReplyFooterStateCollapse // 显示"收起"(全部展开)
};
/// 一级评论模型
@@ -75,8 +76,9 @@ typedef NS_ENUM(NSInteger, KBAIReplyFooterState) {
/// 获取当前 Footer 状态
- (KBAIReplyFooterState)footerState;
/// 展开全部回复
- (void)expandAllReplies;
/// 加载更多回复(每次加载指定数量)
/// @param count 本次加载的数量
- (void)loadMoreReplies:(NSInteger)count;
/// 收起所有回复
- (void)collapseReplies;