mirror of
https://github.com/VisActor/VTable
synced 2024-11-22 01:52:03 +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 editor = table.getEditor(startCol + j, startRow + i);
|
||||||
const oldValue = oldValues[i][j];
|
const oldValue = oldValues[i][j];
|
||||||
const value = rowValues[j];
|
const value = rowValues[j];
|
||||||
const maybePromiseOrValue = editor.validateValue(value, oldValue);
|
const maybePromiseOrValue = editor.validateValue?.(value, oldValue) ?? true;
|
||||||
if (isPromise(maybePromiseOrValue)) {
|
if (isPromise(maybePromiseOrValue)) {
|
||||||
//TODO 处理promise的情况
|
//TODO 处理promise的情况
|
||||||
isCanChange = true;
|
isCanChange = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user