Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

ant design table组件的dataSource里加了children,点击无法展开

如何所示, 每一个分页的第一条数据都不能展开(点击+号没有任何反应), 其他数据正常! 本地不会有这样问题,只有在测试环境有~急死我了!
求大神指教,DOM结构里是有children节点的, 只是display:none了;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

父级的key我改成了index + 1就可以了,问题出在key上


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...