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

antd 的table在编辑单元格时,不走接口,全部编辑完点击保存按钮,再走接口可以吗?

用的antd的V3版本
https://3x.ant.design/compone...
没找到可以点按钮的方式,都是监听input 的事件,想在点击保存时再走接口,有可以实现的方法或者思路吗?求大佬们围观


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

1 Answer

0 votes
by (71.8m points)

可以啊 编辑完后,直接把table的原data数据给后台;或者根据后台要求整合下就行;

是类似这种嘛

image.png

image.png
你就先简单只放个input


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

...