Files
keyboard/keyBoard/Class/Home/V/KBTopThreeView.h
2025-12-04 19:12:34 +08:00

29 lines
967 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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