mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
22 lines
552 B
TypeScript
22 lines
552 B
TypeScript
import { createViewConvert } from '../core/view/convert.js';
|
|
import { kanbanViewModel } from './kanban/index.js';
|
|
import { tableViewModel } from './table/index.js';
|
|
|
|
export const viewConverts = [
|
|
createViewConvert(tableViewModel, kanbanViewModel, data => {
|
|
if (data.groupBy) {
|
|
return {
|
|
filter: data.filter,
|
|
groupBy: data.groupBy,
|
|
};
|
|
}
|
|
return {
|
|
filter: data.filter,
|
|
};
|
|
}),
|
|
createViewConvert(kanbanViewModel, tableViewModel, data => ({
|
|
filter: data.filter,
|
|
groupBy: data.groupBy,
|
|
})),
|
|
];
|