fix(frontend): knowledge document list layout, batch bar, and selection

- Platform route outlet: flex min-height so document area is not collapsed
- Card grid: stable :key=item.id; clamp selection anchor after list reload
- DocumentListView: TDesign checkbox, sticky header, neutral file icons
- DocumentBatchBar: column-footer placement; toned style vs floating pill
- Clear selection i18n: less ambiguous wording (e.g. 取消选择)
- Batch delete: poll list refresh after async queue; getKnowled returns Promise
- files.ts: use file icon for text types; align chat/upload icon usage
This commit is contained in:
wizardchen
2026-04-29 15:15:55 +08:00
committed by lyingbug
parent a40f191430
commit c62ff4c906
12 changed files with 395 additions and 219 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ const getFileIcon = (fileName: string): string => {
if (['doc', 'docx'].includes(ext || '')) return 'file-word';
if (['xls', 'xlsx'].includes(ext || '')) return 'file-excel';
if (['ppt', 'pptx'].includes(ext || '')) return 'file-powerpoint';
if (['txt', 'md'].includes(ext || '')) return 'file-text';
if (['txt', 'md'].includes(ext || '')) return 'file';
if (['mp3', 'wav', 'm4a', 'flac', 'ogg', 'aac'].includes(ext || '')) return 'sound';
return 'file';
};