diff --git a/packages/collapse-item/index.ts b/packages/collapse-item/index.ts index 3799d8f8..dbd5354f 100644 --- a/packages/collapse-item/index.ts +++ b/packages/collapse-item/index.ts @@ -41,10 +41,13 @@ VantComponent({ this.updateExpanded() .then(nextTick) .then(() => { - this.set({ transition: true }); - }) - .then(() => { - this.onTransitionEnd(); + const data: Record = { transition: true }; + + if (this.data.expanded) { + data.contentHeight = 'auto'; + } + + this.set(data); }); },