diff --git a/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m b/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m index 197e75e0..32d9d35a 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricFlowLayoutNode.m @@ -240,7 +240,11 @@ - (void)blendView:(UICollectionView *)view forPropName:(NSString *)name propValu } else if ([@"loadMoreView" isEqualToString:name]) { self.loadMoreViewId = prop; } else if ([@"loadMore" isEqualToString:name]) { - self.loadMore = [prop boolValue]; + BOOL loadMore = [prop boolValue]; + if (loadMore != self.loadMore) { + self.loadMore = loadMore; + [self.view reloadData]; + } } else if ([@"onScroll" isEqualToString:name]) { self.onScrollFuncId = prop; } else if ([@"onScrollEnd" isEqualToString:name]) { diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index ad106a94..bb1700c2 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -103,7 +103,7 @@ - (UITableView *)build { }]; } --(void)longPressAction:(UILongPressGestureRecognizer *)sender{ +- (void)longPressAction:(UILongPressGestureRecognizer *)sender { CGPoint locationInView = [sender locationInView:self.view]; NSIndexPath *indexPath = [self.view indexPathForRowAtPoint:locationInView]; if (sender.state == UIGestureRecognizerStateBegan) { @@ -117,7 +117,7 @@ -(void)longPressAction:(UILongPressGestureRecognizer *)sender{ NSString *toValue = self.itemViewIds[@(indexPath.row)]; self.itemViewIds[@(self.currentDragIndexPath.row)] = toValue; self.itemViewIds[@(indexPath.row)] = fromValue; - + [self.view moveRowAtIndexPath:self.currentDragIndexPath toIndexPath:indexPath]; if (self.onDraggingFuncId != nil) { [self callJSResponse:self.onDraggingFuncId, @(self.currentDragIndexPath.row), @(indexPath.row), nil]; @@ -156,7 +156,11 @@ - (void)blendView:(UITableView *)view forPropName:(NSString *)name propValue:(id } else if ([@"loadMoreView" isEqualToString:name]) { self.loadMoreViewId = prop; } else if ([@"loadMore" isEqualToString:name]) { - self.loadMore = [prop boolValue]; + BOOL loadMore = [prop boolValue]; + if (loadMore != self.loadMore) { + self.loadMore = loadMore; + [self.view reloadData]; + } } else if ([@"onScroll" isEqualToString:name]) { self.onScrollFuncId = prop; } else if ([@"onScrollEnd" isEqualToString:name]) {