Skip to content

Commit 2f1a78d

Browse files
authored
修复u-collapse-item组件的body高度无法跟随content变化
u-collapse-item组件的body为固定高度,当其content高度为可变(如可折叠、展开)时会出现不一致
1 parent 376d3b7 commit 2f1a78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uview-ui/components/u-collapse-item/u-collapse-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<slot v-else name="title-all" />
1616
</view>
1717
<view class="u-collapse-body" :style="[{
18-
height: isShow ? height + 'px' : '0'
18+
height: isShow ? 'auto' : '0'
1919
}]">
2020
<view class="u-collapse-content" :id="elId" :style="[bodyStyle]">
2121
<slot></slot>

0 commit comments

Comments
 (0)