mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 23:37:15 +08:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user