From f54cfa561c24b07982c73b463bce03783c26266b Mon Sep 17 00:00:00 2001 From: jarmywang Date: Tue, 16 Jul 2024 16:12:39 +0800 Subject: [PATCH] fix(Cell): fixed dynamic adding cells not showing border --- src/cell-group/cell-group.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cell-group/cell-group.ts b/src/cell-group/cell-group.ts index f60fd2e2c..970277d36 100644 --- a/src/cell-group/cell-group.ts +++ b/src/cell-group/cell-group.ts @@ -12,6 +12,9 @@ export default class CellGroup extends SuperComponent { relations: RelationsOptions = { '../cell/cell': { type: 'child', + linked() { + this.updateLastChid(); + }, }, }; @@ -28,12 +31,6 @@ export default class CellGroup extends SuperComponent { classPrefix: name, }; - lifetimes = { - ready() { - this.updateLastChid(); - }, - }; - methods = { updateLastChid() { const items = this.$children;