mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
fcc2ec9d66
Related issue [BS-2610](https://linear.app/affine-design/issue/BS-2610/多选的拖拽:如果保护不支持预览的-block,则直接显示-icon-block-名称的方式做-fallback). Use simpler way to render edgeless dnd preview. 
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import {
|
|
EDGELESS_DND_PREVIEW_ELEMENT,
|
|
EdgelessDndPreviewElement,
|
|
} from './components/edgeless-preview/preview';
|
|
import { AFFINE_DRAG_HANDLE_WIDGET } from './consts';
|
|
import { AffineDragHandleWidget } from './drag-handle';
|
|
|
|
export function effects() {
|
|
customElements.define(AFFINE_DRAG_HANDLE_WIDGET, AffineDragHandleWidget);
|
|
customElements.define(
|
|
EDGELESS_DND_PREVIEW_ELEMENT,
|
|
EdgelessDndPreviewElement
|
|
);
|
|
}
|