chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -91,7 +91,7 @@ export class LibraryBlockWidgetType extends WidgetType {
|
||||
}
|
||||
|
||||
if (!this.mounted) {
|
||||
// 同步渲染,避免抖动
|
||||
// Synchronized rendering to avoid jitter
|
||||
this.renderLibraryBlock(this.options);
|
||||
this.renderTooltip(this.options);
|
||||
this.mounted = true;
|
||||
@@ -271,7 +271,7 @@ export const LibraryBlockWidgetReactCom = (props: {
|
||||
</span>
|
||||
);
|
||||
|
||||
// 只在tooltipConfig存在时渲染Tooltip
|
||||
// Render Tooltip only if tooltipConfig exists
|
||||
if (!tooltipConfig) {
|
||||
return baseElement;
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ export const LibrarySearchPopover = ({
|
||||
setToPosition(toB);
|
||||
setVisible(true);
|
||||
} else {
|
||||
// 一些场景输入 { 不应该弹出提示面板
|
||||
// 如:光标在 {{ }} 内,或在 {% %} 内,或在 {# #} 内
|
||||
// Some scene input {should not pop up the prompt panel
|
||||
// For example, the cursor is within {{ }} , or within {% %} , or within {# #}
|
||||
setVisible(false);
|
||||
}
|
||||
} else {
|
||||
@@ -114,7 +114,7 @@ export const LibrarySearchPopover = ({
|
||||
}),
|
||||
},
|
||||
});
|
||||
// 去除插入的快捷键, 因为原来自动添加了
|
||||
// Remove the inserted shortcut, because the original was automatically added
|
||||
templateParser.insertTemplateByRange(editor, template, {
|
||||
from: position,
|
||||
to: toPosition,
|
||||
|
||||
@@ -57,7 +57,7 @@ const defaultLibraryBlockInfo: Record<
|
||||
icon: imageIcon,
|
||||
},
|
||||
};
|
||||
// 根据资源类型获取对应的信息
|
||||
// Get the corresponding information according to the resource type
|
||||
export const getLibraryBlockInfoFromTemplate = (props: {
|
||||
template: string;
|
||||
templateParser: TemplateParser;
|
||||
|
||||
Reference in New Issue
Block a user