🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958

This commit is contained in:
Daniel 2023-12-29 11:18:14 +08:00
parent d7a22abaa1
commit 641db503f0
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const genSearchList = (element: Element, keyword: string, avId: string, cb?: ()
keyword
}, (response) => {
let html = "";
response.data.nonRelationKeys.forEach((item: IAVColumn, index: number) => {
response.data.keys.forEach((item: IAVColumn, index: number) => {
html += `<div class="b3-list-item b3-list-item--narrow${index === 0 ? " b3-list-item--focus" : ""}" data-col-id="${item.id}">
${item.icon ? unicode2Emoji(item.icon, "b3-list-item__graphic", true) : `<svg class="b3-list-item__graphic"><use xlink:href="#${getColIconByType(item.type)}"></use></svg>`}
${genIconHTML()}

View File

@ -40,7 +40,7 @@ func searchAttributeViewNonRelationKey(c *gin.Context) {
nonRelationKeys := model.SearchAttributeViewNonRelationKey(avID, keyword)
ret.Data = map[string]interface{}{
"nonRelationKeys": nonRelationKeys,
"keys": nonRelationKeys,
}
}
@ -58,7 +58,7 @@ func searchAttributeViewRelationKey(c *gin.Context) {
relationKeys := model.SearchAttributeViewRelationKey(avID, keyword)
ret.Data = map[string]interface{}{
"relationKeys": relationKeys,
"keys": relationKeys,
}
}