Skip to content

Commit

Permalink
[_]
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed May 24, 2023
1 parent c1c72be commit 43f7646
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function AdminSearch(query, page, pageSize) {
name
path
summary
content
fingerprint
part
_additional{
Expand Down Expand Up @@ -318,6 +319,7 @@ function AdminSearch(query, page, pageSize) {
id: item._additional.id,
name: item.name,
path: item.path,
content: item.content,
summary:
item.summary.length > 50
? item.summary.substring(0, 50) + "..."
Expand Down
10 changes: 8 additions & 2 deletions tables/doc.tab.yao
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@
}
},
"table": {
"名称": { "bind": "name", "view": { "type": "Text", "props": {} } },
"名称": {
"bind": "name",
"view": { "type": "Tooltip", "props": { "title": "{{content}}" } }
},
"片段": { "bind": "part", "view": { "type": "Text", "props": {} } },
"文件": { "bind": "path", "view": { "type": "Text", "props": {} } },
"摘要": { "bind": "summary", "view": { "type": "Text", "props": {} } },
"摘要": {
"bind": "summary",
"view": { "type": "Tooltip", "props": { "title": "{{content}}" } }
},
"创建时间": {
"bind": "created_at",
"view": { "type": "Text", "props": { "format": "YYYY年M月D日" } }
Expand Down

0 comments on commit 43f7646

Please sign in to comment.