Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-270][iOS]WXListComponent should add reload type of data update #1095

Merged
merged 2 commits into from
Apr 1, 2018

Conversation

bbmjja8123
Copy link
Contributor

@bbmjja8123 bbmjja8123 commented Mar 30, 2018

Currently WXListComponent data update only supports insertRows. This can't be satisfied under some drop-down loading scenes. For example, the pulldown load needs to be positioned to the original position. When the tableView is still decelerating and inserts and tries to fix the position, the cell will blink. Because when decelerating, the externally modified contentOffset will be re-edited by the internal implementation of tableView, altering contentOffset alternately will cause flicker problems. If you use the tableView reloadData this is not a problem, so you need to support the WXListComponent in the drop-down restore location scene to add the reload attribute.

feat:270

First of all, thank you for your contribution!

Please makes sure that these checkboxes are checked before submitting your PR, thank you!

CheckList:

if isBugFix :

  • Make sure that you add at least one unit test for the bug which you had fixed.

elif isNewFeature :

  • Update API docs for the component.
  • Update/Add demo to demonstrate new feature.
  • Update test scripts for the feature.
  • Add unit tests for the feature.

Currently WXListComponent data update only supports insertRows. This can't be satisfied under some drop-down loading scenes. For example, the pulldown load needs to be positioned to the original position. When the tableView is still decaling and inserts and tries to fix the position, the cell will blink. Because when deceiring, the externally modified contentOffset will be re-edited by the internal implementation of tableView, altering contentOffset alternately will cause flicker problems. If you use the tableView reloadData this is not a problem, so you need to support the WXListComponent in the drop-down restore location scene to add the reload attribute.

feat:270
@weex-bot
Copy link

weex-bot commented Mar 30, 2018

Messages
📖 has no android file changed.
📖 android test finished.

Generated by 🚫 dangerJS

…diate load of the appear

WXRefreshComponent current only support the ②, shuold add new type of①.

// ①refreshForAppear: load more when refresh component begin appear(if scroll is dragging or decelerating, should delay)

 // ②refreshForWholeVisible: load more until the whole refresh component visible

NSString *_refreshType;

Improvement:271
@acton393
Copy link
Member

acton393 commented Apr 1, 2018

thank you for your contribution that bring improvement for Weex

@asfgit asfgit merged commit c192766 into apache:master Apr 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants