在调试里看到已经请求到了数据,在wxml里AtList也渲染了,但是点击手风琴时无法显示出来。
<AtTabsPane key={i} current={this.state.current} index={i} >
{
list[`type_${i}`].map(e => (
<AtAccordion key={e.id} title={e.name} onClick={this.handleClick2.bind(this)}>
<AtList hasBorder={false}>
{
e.guides && e.guides.map(a => (
<AtListItem
key={a.id}
onClick={this.handleItemClick.bind(this, a.id)}
title={a.name}
/>
))
}
</AtList>
</AtAccordion>
))
}
</AtTabsPane>
感觉是bug,你把open属性固定为true,应该就能正常使用了