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

[Feature Request] uploader组件的预览图可以让图片显示为文件样式 #13038

Open
KamchanHe opened this issue Jul 31, 2024 · 0 comments
Assignees

Comments

@KamchanHe
Copy link

What problem does this feature solve?

截屏2024-07-31 10 54 46 uploader的预览模式默认是只有正方形的,但是有时候上传文件,是希望横向占据一整行的,虽然可以自行通过css调整,但是file的type为image属性时,就被默认强制渲染为图片布局,这样好难去通过外部实现样式的统一

What does the proposed API look like?

希望可以通过已有的isImage属性 判断是否Boolean,如果传入的false也可以实现渲染为文件模式,如果不传入,就用回原来的逻辑就行了

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

No branches or pull requests

2 participants