- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1017 B
1017 B
@dnd-kit/sortable
The sortable preset provides the building blocks to build sortable interfaces with @dnd-kit.
Installation
To get started, install the sortable preset via npm or yarn:
npm install @dnd-kit/sortable
Architecture
The sortable preset builds on top of the primitives exposed by @dnd-kit/core to help building sortable interfaces.
The sortable preset exposes two main concepts: SortableContext and the useSortable hook:
- The SortableContext provides information via context that is consumed by the
useSortablehook. - The useSortable hook is an abstraction that composes the
useDroppableanduseDraggablehooks.
Usage
Visit docs.dndkit.com to learn how to use the Sortable preset.
