首页 > TAG信息列表 > dragList
React Hook useDragList 列表拖拽
Hook定义 useDragList import { useState } from "react"; interface useDragPropsType { list: Array<any>, dragItemClassName: string } const checkValidDragItem = (e: React.DragEvent, className: string) => (e.target as HTMLLIElement).