Files
keyboard/keyBoard/Class/Home/V/HomeRankCardCell.h

31 lines
716 B
C
Raw Normal View History

2025-11-06 19:51:50 +08:00
//
// HomeRankCardCell.h
// keyBoard
//
// Created by Codex on 2025/11/06.
//
#import <UIKit/UIKit.h>
2025-12-03 19:19:20 +08:00
#import "KBCharacter.h"
2025-11-06 19:51:50 +08:00
NS_ASSUME_NONNULL_BEGIN
/// 首页排行榜卡片 Cell两列
@interface HomeRankCardCell : UICollectionViewCell
2025-12-03 19:19:20 +08:00
/// 当前展示的角色模型
@property (nonatomic, strong, nullable) KBCharacter *character;
2025-11-06 19:51:50 +08:00
/// 点击加号/勾选按钮回调
@property (nonatomic, copy, nullable) void (^onTapAction)(void);
2025-12-03 19:19:20 +08:00
/// 旧的配置方法(兼容用,不推荐继续使用)
2025-11-06 19:51:50 +08:00
- (void)configureWithTitle:(NSString *)title
desc:(NSString *)desc
people:(NSString *)people
added:(BOOL)added;
@end
NS_ASSUME_NONNULL_END