style: 模块树样式优化-去掉所有模块树的分割线
This commit is contained in:
parent
12a2a8eaba
commit
ed6c61fb31
|
@ -10,8 +10,7 @@
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
@selected-protocols-change="selectedProtocolsChange"
|
@selected-protocols-change="selectedProtocolsChange"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px] mt-0" />
|
<div class="my-[8px] flex items-center gap-[8px]">
|
||||||
<div class="mb-[8px] flex items-center gap-[8px]">
|
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="moduleKeyword"
|
v-model:model-value="moduleKeyword"
|
||||||
:placeholder="t('caseManagement.caseReview.folderSearchPlaceholder')"
|
:placeholder="t('caseManagement.caseReview.folderSearchPlaceholder')"
|
||||||
|
@ -275,36 +274,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.folder {
|
|
||||||
@apply flex cursor-pointer items-center justify-between;
|
|
||||||
|
|
||||||
padding: 8px 4px;
|
|
||||||
border-radius: var(--border-radius-small);
|
|
||||||
&:hover {
|
|
||||||
background-color: rgb(var(--primary-1));
|
|
||||||
}
|
|
||||||
.folder-text {
|
|
||||||
@apply flex cursor-pointer items-center;
|
|
||||||
.folder-icon {
|
|
||||||
margin-right: 4px;
|
|
||||||
color: var(--color-text-4);
|
|
||||||
}
|
|
||||||
.folder-name {
|
|
||||||
color: var(--color-text-1);
|
|
||||||
}
|
|
||||||
.folder-count {
|
|
||||||
margin-left: 4px;
|
|
||||||
color: var(--color-text-4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.folder-text--active {
|
|
||||||
.folder-icon,
|
|
||||||
.folder-name,
|
|
||||||
.folder-count {
|
|
||||||
color: rgb(var(--primary-5));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.footer {
|
.footer {
|
||||||
@apply flex items-center justify-between;
|
@apply flex items-center justify-between;
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
@selected-protocols-change="selectedProtocolsChange"
|
@selected-protocols-change="selectedProtocolsChange"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="w-full" :loading="moduleLoading">
|
<a-spin class="w-full" :loading="moduleLoading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:selected-keys="selectedModuleKeys"
|
v-model:selected-keys="selectedModuleKeys"
|
||||||
|
@ -837,36 +836,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.folder {
|
|
||||||
@apply flex cursor-pointer items-center justify-between;
|
|
||||||
|
|
||||||
padding: 8px 4px;
|
|
||||||
border-radius: var(--border-radius-small);
|
|
||||||
&:hover {
|
|
||||||
background-color: rgb(var(--primary-1));
|
|
||||||
}
|
|
||||||
.folder-text {
|
|
||||||
@apply flex cursor-pointer items-center;
|
|
||||||
.folder-icon {
|
|
||||||
margin-right: 4px;
|
|
||||||
color: var(--color-text-4);
|
|
||||||
}
|
|
||||||
.folder-name {
|
|
||||||
color: var(--color-text-1);
|
|
||||||
}
|
|
||||||
.folder-count {
|
|
||||||
margin-left: 4px;
|
|
||||||
color: var(--color-text-4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.folder-text--active {
|
|
||||||
.folder-icon,
|
|
||||||
.folder-name,
|
|
||||||
.folder-count {
|
|
||||||
color: rgb(var(--primary-5));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.footer {
|
.footer {
|
||||||
@apply flex items-center justify-between;
|
@apply flex items-center justify-between;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
<div class="folder-count">({{ modulesCount['all'] || 0 }})</div>
|
<div class="folder-count">({{ modulesCount['all'] || 0 }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="w-full" :loading="moduleLoading">
|
<a-spin class="w-full" :loading="moduleLoading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:selected-keys="selectedModuleKeys"
|
v-model:selected-keys="selectedModuleKeys"
|
||||||
|
|
|
@ -62,13 +62,15 @@
|
||||||
.folder {
|
.folder {
|
||||||
@apply flex cursor-pointer items-center justify-between;
|
@apply flex cursor-pointer items-center justify-between;
|
||||||
|
|
||||||
padding: 8px 4px;
|
padding: 4px;
|
||||||
border-radius: var(--border-radius-small);
|
border-radius: var(--border-radius-small);
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: rgb(var(--primary-1));
|
background-color: rgb(var(--primary-1));
|
||||||
}
|
}
|
||||||
.folder-text {
|
.folder-text {
|
||||||
@apply flex cursor-pointer items-center;
|
@apply flex cursor-pointer items-center;
|
||||||
|
|
||||||
|
height: 26px;
|
||||||
.folder-icon {
|
.folder-icon {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
color: var(--color-text-4);
|
color: var(--color-text-4);
|
||||||
|
|
|
@ -14,14 +14,13 @@
|
||||||
<MsSplitBox>
|
<MsSplitBox>
|
||||||
<template #first>
|
<template #first>
|
||||||
<div class="p-[16px] pt-0">
|
<div class="p-[16px] pt-0">
|
||||||
<div class="folder" @click="setActiveFolder('all')">
|
<div class="folder mb-[8px]" @click="setActiveFolder('all')">
|
||||||
<div class="folder-text" :class="getFolderClass('all')">
|
<div class="folder-text" :class="getFolderClass('all')">
|
||||||
<MsIcon type="icon-icon_folder_filled1" class="folder-icon" />
|
<MsIcon type="icon-icon_folder_filled1" class="folder-icon" />
|
||||||
<div class="folder-name">{{ t('project.fileManagement.allFile') }}</div>
|
<div class="folder-name">{{ t('project.fileManagement.allFile') }}</div>
|
||||||
<div class="folder-count">({{ allFileCount }})</div>
|
<div class="folder-count">({{ allFileCount }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type" @change="changeShowType">
|
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type" @change="changeShowType">
|
||||||
<a-radio value="Module">{{ t('project.fileManagement.module') }}</a-radio>
|
<a-radio value="Module">{{ t('project.fileManagement.module') }}</a-radio>
|
||||||
<a-radio value="Storage">{{ t('project.fileManagement.storage') }}</a-radio>
|
<a-radio value="Storage">{{ t('project.fileManagement.storage') }}</a-radio>
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
</popConfirm>
|
</popConfirm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="max-h-[calc(100%-98px)] w-full" :loading="loading">
|
<a-spin class="max-h-[calc(100%-98px)] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:selected-keys="selectedKeys"
|
v-model:selected-keys="selectedKeys"
|
||||||
|
|
|
@ -76,7 +76,6 @@
|
||||||
</popConfirm>
|
</popConfirm>
|
||||||
</template>
|
</template>
|
||||||
</TreeFolderAll>
|
</TreeFolderAll>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
</template>
|
</template>
|
||||||
<a-input
|
<a-input
|
||||||
v-else
|
v-else
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
<div class="folder-count">({{ allScenarioCount }})</div>
|
<div class="folder-count">({{ allScenarioCount }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="w-full" :loading="loading">
|
<a-spin class="w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:selected-keys="selectedKeys"
|
v-model:selected-keys="selectedKeys"
|
||||||
|
|
|
@ -49,8 +49,6 @@
|
||||||
</popConfirm>
|
</popConfirm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
|
|
||||||
<a-spin class="w-full" :style="{ height: `calc(100vh - 248px)` }" :loading="loading">
|
<a-spin class="w-full" :style="{ height: `calc(100vh - 248px)` }" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:focus-node-key="focusNodeKey"
|
v-model:focus-node-key="focusNodeKey"
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<div class="mb-[8px] flex items-center gap-[8px]">
|
<div class="mb-[8px] flex items-center gap-[8px]">
|
||||||
<a-input
|
<a-input
|
||||||
v-model:model-value="moduleKeyword"
|
v-model:model-value="moduleKeyword"
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="h-[calc(100vh-274px)] w-full" :loading="loading">
|
<a-spin class="h-[calc(100vh-274px)] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:focus-node-key="focusNodeKey"
|
v-model:focus-node-key="focusNodeKey"
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<div class="folder-count">({{ modulesCount['all'] }})</div>
|
<div class="folder-count">({{ modulesCount['all'] }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="w-full" :loading="moduleLoading">
|
<a-spin class="w-full" :loading="moduleLoading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:focus-node-key="focusNodeKey"
|
v-model:focus-node-key="focusNodeKey"
|
||||||
|
@ -543,13 +542,15 @@
|
||||||
.folder {
|
.folder {
|
||||||
@apply flex cursor-pointer items-center justify-between;
|
@apply flex cursor-pointer items-center justify-between;
|
||||||
|
|
||||||
padding: 8px 4px;
|
padding: 4px;
|
||||||
border-radius: var(--border-radius-small);
|
border-radius: var(--border-radius-small);
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: rgb(var(--primary-1));
|
background-color: rgb(var(--primary-1));
|
||||||
}
|
}
|
||||||
.folder-text {
|
.folder-text {
|
||||||
@apply flex cursor-pointer items-center;
|
@apply flex cursor-pointer items-center;
|
||||||
|
|
||||||
|
height: 26px;
|
||||||
.folder-icon {
|
.folder-icon {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
color: var(--color-text-4);
|
color: var(--color-text-4);
|
||||||
|
|
|
@ -88,7 +88,6 @@
|
||||||
</MsPopConfirm>
|
</MsPopConfirm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<div class="h-[calc(100vh-236px)]">
|
<div class="h-[calc(100vh-236px)]">
|
||||||
<FeatureCaseTree
|
<FeatureCaseTree
|
||||||
ref="caseTreeRef"
|
ref="caseTreeRef"
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
:all-count="allCount"
|
:all-count="allCount"
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
</popConfirm>
|
</popConfirm>
|
||||||
</template>
|
</template>
|
||||||
</MsFolderAll>
|
</MsFolderAll>
|
||||||
<a-divider v-if="!props.isModal" class="my-[8px]" />
|
|
||||||
<a-spin class="min-h-[400px] w-full" :loading="loading">
|
<a-spin class="min-h-[400px] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
v-model:focus-node-key="focusNodeKey"
|
v-model:focus-node-key="focusNodeKey"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="folder-count">({{ myFileCount }})</div>
|
<div class="folder-count">({{ myFileCount }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="folder" @click="setActiveFolder('all')">
|
<div class="folder mb-[8px]" @click="setActiveFolder('all')">
|
||||||
<div :class="getFolderClass('all')">
|
<div :class="getFolderClass('all')">
|
||||||
<MsIcon type="icon-icon_folder_filled1" class="folder-icon" />
|
<MsIcon type="icon-icon_folder_filled1" class="folder-icon" />
|
||||||
<div class="folder-name">{{ t('project.fileManagement.allFile') }}</div>
|
<div class="folder-name">{{ t('project.fileManagement.allFile') }}</div>
|
||||||
|
@ -50,7 +50,6 @@
|
||||||
</popConfirm>
|
</popConfirm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type" @change="changeShowType">
|
<a-radio-group v-model:model-value="showType" type="button" class="file-show-type" @change="changeShowType">
|
||||||
<a-radio value="Module">{{ t('project.fileManagement.module') }}</a-radio>
|
<a-radio value="Module">{{ t('project.fileManagement.module') }}</a-radio>
|
||||||
<a-radio value="Storage">{{ t('project.fileManagement.storage') }}</a-radio>
|
<a-radio value="Storage">{{ t('project.fileManagement.storage') }}</a-radio>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
@selected-protocols-change="selectedProtocolsChange"
|
@selected-protocols-change="selectedProtocolsChange"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
:all-count="allCount"
|
:all-count="allCount"
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
:all-count="allCount"
|
:all-count="allCount"
|
||||||
@set-active-folder="setActiveFolder"
|
@set-active-folder="setActiveFolder"
|
||||||
/>
|
/>
|
||||||
<a-divider class="my-[8px]" />
|
|
||||||
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
<a-spin class="min-h-[200px] w-full" :loading="loading">
|
||||||
<MsTree
|
<MsTree
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
|
|
Loading…
Reference in New Issue