Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👑 [需求]希望默认ChatItem的actions中的编辑功能支持配置编辑内容后触发请求或暴露回调 #205

Open
HongwuQz opened this issue May 14, 2024 · 1 comment · May be fixed by #208
Assignees
Labels
enhancement New feature or request

Comments

@HongwuQz
Copy link

🥰 需求描述

chatItemRenderConfig中默认的acitons需要在编辑提交的时候将修改内容发送给接口,重新获取数据内容。但目前没有暴露类似的回调或配置

🧐 解决方案

  1. 在另一个actionsConfig中添加onSubmit支持传入编辑提交后执行的回调
  2. 添加triggerRequestOnSubmit: boolean配置项来决定是否触发默认request请求
  3. 将actionsRender函数的入参修改为可操作的配置或可操作node
@ONLY-yours ONLY-yours added the enhancement New feature or request label May 14, 2024
@LCJove LCJove self-assigned this May 30, 2024
@LCJove
Copy link
Collaborator

LCJove commented May 30, 2024

这边准备添加一个回调,考虑到这个回调的时机在 编辑 -> 修改 -> confirm 之后执行,回调添加在 MessageInput 组件中执行
@ONLY-yours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants