This commit is contained in:
wangdan-fit2cloud 2024-01-24 17:43:12 +08:00
parent 9daa8beb11
commit 47d2ed655c
5 changed files with 31 additions and 10 deletions

View File

@ -18,7 +18,7 @@
<el-form-item label="引用分段"> <el-form-item label="引用分段">
<template v-for="(item, index) in detail.paragraph_list" :key="index"> <template v-for="(item, index) in detail.paragraph_list" :key="index">
<CardBox <CardBox
shadow="none" shadow="never"
:title="item.title || '-'" :title="item.title || '-'"
class="paragraph-source-card cursor mb-8" class="paragraph-source-card cursor mb-8"
:class="item.is_active ? '' : 'disabled'" :class="item.is_active ? '' : 'disabled'"

View File

@ -69,14 +69,21 @@
</el-dropdown-menu> </el-dropdown-menu>
<div class="border-t" style="padding: 8px 11px; min-width: 200px"> <div class="border-t" style="padding: 8px 11px; min-width: 200px">
<template v-if="isApplication"> <template v-if="isApplication">
<el-button link @click="router.push({ path: '/application/create' })"> <div
class="w-full text-left cursor"
@click="router.push({ path: '/application/create' })"
>
<el-button link>
<el-icon class="mr-4"><Plus /></el-icon> <el-icon class="mr-4"><Plus /></el-icon>
</el-button> </el-button>
</div>
</template> </template>
<template v-else-if="isDataset"> <template v-else-if="isDataset">
<el-button link @click="router.push({ path: '/dataset/create' })"> <div class="w-full text-left cursor" @click="router.push({ path: '/dataset/create' })">
<el-button link>
<el-icon class="mr-4"><Plus /></el-icon> <el-icon class="mr-4"><Plus /></el-icon>
</el-button> </el-button>
</div>
</template> </template>
</div> </div>
</template> </template>

View File

@ -200,6 +200,9 @@ h4 {
align-items: center; align-items: center;
} }
.text-left {
text-align: left;
}
.text-center { .text-center {
text-align: center; text-align: center;
} }

View File

@ -16,6 +16,11 @@
background: var(--app-text-color-light-1); background: var(--app-text-color-light-1);
} }
} }
&:focus {
color: var(--el-button-text-color);
background-color: var(--el-button-bg-color);
border-color: var(--el-button-border-color);
}
} }
.el-avatar { .el-avatar {
--el-avatar-bg-color: var(--el-color-primary); --el-avatar-bg-color: var(--el-color-primary);
@ -55,6 +60,10 @@
.el-message-box__header { .el-message-box__header {
padding: 0; padding: 0;
} }
.el-message-box__title {
word-break: break-all;
width: 95%;
}
} }
.el-message-box__content { .el-message-box__content {

View File

@ -82,9 +82,11 @@
</el-option> </el-option>
</el-option-group> </el-option-group>
<template #footer> <template #footer>
<el-button type="primary" link @click="openCreateModel"> <div class="w-full text-left cursor" @click="openCreateModel()">
<el-button type="primary" link>
<el-icon class="mr-4"><Plus /></el-icon> <el-icon class="mr-4"><Plus /></el-icon>
</el-button> </el-button>
</div>
</template> </template>
</el-select> </el-select>
</el-form-item> </el-form-item>