feat(editor): table block supports drag-and-drop sorting (#10065)

close: BS-2477
This commit is contained in:
zzj3720
2025-02-10 14:14:53 +00:00
parent 964f2e1bfd
commit c78d6b81c6
15 changed files with 496 additions and 49 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
import { AddButton } from './add-button';
import { SelectionLayer } from './selection-layer';
import { TableBlockComponent } from './table-block';
import { TableCell } from './table-cell';
import { AddButton, AddButtonComponentName } from './add-button';
import { SelectionLayer, SelectionLayerComponentName } from './selection-layer';
import { TableBlockComponent, TableBlockComponentName } from './table-block';
import { TableCell, TableCellComponentName } from './table-cell';
export function effects() {
customElements.define('affine-table', TableBlockComponent);
customElements.define('affine-table-cell', TableCell);
customElements.define('affine-table-add-button', AddButton);
customElements.define('affine-table-selection-layer', SelectionLayer);
customElements.define(TableBlockComponentName, TableBlockComponent);
customElements.define(TableCellComponentName, TableCell);
customElements.define(AddButtonComponentName, AddButton);
customElements.define(SelectionLayerComponentName, SelectionLayer);
}