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

[Upload] 单图片手动上传报警告 #3045

Open
Loinver opened this issue Jan 18, 2024 · 5 comments
Open

[Upload] 单图片手动上传报警告 #3045

Loinver opened this issue Jan 18, 2024 · 5 comments
Assignees
Labels
type/typescript the issue about type/typescript

Comments

@Loinver
Copy link

Loinver commented Jan 18, 2024

tdesign-vue 版本

1.8.4

重现链接

https://stackblitz.com/edit/eujnlr?file=src%2Fdemo.vue

重现步骤

单图片手动上传时,控制台报警告“Invalid prop: type check failed for prop "src". Expected String, Object, got File ”

期望结果

不报警告

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

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

Copy link
Contributor

♥️ 有劳 @chaishi @ctudoudou @uyarn @brianzhang @byq1213 @chaishi 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Loinver

@Loinver
Copy link
Author

Loinver commented Jan 18, 2024

因为上传时需要预览,所以这里的t-image的src这里type不是一个string或object

@uyarn
Copy link
Collaborator

uyarn commented Jan 19, 2024

这里是因为SSR的场景问题,定义为File的类型SSR环境会报错,暂时没有合适的方式处理

@uyarn uyarn added the type/typescript the issue about type/typescript label Jan 19, 2024
@MarkGor
Copy link

MarkGor commented Jul 15, 2024

同樣的問題,autoUpload也一樣。
有沒可能通過傳入參數判斷是否需要支持SSR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/typescript the issue about type/typescript
Projects
None yet
Development

No branches or pull requests

4 participants