This commit is contained in:
liqiang-fit2cloud 2024-08-15 16:20:23 +08:00
commit 845225cce1

View File

@ -3,29 +3,38 @@
<div class="template-manage flex main-calc-height"> <div class="template-manage flex main-calc-height">
<div class="template-manage__left p-8 border-r"> <div class="template-manage__left p-8 border-r">
<h4 class="p-16" style="padding-bottom: 8px">供应商</h4> <h4 class="p-16" style="padding-bottom: 8px">供应商</h4>
<common-list <div class="model-list-height-left">
:data="provider_list" <el-scrollbar>
v-loading="loading" <common-list
@click="clickListHandle" :data="provider_list"
value-key="provider" v-loading="loading"
default-active="" @click="clickListHandle"
style="overflow-y: auto" value-key="provider"
> default-active=""
<template #default="{ row, index }"> style="overflow-y: auto"
<div class="flex" v-if="index === 0"> >
<AppIcon <template #default="{ row, index }">
class="mr-8" <div class="flex" v-if="index === 0">
style="height: 20px; width: 20px" <AppIcon
:iconName="active_provider === row ? 'app-all-menu-active' : 'app-all-menu'" class="mr-8"
></AppIcon> style="height: 20px; width: 20px"
<span>全部模型</span> :iconName="active_provider === row ? 'app-all-menu-active' : 'app-all-menu'"
</div> ></AppIcon>
<div class="flex" v-else> <span>全部模型</span>
<span :innerHTML="row.icon" alt="" style="height: 20px; width: 20px" class="mr-8" /> </div>
<span>{{ row.name }}</span> <div class="flex" v-else>
</div> <span
</template> :innerHTML="row.icon"
</common-list> alt=""
style="height: 20px; width: 20px"
class="mr-8"
/>
<span>{{ row.name }}</span>
</div>
</template>
</common-list>
</el-scrollbar>
</div>
</div> </div>
<div class="template-manage__right w-full" v-loading="list_model_loading"> <div class="template-manage__right w-full" v-loading="list_model_loading">
<div class="p-24 pb-0"> <div class="p-24 pb-0">
@ -164,5 +173,8 @@ onMounted(() => {
.model-list-height { .model-list-height {
height: calc(var(--create-dataset-height) - 70px); height: calc(var(--create-dataset-height) - 70px);
} }
.model-list-height-left {
height: calc(var(--create-dataset-height));
}
} }
</style> </style>