feat/TanStack-Form (#18346)

This commit is contained in:
Wu Tianwei 2025-04-18 15:54:22 +08:00 • committed by GitHub
commit 1e7418095f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 959 additions and 127 deletions

View file

@ -202,7 +202,7 @@ export const OperationAction: FC<{
const isListScene = scene === 'list'
const onOperate = async (operationName: OperationName) => {
let opApi = deleteDocument
let opApi
switch (operationName) {
case 'archive':
opApi = archiveDocument
@ -490,7 +490,7 @@ const DocumentList: FC<IDocumentListProps> = ({
const handleAction = (actionName: DocumentActionType) => {
return async () => {
let opApi = deleteDocument
let opApi
switch (actionName) {
case DocumentActionType.archive:
opApi = archiveDocument
@ -527,7 +527,7 @@ const DocumentList: FC<IDocumentListProps> = ({
<Checkbox
className='mr-2 shrink-0'
checked={isAllSelected}
mixed={!isAllSelected && isSomeSelected}
indeterminate={!isAllSelected && isSomeSelected}
onCheck={onSelectedAll}
/>
)}