feat: 更新FileUploadModal组件,优化按钮逻辑和样式
This commit is contained in:
parent
0e2b7c86a3
commit
6361602851
@ -29,7 +29,11 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="config-controls">
|
<div class="config-controls">
|
||||||
<a-button type="dashed" @click="showChunkConfigModal" v-if="!isGraphBased">
|
<a-button
|
||||||
|
type="dashed"
|
||||||
|
@click="showChunkConfigModal"
|
||||||
|
:disabled="isGraphBased"
|
||||||
|
>
|
||||||
<SettingOutlined /> 分块参数 ({{ chunkParams.chunk_size }}/{{ chunkParams.chunk_overlap }})
|
<SettingOutlined /> 分块参数 ({{ chunkParams.chunk_size }}/{{ chunkParams.chunk_overlap }})
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@ -654,41 +658,31 @@ const chunkData = async () => {
|
|||||||
|
|
||||||
.source-segmented {
|
.source-segmented {
|
||||||
background-color: var(--gray-100);
|
background-color: var(--gray-100);
|
||||||
border-radius: 999px;
|
|
||||||
padding: 4px;
|
|
||||||
border: 1px solid var(--gray-200);
|
border: 1px solid var(--gray-200);
|
||||||
}
|
}
|
||||||
|
|
||||||
.source-segmented :deep(.ant-segmented-item) {
|
|
||||||
border-radius: 999px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.source-segmented :deep(.ant-segmented-item-label) {
|
.source-segmented :deep(.ant-segmented-item-label) {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 6px 16px;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--gray-600);
|
color: var(--gray-600);
|
||||||
}
|
}
|
||||||
|
|
||||||
.source-segmented :deep(.ant-segmented-thumb) {
|
|
||||||
background-color: var(--main-30);
|
|
||||||
border-radius: 999px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.source-segmented :deep(.ant-segmented-item-selected .ant-segmented-item-label) {
|
.source-segmented :deep(.ant-segmented-item-selected .ant-segmented-item-label) {
|
||||||
color: var(--main-color);
|
color: var(--main-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.source-segmented :deep(.segmented-option) {
|
.source-segmented :deep(.segmented-option) {
|
||||||
|
font-size: 13px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.source-segmented :deep(.option-icon) {
|
.source-segmented :deep(.option-icon) {
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ocr-config {
|
.ocr-config {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user