fix(接口管理): 环境组件下拉时进行刷新数据&修复选择框样式问题

This commit is contained in:
teukkk 2024-04-01 16:00:38 +08:00 committed by 刘瑞斌
parent 6f3b7cb332
commit cc3dd43dde
3 changed files with 8 additions and 9 deletions

View File

@ -584,9 +584,6 @@
color: rgb(var(--primary-7)) !important;
background-color: rgb(var(--primary-1)) !important;
}
.arco-select-view-value {
@apply !block;
}
.arco-select-view-suffix {
@apply !pl-0;
}
@ -922,7 +919,6 @@
text-align: center;
background: var(--color-text-brand);
}
.filter-button {
display: flex;
justify-content: space-between;

View File

@ -65,7 +65,7 @@
<template #label="{ data }">
<slot name="label" :data="{ ...data, [props.labelKey]: getInputLabel(data) }">
<a-tooltip :content="getInputLabelTooltip(data)" position="top" :mouse-enter-delay="500" mini>
<div class="one-line-text inline translate-y-[15%]">
<div class="one-line-text inline">
{{ getInputLabel(data) }}
</div>
</a-tooltip>

View File

@ -7,6 +7,7 @@
:loading="envLoading"
allow-search
@change="initEnvironment"
@popup-visible-change="popupVisibleChange"
>
<template #prefix>
<div class="flex cursor-pointer p-[8px]" @click.stop="goEnv">
@ -69,14 +70,16 @@
}
}
async function popupVisibleChange(visible: boolean) {
if (visible) {
await initEnvList();
}
}
function goEnv() {
openNewPage(ProjectManagementRouteEnum.PROJECT_MANAGEMENT_ENVIRONMENT_MANAGEMENT);
}
onBeforeMount(() => {
initEnvList();
});
defineExpose({
currentEnvConfig,
});