mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
d7a22abaa1
commit
641db503f0
@ -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()}
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user