fix: validateValue api not exist case

This commit is contained in:
fangsmile 2024-10-31 16:04:45 +08:00
parent cb0c20d36a
commit eddb82871f

View File

@ -163,7 +163,7 @@ export function listTableChangeCellValues(
const editor = table.getEditor(startCol + j, startRow + i);
const oldValue = oldValues[i][j];
const value = rowValues[j];
const maybePromiseOrValue = editor.validateValue(value, oldValue);
const maybePromiseOrValue = editor.validateValue?.(value, oldValue) ?? true;
if (isPromise(maybePromiseOrValue)) {
//TODO 处理promise的情况
isCanChange = true;