baidu / baidu/amis

base 64的图片展示在页面上,需要点击按钮下载它,怎么弄

Open
#7,774 2 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

我页面上展示了一个base64的图片,然后下面有一个下载按钮,需要点击按钮下载这个base64的图片

#### 截图或视频:

![image](https://github.com/baidu/amis/assets/16274637/5a5b0b1b-d12e-48dd-b6ef-c413a9019644)

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
`sdk`、`npm` 或`其他`...

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

3. 粘贴有问题的完整 `amis schema` 代码:
![image](https://github.com/baidu/amis/assets/16274637/05b5d995-d29d-4b19-b437-1de3480ee356)

4. 操作步骤
请简单描述一下复现的操作步骤...

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, version, or complete AMIS schema is provided. Start by reproducing the base64-image display and download-button flow in the AMIS frontend, then identify the relevant component and add a regression test; done means the displayed image downloads when the button is clicked.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.