mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 10:31:50 +08:00
refactor(editor): extract drag handle widget (#9415)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { DragPreview } from './components/drag-preview';
|
||||
import { DropIndicator } from './components/drop-indicator';
|
||||
import { AFFINE_DRAG_HANDLE_WIDGET } from './consts';
|
||||
import { AffineDragHandleWidget } from './drag-handle';
|
||||
|
||||
export function effects() {
|
||||
customElements.define('affine-drag-preview', DragPreview);
|
||||
customElements.define('affine-drop-indicator', DropIndicator);
|
||||
customElements.define(AFFINE_DRAG_HANDLE_WIDGET, AffineDragHandleWidget);
|
||||
}
|
||||
Reference in New Issue
Block a user