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.5k views
in Technique[技术] by (71.8m points)

antd Popover 里面添加点击事件不能带参???

<Popover content={menu1} trigger="click">
    <Button size="small"onClick={()=>this.onclikchangeGood(item)}>更改</Button>
</Popover>

为什么不能传参?!怎么解决


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

1 Answer

0 votes
by (71.8m points)

你控制气泡弹出的变量要通过this.setState()赋值,通过修改state触发render


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

...