diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md
index a6c2f6df..2c2ec7d5 100644
--- a/example/docs/zh-CN/guide/changelog.md
+++ b/example/docs/zh-CN/guide/changelog.md
@@ -19,6 +19,7 @@
[新增] notice-bar 通告栏。
[新增] scroll 虚拟滚动组件。
[新增] transition 过渡动画组件。
+ [新增] collapse 折叠面板过渡动画。
[新增] table 表格组件 excel 导出工具栏。
[新增] table column 选项 sort 属性, 开启字段排序。
[新增] page 分页组件 v-model 属性, 支持默认页设置。
diff --git a/src/component/collapseItem/index.vue b/src/component/collapseItem/index.vue
index c77f9ec8..cc4c3291 100644
--- a/src/component/collapseItem/index.vue
+++ b/src/component/collapseItem/index.vue
@@ -39,7 +39,10 @@ const showHandle = function () {
// 普通折叠面板 --> 展开
activeValues.value.push(props.id);
}
- emit("update:modelValue",accordion ? activeValues.value[0] || null : activeValues.value);
+ emit(
+ "update:modelValue",
+ accordion ? activeValues.value[0] || null : activeValues.value
+ );
emit("change", props.id, !_isShow, activeValues.value);
};
diff --git a/src/component/transition/index.vue b/src/component/transition/index.vue
index 5577c015..4d000300 100644
--- a/src/component/transition/index.vue
+++ b/src/component/transition/index.vue
@@ -59,7 +59,11 @@ const beforeLeave = (el: any) => {
el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.dataset.oldOverflow = el.style.overflow;
var computedStyle = getComputedStyle(el, null);
- el.style.height = el.scrollHeight - parseInt(computedStyle.paddingTop) - parseInt(computedStyle.paddingBottom) + "px";
+ el.style.height =
+ el.scrollHeight -
+ parseInt(computedStyle.paddingTop) -
+ parseInt(computedStyle.paddingBottom) +
+ "px";
el.style.overflow = "hidden";
};