Skip to content

Commit 6361602

Browse files
committed
feat: 更新FileUploadModal组件,优化按钮逻辑和样式
1 parent 0e2b7c8 commit 6361602

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

web/src/components/FileUploadModal.vue

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
/>
3030
</div>
3131
<div class="config-controls">
32-
<a-button type="dashed" @click="showChunkConfigModal" v-if="!isGraphBased">
32+
<a-button
33+
type="dashed"
34+
@click="showChunkConfigModal"
35+
:disabled="isGraphBased"
36+
>
3337
<SettingOutlined /> 分块参数 ({{ chunkParams.chunk_size }}/{{ chunkParams.chunk_overlap }})
3438
</a-button>
3539
</div>
@@ -654,41 +658,31 @@ const chunkData = async () => {
654658
655659
.source-segmented {
656660
background-color: var(--gray-100);
657-
border-radius: 999px;
658-
padding: 4px;
659661
border: 1px solid var(--gray-200);
660662
}
661663
662-
.source-segmented :deep(.ant-segmented-item) {
663-
border-radius: 999px;
664-
}
665664
666665
.source-segmented :deep(.ant-segmented-item-label) {
667666
display: flex;
668667
align-items: center;
669668
gap: 8px;
670-
padding: 6px 16px;
671669
font-weight: 500;
672670
color: var(--gray-600);
673671
}
674672
675-
.source-segmented :deep(.ant-segmented-thumb) {
676-
background-color: var(--main-30);
677-
border-radius: 999px;
678-
}
679-
680673
.source-segmented :deep(.ant-segmented-item-selected .ant-segmented-item-label) {
681674
color: var(--main-color);
682675
}
683676
684677
.source-segmented :deep(.segmented-option) {
678+
font-size: 13px;
685679
display: flex;
686680
align-items: center;
687681
gap: 8px;
688682
}
689683
690684
.source-segmented :deep(.option-icon) {
691-
font-size: 16px;
685+
font-size: 14px;
692686
}
693687
694688
.ocr-config {

0 commit comments

Comments
 (0)