mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🎨 Support floating window to open related database when filling in the database relation field https://github.com/siyuan-note/siyuan/issues/10915
This commit is contained in:
parent
49e62ebff5
commit
62db617f91
2 changed files with 7 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ func SetDatabaseBlockView(blockID, viewID string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func GetAttributeViewPrimaryKeyValues(avID, keyword string, page, pageSize int) (attributeViewName string, keyValues *av.KeyValues, err error) {
|
||||
func GetAttributeViewPrimaryKeyValues(avID, keyword string, page, pageSize int) (attributeViewName string, databaseBlockIDs []string, keyValues *av.KeyValues, err error) {
|
||||
waitForSyncingStorages()
|
||||
|
||||
attrView, err := av.ParseAttributeView(avID)
|
||||
|
|
@ -65,6 +65,8 @@ func GetAttributeViewPrimaryKeyValues(avID, keyword string, page, pageSize int)
|
|||
}
|
||||
attributeViewName = attrView.Name
|
||||
|
||||
databaseBlockIDs = treenode.GetMirrorAttrViewBlockIDs(avID)
|
||||
|
||||
keyValues = attrView.GetBlockKeyValues()
|
||||
// 过滤掉不在视图中的值
|
||||
tmp := map[string]*av.Value{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue