antvis/G6

导出图片文件名后跟着格式名 #4913

iahu posted onGitHub

问题描述

比如调用 graph.downloadImage('hello-world', 'image/png') 弹出的保存文件的对话框里文件名会是 hello-worldpng

重现链接

https://codesandbox.io/s/friendly-hill-npk2zx?file=/src/App.js

重现步骤

点击 'Download Image' 按钮

预期行为

不要附带格式名

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


我编译不过你们的项目,你们有时间自己改一下吧。

posted by iahu over 1 year ago

hi @Yanyan-Wang ,这个问题有进展吗

posted by iahu over 1 year ago

你提的 pr 已经发布了小版本🎉~ v4.8.22

posted by Yanyan-Wang over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests