Vanessa 2023-12-18 12:53:52 +08:00
parent a6c1fd9408
commit 68b2f1fb9e

View file

@ -69,6 +69,9 @@ const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement) => {
}
};
}
if (colType === "block") {
cellValue.isDetached = cellElement.dataset.detached === "true";
}
return cellValue;
};
@ -411,7 +414,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H
keyID: colId,
rowID,
data: {
[type]: inputValue
[type]: inputValue,
isDetached: true,
}
}, {
action: "doUpdateUpdated",
@ -425,7 +429,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H
keyID: colId,
rowID,
data: {
[type]: oldValue
[type]: oldValue,
isDetached: true,
}
}, {
action: "doUpdateUpdated",