diff --git a/ui/public/MaxKB.gif b/ui/public/MaxKB.gif new file mode 100644 index 00000000000..055d49a6a11 Binary files /dev/null and b/ui/public/MaxKB.gif differ diff --git a/ui/src/api/API_README.md b/ui/src/api/API_README.md index 5f3ab0a8b28..b7b82d69752 100644 --- a/ui/src/api/API_README.md +++ b/ui/src/api/API_README.md @@ -401,7 +401,8 @@ Workspace 与 System 资源管理的 `application/application.ts` 提供 `getAcc Xpack 版可用登录方式统一调用 `system/chat-management/chat-user-auth.ts` 的 `getChatUserAuthType`, GET `/chat_user/auth/types` 返回 `{ label, value }[]`,两种智能体入口共用。 -展示设置共用 `ApplicationDisplaySetting`;`ApplicationAccessToken` 兼容可选展示字段,缺失字段由弹窗补齐默认值。 +社区版展示设置通过 `putAccessToken` 提交 `language`、`show_source` 与 `show_exec`,不调用 `/setting`。 +Xpack 展示设置共用 `ApplicationDisplaySetting`;`ApplicationAccessToken` 兼容可选展示字段,缺失字段由弹窗补齐默认值。 两范围的 `putDisplaySetting` 沿用 V2 的 `//setting` PUT 接口,提交 FormData: `custom_theme`、`float_location` 序列化为 JSON,图片字段提交本次文件,`_url` 保留已有地址; 恢复默认时图片文件与地址均提交空字符串。当前社区版后端未提供该路由,完整保存依赖支持此接口的部署。 diff --git a/ui/src/api/types/application.ts b/ui/src/api/types/application.ts index 51eff76b6aa..8011a7b646d 100644 --- a/ui/src/api/types/application.ts +++ b/ui/src/api/types/application.ts @@ -31,7 +31,6 @@ export interface ApplicationDisplaySetting { language: string show_history: boolean draggable: boolean - show_guide: boolean show_share: boolean icon: string chat_background: string @@ -74,6 +73,8 @@ export interface ApplicationAccessToken extends Partial`,附加 `multiple`、`remoteMethod`。 有 `options` 时渲染选择器,否则渲染文本输入;`remoteMethod(query)` 由调用方更新选项,组件管理加载状态。 `change` 返回 `{ [field]: value }`,多选返回数组;清空返回 `undefined`,切换字段仅在原条件非空时通知清空。 +组合外观复用 [连体表单控件样式](../styles/STYLE_README.md#连体表单控件),字段和条件控件的默认宽度 +分别为 104px、200px;搜索状态、远程加载和切换字段清空逻辑由组件管理。 ### MkDropdown、MkDropdownMenu、MkDropdownItem diff --git a/ui/src/components/global/mk-complex-search/index.vue b/ui/src/components/global/mk-complex-search/index.vue index f6387220378..cc9d851abd2 100644 --- a/ui/src/components/global/mk-complex-search/index.vue +++ b/ui/src/components/global/mk-complex-search/index.vue @@ -54,16 +54,18 @@ function handleChange() { - - diff --git a/ui/src/conversation-panel/components/header/debug/index.vue b/ui/src/conversation-panel/components/header/debug/index.vue index 100bff51be9..351da6e6848 100644 --- a/ui/src/conversation-panel/components/header/debug/index.vue +++ b/ui/src/conversation-panel/components/header/debug/index.vue @@ -7,7 +7,7 @@ const debug = useDebugHeaderStore()