From 417c97f94d0e57bbf1d5a244a1cd439230aca104 Mon Sep 17 00:00:00 2001 From: qian Date: Mon, 14 Sep 2026 22:58:18 +0800 Subject: [PATCH] =?UTF-8?q?improve(ui):=E4=BC=98=E5=8C=96=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=90=8E=E5=8F=B0=E6=A8=A1=E5=9E=8B=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/src/views/ai/ModelsPage.vue | 99 +++++++++++++++++---------- 1 file changed, 62 insertions(+), 37 deletions(-) diff --git a/web/admin/src/views/ai/ModelsPage.vue b/web/admin/src/views/ai/ModelsPage.vue index 9a93b62..9d493bb 100644 --- a/web/admin/src/views/ai/ModelsPage.vue +++ b/web/admin/src/views/ai/ModelsPage.vue @@ -843,47 +843,69 @@ function resetImport() { v-model:visible="showModal" :title="modalTitle" :mask-closable="false" - :width="550" + :width="720" + modal-class="model-edit-modal" :on-before-ok="handleSubmit" :ok-loading="formLoading" > - - + + + + + {{ opt.label }} + + - - - -
- + +
+ + + + + + +
+ +
+ - + + + + 拉取官方数据
- - - -
- + +
+ - + + + + +
+ +
+ + + + + +
@@ -897,18 +919,6 @@ function resetImport() {
- - - - - - - - - - - - @@ -1010,10 +1020,25 @@ function resetImport() { } .cap-grid { display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 0; width: 100%; } +/* 分类分段按钮组:等宽铺满表单整行 */ +.cat-seg { + display: flex; + width: 100%; +} +.cat-seg :deep(.arco-radio-button) { + flex: 1; +} +.cat-seg :deep(.arco-radio-button-content) { + text-align: center; +} +/* 弹窗 teleport 到 body,scoped 属性选择器不生效,用 :global 兜底移动端宽度 */ +:global(.model-edit-modal) { + max-width: calc(100vw - 24px); +} .import-upload-area { border: 1px dashed var(--color-border-2); border-radius: 8px;