Skip to content

Commit

Permalink
fix(Cell): fixed dynamic adding cells not showing border
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmywang committed Jul 16, 2024
1 parent 6ae36aa commit f54cfa5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cell-group/cell-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default class CellGroup extends SuperComponent {
relations: RelationsOptions = {
'../cell/cell': {
type: 'child',
linked() {
this.updateLastChid();
},
},
};

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

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

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

0 comments on commit f54cfa5

Please sign in to comment.