You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

45 lines
1.1 KiB

//
// TFNovelDownloadManagerCell.h
// TFReader
//
// Created by 谢腾飞 on 2020/12/16.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TFNovelDownloadTaskListModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^OpenBookBlock)(NSString *book_id);
typedef void(^CellSelectBlock)(NSInteger production_id);
@interface TFNovelDownloadManagerCell : TFBasicTableViewCell
@property (nonatomic ,copy) CellSelectBlock cellSelectBlock;
@property (nonatomic ,strong) TFProductionModel *productionModel;
@property (nonatomic ,copy) OpenBookBlock openBookBlock;
@property (nonatomic ,strong) UIButton *openBook;
@property (nonatomic ,assign, readonly) BOOL isEditting;
@property (nonatomic ,assign, readonly) BOOL isSelected;
/// 选择编辑单元
@property (nonatomic ,copy) void(^selecteEdittingCellBlock)(TFProductionModel *productionModel, BOOL isSelected);
- (void)setEditing:(BOOL)editing;
// 强行设置编辑状态
- (void)set_Editting:(BOOL)editting;
// 切换选中状态
- (void)switchSelectedState:(BOOL)state;
@end
NS_ASSUME_NONNULL_END