add RATreeView as source

This commit is contained in:
王劲鹏
2021-07-16 15:03:23 +08:00
committed by osborn
parent 91e72eddb2
commit 502d731489
32 changed files with 3636 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
//
// RABatchChangesEntity.h
// RATreeView
//
// Created by Rafal Augustyniak on 17/11/15.
// Copyright © 2015 Rafal Augustyniak. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RABatchChangeType) {
RABatchChangeTypeItemRowInsertion = 0,
RABatchChangeTypeItemRowExpansion,
RABatchChangeTypeItemRowDeletion,
RABatchChangeTypeItemRowCollapse,
RABatchChangeTypeItemMove
};
@interface RABatchChangeEntity : NSObject
@property (nonatomic) RABatchChangeType type;
@property (nonatomic) NSInteger ranking;
@property (nonatomic, copy) void(^updatesBlock)();
+ (instancetype)batchChangeEntityWithBlock:(void(^)())updates type:(RABatchChangeType)type ranking:(NSInteger)ranking;
@end