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

[t-upload] 上传图片预览功能反馈 #776

Closed
samchenws opened this issue Apr 21, 2022 · 7 comments
Closed

[t-upload] 上传图片预览功能反馈 #776

samchenws opened this issue Apr 21, 2022 · 7 comments
Assignees
Labels

Comments

@samchenws
Copy link

samchenws commented Apr 21, 2022

tdesign-vue 版本

Vue for Web 0.40.3

重现链接

No response

重现步骤

Theme='image'的时候 点击选择文件的时候 能否先提供预览,而不是上传完后在预览

希望能在 #765 的 基础上增强这个功能

期望结果

Theme='image'的时候 点击选择文件的时候 能否先提供预览,而不是上传完后在预览

实际结果

上传完后在预览

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

👋 @samchenws,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn self-assigned this Apr 21, 2022
@github-actions
Copy link
Contributor

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label May 21, 2022
@github-actions
Copy link
Contributor

此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。

@uyarn uyarn reopened this Jun 28, 2022
@uyarn uyarn removed the Stale label Jun 28, 2022
@github-actions
Copy link
Contributor

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label Jul 29, 2022
@uyarn uyarn removed the Stale label Jul 29, 2022
@github-actions
Copy link
Contributor

这个 Issue 被标记为了过时 stale ,因为它已经持续 30 天没有任何活动了。删除 stale 标签或评论,否则将在 7 天内关闭。

@github-actions github-actions bot added the Stale label Aug 29, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。

@github-actions github-actions bot closed this as completed Sep 6, 2022
@iMacSed
Copy link

iMacSed commented Aug 9, 2024

<t-upload
  :requestMethod="picRequest"
  multiple
  theme="image"
  v-model="tabs.pictures"
/>

function picRequest(files) {
    console.log(files)
    return new Promise((resolve) => {
        resolve({
            status: 'success',
            response: {
                url: URL.createObjectURL(files[0].raw),
            },
        });
    });
}

这样可以在不上传的时候预览

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants