Skip to content

Attachments 如何触发某一个item的onClick #1064

@jiangkaifree

Description

@jiangkaifree

我使用 Attachments 来实现在ai对话当中某一次对话中展示文件,它成功展示了文件,但需要点击进行下载,我该如何做。我没找到关于点击当中某一项的 onClick 回调处理。并且我利用 item 当中的 url 属性也达不到下载的效果。

 {
      uid: '1',
      name: 'excel-file.xlsx',
      size: 111111,
     url: 'xxxxxxx'
    },

案例

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions