Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Virtual Scroll with Drag'n'drop support
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Angular drag and drop for virtual scrolling. Sortable lists and boards that stay fast with thousands of items: only the visible rows are rendered, and drag and drop still works across all of them.
Documentation · Live demo · Changelog
ion-contentnpm install ngx-virtual-dnd
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import {
DragPreviewComponent,
DraggableDirective,
DropEvent,
DroppableGroupDirective,
reorderItems,
VirtualSortableListComponent,
} from 'ngx-virtual-dnd';
interface Task {
id: string;
title: string;
}
@Component({
selector: 'app-tasks',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
VirtualSortableListComponent,
DroppableGroupDirective,
DraggableDirective,
DragPreviewComponent,
],
template: `
<div vdndGroup="tasks">
<ng-template #taskTpl let-task>
<div class="row" [vdndDraggable]="task.id">{{ task.title }}</div>
</ng-template>
<vdnd-sortable-list
droppableId="backlog"
[items]="tasks()"
[itemHeight]="48"
[containerHeight]="400"
[itemIdFn]="taskId"
[itemTemplate]="taskTpl"
(drop)="onDrop($event)"
/>
</div>
<vdnd-drag-preview />
`,
})
export class TasksComponent {
readonly tasks = signal<Task[]>(
Array.from({ length: 1000 }, (_, i) => ({ id: `task-${i + 1}`, title: `Task ${i + 1}` })),
);
readonly taskId = (task: Task): string => task.id;
onDrop(event: DropEvent): void {
reorderItems(event, this.tasks);
}
}
Every draggable and droppable needs a group (here from vdndGroup), even for a single list, and the item template must be declared inside it. The Quick start explains each part, and Core concepts lists the rules that keep a setup working.
Install a skill that teaches AI coding assistants how to integrate this library:
npx skills add gultyayev/ngx-virtual-dnd
It works with Claude Code, Cursor, Windsurf, GitHub Copilot and 40+ other agents. The docs are also published as llms.txt.
See CONTRIBUTING.md to run the demo, the docs and the tests locally.
MIT