mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15591
This commit is contained in:
parent
30bde33dd2
commit
9ee427d567
1 changed files with 6 additions and 0 deletions
|
|
@ -209,6 +209,12 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nil != nearItem && filterKeyIDs[groupKey.ID] {
|
||||||
|
// 临近项不为空并且分组字段和过滤字段相同时,优先使用临近项 https://github.com/siyuan-note/siyuan/issues/15591
|
||||||
|
ret[groupKey.ID] = getNewValueByNearItem(nearItem, groupKey, addingItemID)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if nil != newValue && !filterKeyIDs[groupKey.ID] /* 命中了过滤条件的话就不重复处理了 */ {
|
if nil != newValue && !filterKeyIDs[groupKey.ID] /* 命中了过滤条件的话就不重复处理了 */ {
|
||||||
ret[groupKey.ID] = newValue
|
ret[groupKey.ID] = newValue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue