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:
@@ -1,7 +1,9 @@
|
||||
<template>
|
||||
<div class="main" ref="dropzone">
|
||||
<Menu></Menu>
|
||||
<RouterView v-if="isRouterAlive" />
|
||||
<div v-if="isRouterAlive" class="platform-route-outlet">
|
||||
<RouterView />
|
||||
</div>
|
||||
<div class="upload-mask" v-show="ismask">
|
||||
<input type="file" style="display: none" ref="uploadInput" accept=".pdf,.docx,.doc,.pptx,.ppt,.txt,.md,.jpg,.jpeg,.png,.csv,.xls,.xlsx" />
|
||||
<UploadMask></UploadMask>
|
||||
@@ -177,13 +179,25 @@ onUnmounted(() => {
|
||||
<style lang="less">
|
||||
.main {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 600px;
|
||||
min-height: 0;
|
||||
/* 统一整页背景,让左侧菜单与右侧内容区视觉连贯 */
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
/* 右侧路由区:占满剩余宽度与整列高度,并把 min-height:0 传给子页面以便内部 flex 滚动 */
|
||||
.platform-route-outlet {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.upload-mask {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user