取消工作空间查看更多功能,默认查所有

This commit is contained in:
2026-07-22 15:15:08 +08:00
parent cac2dd019c
commit adea3a90ec
2 changed files with 5 additions and 81 deletions
+1 -36
View File
@@ -68,10 +68,6 @@
</div>
</div>
</div>
<button v-if="props.hasMoreWorkspace" class="load-more-btn" @click="emit('load-more-workspace')">
<el-icon><ArrowDown /></el-icon>
展开更多
</button>
</div>
</div>
</div>
@@ -79,7 +75,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { Delete, ChatDotRound, ChatLineRound, EditPen, ArrowDown, Document, VideoPlay, Headset, Picture, FolderOpened } from '@element-plus/icons-vue';
import { Delete, ChatDotRound, ChatLineRound, EditPen, Document, VideoPlay, Headset, Picture, FolderOpened } from '@element-plus/icons-vue';
interface TreeNode {
id: string;
@@ -104,7 +100,6 @@ interface Props {
historyList: HistoryItem[];
treeNodes: TreeNode[];
treeLoading: boolean;
hasMoreWorkspace: boolean;
}
interface Emits {
@@ -115,7 +110,6 @@ interface Emits {
(e: 'preview-node', data: TreeNode): void;
(e: 'download-node', data: TreeNode): void;
(e: 'delete-node', data: TreeNode): void;
(e: 'load-more-workspace'): void;
}
const props = defineProps<Props>();
@@ -360,35 +354,6 @@ const handleDeleteNode = (data: TreeNode) => emit('delete-node', data);
}
}
/* 展开更多按钮 */
.load-more-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
height: 32px;
margin-top: 4px;
border: 1px dashed #cbd5e1;
border-radius: 8px;
background: transparent;
color: #64748b;
font-size: 12px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background 0.15s;
outline: none;
.el-icon {
font-size: 12px;
}
&:hover {
border-color: #93c5fd;
color: #2563eb;
background: #eff6ff;
}
}
/* 工作空间树节点 */
.tree-date-group {
display: flex;