feat(core): enable quick select for trash page (#12878)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enabled quick select functionality in the Trash page, allowing users
to more efficiently select multiple items.
- Improved selection mode activation when using quick select actions in
document explorer views.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice 2025-06-20 18:49:09 +08:00 committed by GitHub
parent da980876cb
commit 3a124b67bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ export const QuickSelect = memo(function QuickSelect({
const onChange = useCallback(
(e: React.MouseEvent<HTMLButtonElement>) => {
contextValue.selectMode$?.next(true);
onClick?.(e);
e.stopPropagation();
e.preventDefault();

View File

@ -60,6 +60,7 @@ export const TrashPage = () => {
quickFavorite: false,
quickDeletePermanently: true,
quickRestore: true,
quickSelect: true,
groupBy: undefined,
orderBy: undefined,
})