mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
🎨 Attribute Panel - Database supports display database block floating window https://github.com/siyuan-note/siyuan/issues/9285
This commit is contained in:
parent
960cf3fe04
commit
da65f608a5
3 changed files with 156 additions and 116 deletions
|
|
@ -36,6 +36,7 @@ import (
|
|||
type BlockAttributeViewKeys struct {
|
||||
AvID string `json:"avID"`
|
||||
AvName string `json:"avName"`
|
||||
BlockIDs []string `json:"blockIDs"`
|
||||
KeyValues []*av.KeyValues `json:"keyValues"`
|
||||
}
|
||||
|
||||
|
|
@ -140,9 +141,12 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
})
|
||||
}
|
||||
|
||||
blockIDs := av.GetMirrorBlockIDs(avID)
|
||||
|
||||
ret = append(ret, &BlockAttributeViewKeys{
|
||||
AvID: avID,
|
||||
AvName: attrView.Name,
|
||||
BlockIDs: blockIDs,
|
||||
KeyValues: keyValues,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue