feat(editor): support file column and member column for database block (#10932)

close: BS-2630, BS-2631, BS-2629, BS-2632, BS-2635
This commit is contained in:
zzj3720
2025-03-18 14:51:45 +00:00
parent 321e3449ec
commit 3939cc1c52
34 changed files with 1796 additions and 77 deletions

View File

@@ -1,6 +1,6 @@
import {
databaseBlockColumns,
DatabaseBlockDataSource,
databaseBlockProperties,
} from '@blocksuite/affine/blocks/database';
import {
type DatabaseBlockModel,
@@ -46,13 +46,13 @@ export const database: InitFn = (collection: Workspace, id: string) => {
database.props.title = new Text(title);
const richTextId = datasource.propertyAdd(
'end',
databaseBlockColumns.richTextColumnConfig.type
databaseBlockProperties.richTextColumnConfig.type
);
Object.values([
propertyPresets.multiSelectPropertyConfig,
propertyPresets.datePropertyConfig,
propertyPresets.numberPropertyConfig,
databaseBlockColumns.linkColumnConfig,
databaseBlockProperties.linkColumnConfig,
propertyPresets.checkboxPropertyConfig,
propertyPresets.progressPropertyConfig,
]).forEach(column => {