refactor(editor): add runtime type checks to database cell values (#10770)

This commit is contained in:
zzj3720
2025-03-12 09:22:41 +00:00
parent fd3ce431fe
commit 01151ec18f
54 changed files with 775 additions and 629 deletions

View File

@@ -531,8 +531,11 @@ test.describe('readonly mode', () => {
});
await cell.click();
await pressEnter(page);
await waitNextFrame(page, 100);
await type(page, '123');
await waitNextFrame(page, 100);
await pressEnter(page);
await waitNextFrame(page, 100);
await assertDatabaseCellRichTexts(page, { text: '123' });
await switchReadonly(page);

View File

@@ -386,6 +386,9 @@ export async function initKanbanViewState(
});
config.columns.forEach(column => {
const columnId = datasource.propertyAdd('end', column.type);
if (!columnId) {
return;
}
datasource.propertyNameSet(columnId, column.type);
rowIds.forEach((rowId, index) => {
const value = column.value?.[index];