refactor(list): remove feedbackClone from sortable item and list integration

This commit is contained in:
oomeow
2026-09-15 21:22:26 +08:00
parent d397da06ef
commit bff5eb79f0
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -1,4 +1,3 @@
import { Feedback } from '@dnd-kit/dom'
import { useSortable } from '@dnd-kit/react/sortable'
import { useTheme } from '@mui/material'
import { type CSSProperties, type ReactNode, useCallback } from 'react'
@@ -17,7 +16,6 @@ interface SortableItemProps {
// 用于给 tanstack virtual 列表测量当前拖动元素尺寸
measureElementRef?: (element: HTMLDivElement | null) => void
dataIndex?: number
feedbackClone?: boolean
style?: CSSProperties
children: ReactNode | ((props: SortableItemRenderProps) => ReactNode)
}
@@ -30,7 +28,6 @@ export const SortableItem = (props: SortableItemProps) => {
disabled,
measureElementRef,
dataIndex,
feedbackClone,
children,
style,
} = props
@@ -38,9 +35,6 @@ export const SortableItem = (props: SortableItemProps) => {
id,
index,
group,
...(feedbackClone && {
plugins: [Feedback.configure({ feedback: 'clone' })],
}),
disabled,
})
const theme = useTheme()
@@ -164,7 +164,6 @@ export function GroupedVirtualList<T>(props: GroupedVirtualListProps<T>) {
id={entry.id}
index={vi.index}
disabled={entry.category === 'original'}
feedbackClone
measureElementRef={virtualizer.measureElement}
dataIndex={vi.index}
style={{