mirror of
https://github.com/VisActor/VTable
synced 2024-11-21 17:40:10 +00:00
fix: validateValue api not exist case
This commit is contained in:
parent
cb0c20d36a
commit
eddb82871f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user