mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
🐛 cell 获取错误
This commit is contained in:
parent
52de7a24d4
commit
aa2b52bad9
5 changed files with 72 additions and 69 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue