Skip to content

Commit

Permalink
fix(CellGroup): resolved updateLastChid is triggered multiple times (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Aug 18, 2023
1 parent 295dfd3 commit a87218b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cell-group/cell-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export default class CellGroup extends SuperComponent {
relations: RelationsOptions = {
'../cell/cell': {
type: 'child',
linked() {
this.updateLastChid();
},
},
};

Expand All @@ -35,6 +32,12 @@ export default class CellGroup extends SuperComponent {
classPrefix: name,
};

lifetimes = {
ready() {
this.updateLastChid();
},
};

methods = {
updateLastChid() {
const items = this.$children;
Expand Down

0 comments on commit a87218b

Please sign in to comment.