chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -49,9 +49,9 @@ import {
|
||||
|
||||
import s from './index.module.less';
|
||||
/**
|
||||
* 当有无开场白的状态变化时, 会依次一次 reflow 同时高度发生变化, useSize 监听变化后, marginTop 改变触发一次 repaint, 导致会有两次渲染, 产生抖动
|
||||
* 现在需要调和这两次渲染
|
||||
* 需要优化 onboarding dom 结构, 使得 onboarding 的居中能力是 css 实现的, 解决这个问题
|
||||
* When there is a state change with or without the opening line, it will reflow and change the height in sequence. After the useSize listens to the change, the marginTop change triggers a repaint, resulting in two renders, resulting in jitter.
|
||||
* Now we need to reconcile these two renders
|
||||
* It is necessary to optimize the onboarding dom structure so that the centering ability of onboarding is implemented by css to solve this problem
|
||||
* not-needed
|
||||
* |
|
||||
* |
|
||||
|
||||
@@ -94,8 +94,8 @@ export const BotDebugChatArea = ({
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 请勿新增或修改,review 不会通过
|
||||
* 请使用插件化方案实现
|
||||
* @deprecated Please do not add or modify, the review will not pass
|
||||
* Please use a plug-in solution to achieve
|
||||
*/
|
||||
const chatAreaComponentTypes: Partial<ComponentTypesMap> = {
|
||||
messageActionBarFooter: MessageBoxActionBarAdapter,
|
||||
|
||||
@@ -101,12 +101,12 @@ const ShortcutBarRenderImpl: React.FC<{
|
||||
})}
|
||||
onActiveShortcutChange={(shortcutInfo, isTemplateShortcutActive) => {
|
||||
activeShortcutRef.current = shortcutInfo;
|
||||
// 开启template快捷指令时,隐藏输入框&快捷指令bar
|
||||
// Hide text box & shortcut bar when opening template shortcut command
|
||||
const chatInputSlotVisible = !isTemplateShortcutActive;
|
||||
controller.setChatInputSlotVisible(chatInputSlotVisible);
|
||||
// 当template快捷指令激活时,禁用发送多模态消息
|
||||
// Disable sending multimodal messages when template shortcuts are active
|
||||
onShortcutActive?.(shortcutInfo);
|
||||
// 如果指定了agent,切换到指定的agent
|
||||
// If an agent is specified, switch to the specified agent
|
||||
if (mode === BotMode.MultiMode) {
|
||||
shortcutInfo?.agent_id && manuallySwitchAgent(shortcutInfo.agent_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user