diff --git a/docs/demos/chat/file-drop-paste.vue b/docs/demos/chat/file-drop-paste.vue new file mode 100644 index 0000000000..aa5186c3db --- /dev/null +++ b/docs/demos/chat/file-drop-paste.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/docs/demos/chat/input-controls.vue b/docs/demos/chat/input-controls.vue new file mode 100644 index 0000000000..104c6a9ac9 --- /dev/null +++ b/docs/demos/chat/input-controls.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/docs/demos/chat/message-anchor.vue b/docs/demos/chat/message-anchor.vue new file mode 100644 index 0000000000..e06d8beb63 --- /dev/null +++ b/docs/demos/chat/message-anchor.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/docs/demos/chat/sender-options.vue b/docs/demos/chat/sender-options.vue index a60e5efb5a..6e457eefb1 100644 --- a/docs/demos/chat/sender-options.vue +++ b/docs/demos/chat/sender-options.vue @@ -7,6 +7,12 @@ import { useChatCaseRuntime } from './shared/createChatRuntime' const showHelp = shallowRef(false) const currentTemplate = shallowRef([]) +const helpText = computed(() => { + if (currentTemplate.value.length > 1) + return '报告模板已填入,文本块可以编辑,下拉字段可以选择。内容超过 300 字时无法提交。' + if (currentTemplate.value.length) return '常用问题已填入,可以修改后发送。内容超过 300 字时无法提交。' + return '@ 用于插入对象名称,不会切换模型;点击“写报告”或“常用问题”填入内容。' +}) const mentions: MentionItem[] = [ { label: '产品组', value: 'product' }, { label: '研发组', value: 'engineering' }, @@ -86,7 +92,7 @@ function fillCommonQuestion() {