Skip to content

Conversation

@ArgoZhang
Copy link
Member

@ArgoZhang ArgoZhang commented May 18, 2025

Link issues

fixes #5981

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

Redesign all upload components on a unified base to streamline multi-file and directory uploads, progress and lifecycle callbacks, default file presets, and customizable file icons, while cleaning up obsolete APIs, improving styling, and updating demos and CI configuration.

New Features:

  • Support uploading entire directories via a new IsDirectory parameter
  • Enable multi-file uploads with IsMultiple and MaxFileCount, deprecating IsSingle/Max
  • Allow preset file lists through DefaultFileList and a global OnAllFileUploaded callback
  • Optionally show upload progress per file with ShowProgress and progress update callbacks
  • Expose download and cancel operations per file via OnDownload, OnCancel, and ShowDownloadButton
  • Add custom file format icon support via OnGetFileFormat
  • Extend InputUpload, ButtonUpload, AvatarUpload, CardUpload, and DropUpload to use a unified UploadBase with new capabilities

Enhancements:

  • Refactor all upload components to inherit from a single UploadBase, removing duplicate base classes
  • Deprecate old IsSingle/Max parameters in favor of IsMultiple/MaxFileCount
  • Reorganize CSS/SCSS variables and class builders for consistent styling and layout
  • Improve UploadFile extensions to detect image formats, base64 URLs, and allowed extensions
  • Clean up obsolete code and consolidate parameter handling across ButtonUpload, AvatarUpload, CardUpload, InputUpload, and DropUpload
  • Update sample/demo pages and menu entries to showcase redesigned upload components

CI:

  • Fix test project name in build workflow from UnitTestLocalization to UnitTest.Localization

@ArgoZhang ArgoZhang modified the milestones: v9.6.0, 9.7.0 May 29, 2025
@ArgoZhang ArgoZhang merged commit 7e580f9 into main Jun 5, 2025
4 of 5 checks passed
@ArgoZhang ArgoZhang deleted the feat-upload branch June 5, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(DropUpload): 是不是可以安排拖拽上传 支持 IsMultiple 和 IsDirectory

2 participants