🐛 cell 获取错误

This commit is contained in:
Vanessa 2023-12-29 14:30:46 +08:00
parent 52de7a24d4
commit aa2b52bad9
5 changed files with 72 additions and 69 deletions

View file

@ -158,10 +158,12 @@ export const setDateValue = (options: {
const cellValue = genCellValueByElement(getTypeByCellElement(item) || item.dataset.type as TAVCol, item);
const oldValue = JSON.parse(JSON.stringify(cellValue))
const rowID = (hasClosestByClassName(item, "av__row") as HTMLElement).dataset.id;
cellValue.date = Object.assign(cellValue.date || {
isNotEmpty2: false,
isNotEmpty: false
}, options.value);
if (elementIndex === 0) {
cellValue.date = Object.assign(cellValue.date || {
isNotEmpty2: false,
isNotEmpty: false
}, options.value);
}
cellDoOperations.push({
action: "updateAttrViewCell",
id: cellValue.id,