Merged
Conversation
Collaborator
KIPPUDESU
commented
Mar 27, 2026
- 逻辑重构:全面使用 Vue 指令(@drAg)替代原有的 onMounted 手动监听
- 解决 v-if 导致的动画失效问题
- 功能增强:添加拖拽区域的国际化文本支持
- 状态优化:重构 upload-stores,优化文件/图片拖拽时的状态感应与数据包装逻辑
- 添加了文本的国家化支持 - 删除了冗余的文本注释 - 修改拖拽遮罩的父元素显示方式 从 v-if 改为 v-show,确保过度动画生效
- 将 `upload-file` 和 `upload-image` store 中用于暂存拖拽文件的 `useDropFiles` 和 `useDropImages` 更变为更易读的文件名,并且设置两个暴露接口确保了安全性 - 删除了拖拽页面的大小校验,让用户直接跳转到文件上传页接受警告
把注册的拖拽方法(钩子)删除,换成 Vue 提供的更简洁的方法
haruki1953
reviewed
Mar 27, 2026
haruki1953
reviewed
Mar 27, 2026
Member
haruki1953
left a comment
There was a problem hiding this comment.
好棒好棒,我也是第一次review,话说你知道如何让review时能直接修改吗,我也不知道(
haruki1953
reviewed
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.