1.设置ref
<u-collapse ref="collapse_haha" :item-style="itemStyle" :head-style="headStyle">
2.更新完数据后,重新布局
this.$nextTick(() => {
this.$refs.collapse_haha.init()
})
官方文档解释:
1.设置ref
<u-collapse ref="collapse_haha" :item-style="itemStyle" :head-style="headStyle">
2.更新完数据后,重新布局
this.$nextTick(() => {
this.$refs.collapse_haha.init()
})
官方文档解释: