mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: Optimize some styles
This commit is contained in:
parent
bf86e19fb6
commit
894454e956
|
|
@ -10,7 +10,7 @@
|
|||
</el-avatar>
|
||||
</slot>
|
||||
</div>
|
||||
<div style="width: 90%">
|
||||
<div style="width: 90%" class="mt-4">
|
||||
<slot name="title">
|
||||
<span class="ellipsis-1" :title="title" style="width: 80%">
|
||||
{{ title }}
|
||||
|
|
@ -118,7 +118,7 @@ function subHoveredEnter() {
|
|||
.status-tag {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
top: 15px;
|
||||
top: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import { SourceTypeEnum } from '@/enums/common'
|
|||
import KnowledgeApi from '@/api/knowledge/knowledge'
|
||||
import ApplicationApi from '@/api/application/application'
|
||||
import ToolApi from '@/api/tool/tool'
|
||||
const { folder, application } = useStore()
|
||||
const { folder } = useStore()
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
const props = defineProps({
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
// tree
|
||||
.el-tree {
|
||||
background: none;
|
||||
color: var(--el-text-color-primary);
|
||||
font-weight: 400;
|
||||
}
|
||||
.el-tree-node__content {
|
||||
border-radius: var(--el-border-radius-base);
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
|
||||
background: var(--el-color-primary-light-9);
|
||||
color: var(--el-color-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
.el-tree-node__expand-icon {
|
||||
color: var(--app-text-color-secondary);
|
||||
|
|
|
|||
|
|
@ -365,8 +365,11 @@ function openMoveToDialog(data: any) {
|
|||
}
|
||||
|
||||
function refreshApplicationList(row: any) {
|
||||
const index = applicationList.value.findIndex((v) => v.id === row.id)
|
||||
applicationList.value.splice(index, 1)
|
||||
// 不是根目录才会移除
|
||||
if (folder.currentFolder?.parent_id) {
|
||||
const index = applicationList.value.findIndex((v) => v.id === row.id)
|
||||
applicationList.value.splice(index, 1)
|
||||
}
|
||||
}
|
||||
|
||||
const goApp = (item: any) => {
|
||||
|
|
@ -650,6 +653,7 @@ function getFolder(bool?: boolean) {
|
|||
.asyncGetFolder(SourceTypeEnum.APPLICATION, params, apiType.value, loading)
|
||||
.then((res: any) => {
|
||||
folderList.value = res.data
|
||||
|
||||
if (bool) {
|
||||
// 初始化刷新
|
||||
folder.setCurrentFolder(res.data?.[0] || {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue