mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +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,4 +1,4 @@
|
||||
import type { Column } from '@blocksuite/affine-model';
|
||||
import type { ColumnDataType } from '@blocksuite/affine-model';
|
||||
import type { InsertToPosition } from '@blocksuite/affine-shared/utils';
|
||||
import { computed, type ReadonlySignal } from '@preact/signals-core';
|
||||
|
||||
@@ -256,7 +256,7 @@ export abstract class DataSourceBase implements DataSource {
|
||||
|
||||
protected abstract getNormalPropertyAndIndex(propertyId: string):
|
||||
| {
|
||||
column: Column<Record<string, unknown>>;
|
||||
column: ColumnDataType<Record<string, unknown>>;
|
||||
index: number;
|
||||
}
|
||||
| undefined;
|
||||
|
||||
@@ -39,7 +39,7 @@ export type PropertyConfig<Data, RawValue = unknown, JsonValue = unknown> = {
|
||||
data: Data;
|
||||
}>
|
||||
) => JsonValue;
|
||||
fromJson: (
|
||||
fromJson?: (
|
||||
config: WithCommonPropertyConfig<{
|
||||
value: JsonValue;
|
||||
data: Data;
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
export * from './cell';
|
||||
export * from './property';
|
||||
export * from './row';
|
||||
export * from './single-view.js';
|
||||
export * from './view-manager.js';
|
||||
|
||||
Reference in New Issue
Block a user