Showing
1 changed file
with
4 additions
and
1 deletions
| @@ -34,7 +34,9 @@ export struct FollowListDetailUI { | @@ -34,7 +34,9 @@ export struct FollowListDetailUI { | ||
| 34 | if (arr[1] == "0") { | 34 | if (arr[1] == "0") { |
| 35 | this.data.getDataArray().forEach((element, index) => { | 35 | this.data.getDataArray().forEach((element, index) => { |
| 36 | if (element.creatorId === arr[0]) { | 36 | if (element.creatorId === arr[0]) { |
| 37 | - this.data.deleteItem(index) | 37 | + animateTo({}, () => { |
| 38 | + this.data.deleteItem(index); | ||
| 39 | + }); | ||
| 38 | this.count = this.data.size() | 40 | this.count = this.data.size() |
| 39 | } | 41 | } |
| 40 | }); | 42 | }); |
| @@ -92,6 +94,7 @@ export struct FollowListDetailUI { | @@ -92,6 +94,7 @@ export struct FollowListDetailUI { | ||
| 92 | ListItem() { | 94 | ListItem() { |
| 93 | FollowChildComponent({ data: item, type: this.type }) | 95 | FollowChildComponent({ data: item, type: this.type }) |
| 94 | } | 96 | } |
| 97 | + .transition(TransitionEffect.OPACITY) | ||
| 95 | }, (item: FollowListDetailItem) => item.creatorId) | 98 | }, (item: FollowListDetailItem) => item.creatorId) |
| 96 | 99 | ||
| 97 | //没有更多数据 显示提示 | 100 | //没有更多数据 显示提示 |
-
Please register or login to post a comment