如何从模态和表单中编辑和更新蚂蚁设计表的数据
我在这里有问题,任何人都可以帮助我吗?我在这里在蚂蚁设计表上遇到了麻烦,在此表数据中,我想创建,读取,更新和删除数据。创建,阅读和删除一直很好,我可以成功地做到这一点,但是在编辑数据上,我无法弄清楚。
数据已经通过Axios获取并获取,并将其填充到表中。
要在按钮“添加新数据”按钮时创建数据,将会有一种模式,其形式的形式如下图。
删除数据,将按钮按下删除按钮。还可以弹出确认
。 gv9e4.png“ alt =” delete确认“>
我可以成功地做到这一点,但是在编辑数据上,我无法弄清楚如何。因为我无法获取数据并更新了数据。请帮助我,这是沙盒代码 https://codesandbox.io/ s/cattledata-9l2irf?file =/src/cattledata.js
谢谢您,我感谢您的帮助。
I have a problem here please anyone can help me? I have a trouble with Ant Design table here, in this table data I wanted to Create, Read, Update and Delete a data. Create, Read and Delete has been good and I can do it successfully, but on Edit data I couldn't figure it out.
The Data is already get and fetch by axios and fill it into the table.
To Create data when button "Add New Data' is pushed, there will be pop out a modals with form of creating new data like this picture below.
To Delete a data, when Delete Button is pushed there will be also pop out a confirmation pop out.
From this I can do it successfully, but on Edit data I couldn't figure it out how. Because I couldn't get the data and updated it. Please help me, and here's the sandbox code https://codesandbox.io/s/cattledata-9l2irf?file=/src/CattleData.js
Thank you and I would appreciate any helps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论