🐛 修复测试.

This commit is contained in:
lijiahang
2024-02-28 14:48:16 +08:00
parent 1a08de36e4
commit ea0c0a0c1e
8 changed files with 21 additions and 8 deletions

View File

@@ -306,7 +306,7 @@
try {
const groups = await cacheStore.loadHostGroups(force);
emits('loading', true);
treeData.value = groups;
treeData.value = groups || [];
} catch (e) {
} finally {
emits('loading', false);

View File

@@ -66,6 +66,8 @@ export interface Options {
overviewRulerBorder?: boolean;
// 颜色装饰器
colorDecorators?: boolean;
// 将溢出小部件显示为 fixed 编辑器较小的话需要设置为 true 否则 suggest 会被覆盖
fixedOverflowWidgets?: boolean;
[key: string]: unknown;
}
@@ -94,7 +96,7 @@ export const createDefaultOptions = (): Options => {
scrollBeyondLastLine: false,
overviewRulerBorder: false,
colorDecorators: true,
suggest: true,
fixedOverflowWidgets: true,
};
};

View File

@@ -166,8 +166,8 @@
:deep(.arco-tabs-tab) {
height: 100%;
margin: 0;
padding: 0;
margin: 0 !important;
padding: 0 !important;
color: var(--color-header-text-1);
background: var(--color-bg-header-tabs);
position: relative;

View File

@@ -159,7 +159,7 @@
}
:deep(.arco-upload-list) {
max-height: calc(100vh - 388px);
max-height: calc(100vh - 386px);
overflow-y: auto;
padding: 0 12px 0 0;
}

View File

@@ -13,8 +13,7 @@
:data="transferManager.transferList">
<!-- 空数据 -->
<template #empty>
<a-empty style="flex-direction: column;"
description="无传输文件" />
<a-empty class="list-empty" description="无传输文件" />
</template>
<!-- 数据 -->
<template #item="{ item }">
@@ -157,6 +156,11 @@
padding: 0 !important;
}
.list-empty {
flex-direction: column;
margin-top: 32px;
}
.transfer-item {
min-height: 36px;
padding: 8px 0;