Skip to content

Commit caffc0c

Browse files
JackLianliujuping
authored andcommitted
chore: add messages to IRendererProps
1 parent 01ce70c commit caffc0c

File tree

1 file changed

+7
-1
lines changed
  • packages/renderer-core/src/types

1 file changed

+7
-1
lines changed

packages/renderer-core/src/types/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,16 @@ export interface IRendererProps {
9898
id?: string | number;
9999
/** 语言 */
100100
locale?: string;
101+
/**
102+
* 多语言语料
103+
* 配置规范参见《低代码搭建组件描述协议》https://lowcode-engine.cn/lowcode 中 2.6 国际化多语言支持
104+
* */
105+
messages?: Record<string, any>;
101106
/** 主要用于设置渲染模块的全局上下文,里面定义的内容可以在低代码中通过 this 来访问,比如 this.utils */
102107
appHelper?: IRendererAppHelper;
103108
/**
104-
* 配置规范参见《中后台搭建组件描述协议》,主要在搭建场景中使用,用于提升用户搭建体验。
109+
* 配置规范参见《低代码搭建组件描述协议》https://lowcode-engine.cn/lowcode
110+
* 主要在搭建场景中使用,用于提升用户搭建体验。
105111
*
106112
* > 在生产环境下不需要设置
107113
*/

0 commit comments

Comments
 (0)