2025-11-06 14:59:00 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBTopThreeView.h
|
|
|
|
|
|
// keyBoard
|
|
|
|
|
|
//
|
|
|
|
|
|
// 顶部前三名展示视图:内部横向三栏,样式参考设计图。
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2025-12-03 20:02:37 +08:00
|
|
|
|
#import "KBCharacter.h"
|
2025-11-06 14:59:00 +08:00
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
/// 用于 HomeHot 顶部展示前三名的视图
|
|
|
|
|
|
@interface KBTopThreeView : UIView
|
|
|
|
|
|
|
2025-12-03 20:02:37 +08:00
|
|
|
|
/// 使用前三名角色模型进行配置(数组元素为 KBCharacter*,最多取前三个)
|
|
|
|
|
|
- (void)configWithCharacters:(NSArray<KBCharacter *> *)characters;
|
2025-11-06 14:59:00 +08:00
|
|
|
|
|
2025-12-04 19:12:34 +08:00
|
|
|
|
/// 中间卡片底部加号按钮点击回调(传入对应角色模型,可能为 nil)
|
|
|
|
|
|
@property (nonatomic, copy, nullable) void (^onCenterPlusTapped)(KBCharacter * _Nullable character);
|
|
|
|
|
|
/// 左侧卡片底部加号按钮点击回调
|
|
|
|
|
|
@property (nonatomic, copy, nullable) void (^onLeftPlusTapped)(KBCharacter * _Nullable character);
|
|
|
|
|
|
/// 右侧卡片底部加号按钮点击回调
|
|
|
|
|
|
@property (nonatomic, copy, nullable) void (^onRightPlusTapped)(KBCharacter * _Nullable character);
|
|
|
|
|
|
|
2025-11-06 14:59:00 +08:00
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|