Skip to content

Commit

Permalink
fix(全局): 样式调整&部分问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1q1 authored and liuruibin committed Apr 28, 2024
1 parent df16810 commit ab4676b
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 518 deletions.
6 changes: 0 additions & 6 deletions frontend/src/assets/style/arco-reset.less
Expand Up @@ -709,12 +709,6 @@
background-color: var(--color-text-input-border);
}
}
// .ms-card-container .arco-scrollbar .arco-scrollbar-track-direction-vertical {
// right: -10px;
// }
// .ms-card-container .arco-scrollbar .arco-scrollbar-track-direction-horizontal {
// bottom: -10px;
// }
.ms-base-table .arco-scrollbar .arco-scrollbar-track-direction-vertical {
right: 0;
}
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/components/pure/ms-table/base-table.vue
Expand Up @@ -675,6 +675,19 @@
}
}
}
:deep(.arco-table-th):hover {
.arco-table-column-handle {
@apply inline-block;
top: 50%;
margin: 0 3px;
padding: 4px 0;
width: 2px;
height: 24px;
background-color: var(--color-text-n8);
transform: translateY(-50%);
}
}
.setting-icon {
color: var(--color-text-4);
background-color: var(--color-text-10);
Expand Down
30 changes: 0 additions & 30 deletions frontend/src/router/routes/modules/performanceTest.ts

This file was deleted.

30 changes: 0 additions & 30 deletions frontend/src/router/routes/modules/uiTest.ts

This file was deleted.

30 changes: 0 additions & 30 deletions frontend/src/router/routes/modules/workbench.ts

This file was deleted.

Expand Up @@ -778,8 +778,7 @@
background-color: rgb(var(--primary-1));
}
.arco-collapse {
@apply h-full overflow-y-auto;
.ms-scroll-bar();
@apply h-full;
border-radius: 0;
:deep(.arco-collapse-item-icon-hover) {
Expand All @@ -795,10 +794,7 @@
}
}
.detail-collapse-item {
@apply overflow-y-auto;
margin-bottom: 16px;
.ms-scroll-bar();
}
}
.detail-item {
Expand Down
@@ -1,5 +1,5 @@
<template>
<div class="history-container">
<div>
<a-alert v-if="!getIsVisited()" :show-icon="false" class="mb-[16px]" type="warning" closable @close="addVisited">
{{ t('apiTestManagement.historyListTip') }}
<template #close-element>
Expand Down Expand Up @@ -115,10 +115,4 @@
// }
</script>

<style lang="less" scoped>
.history-container {
@apply h-full overflow-y-auto;
.ms-scroll-bar();
}
</style>
<style lang="less" scoped></style>
@@ -1,5 +1,5 @@
<template>
<div class="h-full w-full overflow-hidden">
<div class="preview">
<div class="px-[18px] pt-[16px]">
<MsDetailCard
:title="`${previewDetail.num}${previewDetail.name}`"
Expand Down Expand Up @@ -33,21 +33,19 @@
</template>
</MsDetailCard>
</div>
<div class="h-[calc(100%-124px)]">
<a-tabs v-model:active-key="activeKey" class="h-full" animation lazy-load>
<a-tab-pane key="detail" :title="t('apiTestManagement.detail')" class="px-[18px] py-[16px]">
<detailTab :detail="previewDetail" :protocols="props.protocols" />
</a-tab-pane>
<a-tab-pane key="reference" :title="t('apiTestManagement.reference')" class="px-[18px] py-[16px]">
<quote :source-id="previewDetail.id" />
</a-tab-pane>
<!-- <a-tab-pane key="dependencies" :title="t('apiTestManagement.dependencies')" class="px-[18px] py-[16px]">
<a-tabs v-model:active-key="activeKey" animation lazy-load>
<a-tab-pane key="detail" :title="t('apiTestManagement.detail')" class="px-[18px] py-[16px]">
<detailTab :detail="previewDetail" :protocols="props.protocols" />
</a-tab-pane>
<a-tab-pane key="reference" :title="t('apiTestManagement.reference')" class="px-[18px] py-[16px]">
<quote :source-id="previewDetail.id" />
</a-tab-pane>
<!-- <a-tab-pane key="dependencies" :title="t('apiTestManagement.dependencies')" class="px-[18px] py-[16px]">
</a-tab-pane> -->
<a-tab-pane key="changeHistory" :title="t('apiTestManagement.changeHistory')" class="px-[18px] py-[16px]">
<history :source-id="previewDetail.id" />
</a-tab-pane>
</a-tabs>
</div>
<a-tab-pane key="changeHistory" :title="t('apiTestManagement.changeHistory')" class="px-[18px] py-[16px]">
<history :source-id="previewDetail.id" />
</a-tab-pane>
</a-tabs>
</div>
</template>

Expand Down Expand Up @@ -187,3 +185,13 @@
const activeKey = ref('detail');
</script>

<style lang="less" scoped>
.preview {
@apply h-full w-full overflow-y-auto overflow-x-hidden;
.ms-scroll-bar();
:deep(.arco-tabs-pane) {
@apply h-auto;
}
}
</style>
@@ -1,5 +1,5 @@
<template>
<div class="history-container">
<div>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('apiTestManagement.quoteSearchPlaceholder')"
Expand Down Expand Up @@ -124,10 +124,4 @@
});
</script>

<style lang="less" scoped>
.history-container {
@apply h-full overflow-y-auto;
.ms-scroll-bar();
}
</style>
<style lang="less" scoped></style>
Expand Up @@ -491,8 +491,7 @@
},
onBeforeOk: async () => {
try {
console.log(getBatchParams(), ' getBatchParams() getBatchParams()');
// await batchCleanOutDefinition(await getBatchParams());
await batchCleanOutDefinition(await getBatchParams());
Message.success(t('common.deleteSuccess'));
resetSelector();
loadApiList(true);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/api-test/management/recycle.vue
@@ -1,5 +1,5 @@
<template>
<MsCard :min-width="1180" simple no-content-padding>
<MsCard has-breadcrumb simple no-content-padding>
<MsSplitBox :size="300" :max="0.5">
<template #first>
<div class="p-[24px]">
Expand Down

0 comments on commit ab4676b

Please sign in to comment.