Skip to content

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

@HongwuQz

Description

@HongwuQz

🥰 需求描述

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

🧐 解决方案

  1. 在另一个actionsConfig中添加onSubmit支持传入编辑提交后执行的回调
  2. 添加triggerRequestOnSubmit: boolean配置项来决定是否触发默认request请求
  3. 将actionsRender函数的入参修改为可操作的配置或可操作node

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions