29 lines
967 B
Objective-C
29 lines
967 B
Objective-C
//
|
||
// KBTopThreeView.h
|
||
// keyBoard
|
||
//
|
||
// 顶部前三名展示视图:内部横向三栏,样式参考设计图。
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
#import "KBCharacter.h"
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
/// 用于 HomeHot 顶部展示前三名的视图
|
||
@interface KBTopThreeView : UIView
|
||
|
||
/// 使用前三名角色模型进行配置(数组元素为 KBCharacter*,最多取前三个)
|
||
- (void)configWithCharacters:(NSArray<KBCharacter *> *)characters;
|
||
|
||
/// 中间卡片底部加号按钮点击回调(传入对应角色模型,可能为 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);
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|