uView2.0 icon indicating copy to clipboard operation
uView2.0 copied to clipboard

Collapse 折叠面板 不支持嵌套

Open ForeverWorld opened this issue 3 years ago • 1 comments

这个功能解决了什么问题?

嵌套后。子级展开,父级高度未改变,导致子级展开的内容未展示

你期望的 API 是怎样的?

支持嵌套

ForeverWorld avatar Apr 07 '22 03:04 ForeverWorld

请问什么有支持吗?

rich-keeps avatar Jun 20 '22 13:06 rich-keeps

我现在是修改了u-collapse-item.vue这个组件,把这个方法传递进去,就可以用了。 //动画加载完毕(默认300ms)才能够重新设置父折叠面板的高度 handleParentCollapseFunc(){ setTimeout(()=>{this.$refs.item[0].setContentAnimate()},300) }

Qiuyan06 avatar Nov 17 '22 09:11 Qiuyan06