arco-design-vue
arco-design-vue copied to clipboard
建议upload组件增加on-before-preview事件,允许用户定制是否可预览或者其他预览逻辑
- [x] I'm sure this does not appear in the issue list of the repository
基本信息
现有案例
无
预期解决问题
当前upload提供的preview事件插槽,只能记录回调却不能阻止用户展示图片
我这边上传的文件包括pdf、word、图片,用户反映pdf、word也能弹出预览,实际上image-preview不支持。
如果能有on-before-preview这个插槽,我可以去做下判断。拦截非图片对image-preview组件的调用。