refactor(ui): 简化模型权限编辑对话框交互

- 将模型权限对话框从双栏穿梭框重构为单面板多选模式
- 简化对话框尺寸,优化布局为单列显示避免模型名称截断
- 模型列表移除能力列,新增快捷添加映射按钮
- 支持从模型列表直接跳转到模型映射对话框并预选模型
This commit is contained in:
fawney19
2026-01-11 02:06:48 +08:00
parent 8d8b20aa47
commit 76ed136228
5 changed files with 337 additions and 488 deletions
@@ -377,6 +377,7 @@ const props = defineProps<{
providerApiFormats: string[]
models: Model[]
editingGroup?: AliasGroup | null
preselectedModelId?: string | null
}>()
const emit = defineEmits<{
@@ -500,7 +501,7 @@ function initForm() {
}
} else {
formData.value = {
modelId: '',
modelId: props.preselectedModelId || '',
apiFormats: [],
aliases: []
}