Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ const BlocksTab = () => {
blockType: 'chart',
category: 'data',
},
{
icon: 'LayoutDashboard',
label: '多列布局',
description: '创建多列内容布局',
blockType: 'columns',
category: 'layout',
},
{
icon: 'Minus',
label: '分割线',
Expand Down
2 changes: 1 addition & 1 deletion apps/DocFlow/src/extensions/Document/Document.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Document as TiptapDocument } from '@tiptap/extension-document';

export const Document = TiptapDocument.extend({
content: '(block|columns)+',
content: 'block+',
});

export default Document;
17 changes: 0 additions & 17 deletions apps/DocFlow/src/extensions/DragHandler/DragHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,6 @@ class ChartBlockStrategy implements BlockContentStrategy {
}
}

// 增加多列块策略
class ColumnsBlockStrategy implements BlockContentStrategy {
create() {
return {
type: 'columns',
attrs: {
rows: 2,
},
content: [
{ type: 'column', content: [{ type: 'paragraph' }] },
{ type: 'column', content: [{ type: 'paragraph' }] },
],
};
}
}

// 增加倒计时组件策略
class CountdownBlockStrategy implements BlockContentStrategy {
create() {
Expand Down Expand Up @@ -345,7 +329,6 @@ class BlockContentStrategyFactory {
['divider', new HorizontalRulerBlockStrategy()],
['ai', new AIBlockStrategy()],
['chart', new ChartBlockStrategy()],
['columns', new ColumnsBlockStrategy()],
['countdown', new CountdownBlockStrategy()],
]);

Expand Down
53 changes: 0 additions & 53 deletions apps/DocFlow/src/extensions/MultiColumn/Column.ts

This file was deleted.

Loading
Loading