diff --git a/ui/src/components/COMPONENT_README.md b/ui/src/components/COMPONENT_README.md index 56481f9c3b4..caef7b965b7 100644 --- a/ui/src/components/COMPONENT_README.md +++ b/ui/src/components/COMPONENT_README.md @@ -190,6 +190,9 @@ Drawer 没有 `MkDialog` 的外壳挂载控制;需要按需挂载时,由业 满高页面布局,`loading` 覆盖整个根节点。`title` 默认读取路由标题,传空字符串隐藏; 提供 `aside` 插槽时才渲染侧栏,`collapsible` 开启内部折叠,`top` 放左右区域上方的内容。 +- `resizable` 默认 `false`,显式开启后可拖动侧栏右边界;`minLeftWidth` 默认使用主题展开宽度(240px), + `maxLeftWidth` 默认 400px,单位为 px。折叠后展开保留本次宽度,关闭开关恢复主题宽度;不持久化。 + 工作空间智能体、知识库、工具和模型资源列表显式开启,其他调用方按需配置。 - `aside` 插槽提供 `title`、`Header`;默认插槽提供 `title`、`Header`、`Footer`。 - 未显式渲染 `Header` 时自动显示标题;`Header`、`Footer` 固定,正文由内置 `el-scrollbar` 滚动。 不重复包裹整个主内容区,局部树、Tabs 等可独立滚动。 diff --git a/ui/src/components/global/markdown-editor/md-editor.scss b/ui/src/components/global/markdown-editor/md-editor.scss index 60a473579bb..bfb633a54b0 100644 --- a/ui/src/components/global/markdown-editor/md-editor.scss +++ b/ui/src/components/global/markdown-editor/md-editor.scss @@ -76,7 +76,6 @@ /* Markdown 预览 */ .mk-markdown-editor { .md-editor-preview { - font-size: inherit; margin: 0; padding: 0; word-break: break-word; @@ -98,7 +97,7 @@ p { padding: 0 !important; margin: 0 !important; - line-height: var(--mk-line-height-base) !important; + line-height: 24px; } sup[data-title] { diff --git a/ui/src/components/global/mk-view-layout/LayoutAside.vue b/ui/src/components/global/mk-view-layout/LayoutAside.vue index 01cf0b519ba..9ec1092a7db 100644 --- a/ui/src/components/global/mk-view-layout/LayoutAside.vue +++ b/ui/src/components/global/mk-view-layout/LayoutAside.vue @@ -1,9 +1,12 @@ + + diff --git a/ui/src/components/global/mk-view-layout/index.vue b/ui/src/components/global/mk-view-layout/index.vue index b581a2e93b8..b352ac12fce 100644 --- a/ui/src/components/global/mk-view-layout/index.vue +++ b/ui/src/components/global/mk-view-layout/index.vue @@ -22,7 +22,10 @@ interface ScrollData { scrollTop: number } -const props = withDefaults(defineProps<{ collapsible?: boolean; loading?: boolean; title?: string }>(), { collapsible: false, loading: false }) +const props = withDefaults( + defineProps<{ collapsible?: boolean; resizable?: boolean; minLeftWidth?: number; maxLeftWidth?: number; loading?: boolean; title?: string }>(), + { collapsible: false, resizable: false, loading: false }, +) const emit = defineEmits<{ scroll: [data: ScrollData] }>() @@ -128,7 +131,14 @@ defineExpose({ getScrollContainer, setScrollTop })
- + diff --git a/ui/src/conversation-panel/components/content/items/failure.vue b/ui/src/conversation-panel/components/content/items/failure.vue index aac779b9a9c..e05faffc0dc 100644 --- a/ui/src/conversation-panel/components/content/items/failure.vue +++ b/ui/src/conversation-panel/components/content/items/failure.vue @@ -9,7 +9,7 @@ defineProps<{ diff --git a/ui/src/conversation-panel/components/content/items/question/QuestionEditor.vue b/ui/src/conversation-panel/components/content/items/question/QuestionEditor.vue index 9194cb988a6..8f75a55f118 100644 --- a/ui/src/conversation-panel/components/content/items/question/QuestionEditor.vue +++ b/ui/src/conversation-panel/components/content/items/question/QuestionEditor.vue @@ -28,9 +28,9 @@ function sendQuestion() { resize="none" class="question-editor-input" /> -
+
- 取消 + 取消 发送
diff --git a/ui/src/conversation-panel/components/content/items/question/index.vue b/ui/src/conversation-panel/components/content/items/question/index.vue index a0fced537d5..036690b24d9 100644 --- a/ui/src/conversation-panel/components/content/items/question/index.vue +++ b/ui/src/conversation-panel/components/content/items/question/index.vue @@ -132,7 +132,7 @@ function getAttachmentDescription(file: QuestionAttachment) {
-
+
{{ content.content }}
appInfo.value?.show_user_avatar)