mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 18:37:07 +00:00
docs: 补完 ts 类型定义
This commit is contained in:
parent
5f65901447
commit
d82f3f587f
@ -27,7 +27,9 @@ export interface Package {
|
|||||||
*/
|
*/
|
||||||
library: string;
|
library: string;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档 @jinchan
|
* @deprecated
|
||||||
|
*
|
||||||
|
* @todo 需推进提案 @度城
|
||||||
*/
|
*/
|
||||||
async?: boolean;
|
async?: boolean;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -96,11 +96,11 @@ export interface FieldConfig extends FieldExtraProps {
|
|||||||
*/
|
*/
|
||||||
extraProps?: FieldExtraProps;
|
extraProps?: FieldExtraProps;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
description?: TitleContent;
|
description?: TitleContent;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
isExtends?: boolean;
|
isExtends?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -101,11 +101,13 @@ export interface Snippet {
|
|||||||
*/
|
*/
|
||||||
screenshot?: string;
|
screenshot?: string;
|
||||||
/**
|
/**
|
||||||
* @todo snippet 打标
|
* snippet 打标
|
||||||
|
*
|
||||||
|
* @deprecated 暂未使用
|
||||||
*/
|
*/
|
||||||
label?: string;
|
label?: string;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* 待插入的 schema
|
||||||
*/
|
*/
|
||||||
schema?: NodeSchema;
|
schema?: NodeSchema;
|
||||||
}
|
}
|
||||||
@ -132,7 +134,7 @@ export interface Experimental {
|
|||||||
*/
|
*/
|
||||||
context?: { [contextInfoName: string]: any };
|
context?: { [contextInfoName: string]: any };
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @deprecated 使用组件 metadata 上的 snippets 字段即可
|
||||||
*/
|
*/
|
||||||
snippets?: Snippet[];
|
snippets?: Snippet[];
|
||||||
/**
|
/**
|
||||||
@ -160,7 +162,7 @@ export interface Experimental {
|
|||||||
*/
|
*/
|
||||||
callbacks?: Callbacks;
|
callbacks?: Callbacks;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* 拖入容器时,自动带入 children 列表
|
||||||
*/
|
*/
|
||||||
initialChildren?: NodeData[] | ((target: SettingTarget) => NodeData[]);
|
initialChildren?: NodeData[] | ((target: SettingTarget) => NodeData[]);
|
||||||
/**
|
/**
|
||||||
@ -201,7 +203,7 @@ export interface Experimental {
|
|||||||
liveTextEditing?: LiveTextEditingConfig[];
|
liveTextEditing?: LiveTextEditingConfig[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @deprecated 暂未使用
|
||||||
*/
|
*/
|
||||||
isTopFixed?: boolean;
|
isTopFixed?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export interface PropConfig {
|
|||||||
*/
|
*/
|
||||||
defaultValue?: any;
|
defaultValue?: any;
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @deprecated 已被弃用
|
||||||
*/
|
*/
|
||||||
setter?: any;
|
setter?: any;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,6 +168,7 @@ export interface SlotSchema extends NodeSchema {
|
|||||||
* 应用描述
|
* 应用描述
|
||||||
*/
|
*/
|
||||||
export interface ProjectSchema {
|
export interface ProjectSchema {
|
||||||
|
id?: string;
|
||||||
/**
|
/**
|
||||||
* 当前应用协议版本号
|
* 当前应用协议版本号
|
||||||
*/
|
*/
|
||||||
@ -191,7 +192,7 @@ export interface ProjectSchema {
|
|||||||
*/
|
*/
|
||||||
utils?: UtilsMap;
|
utils?: UtilsMap;
|
||||||
/**
|
/**
|
||||||
* @todo 待文档定义
|
* 应用范围内的全局常量
|
||||||
*/
|
*/
|
||||||
constants?: JSONObject;
|
constants?: JSONObject;
|
||||||
/**
|
/**
|
||||||
@ -206,10 +207,6 @@ export interface ProjectSchema {
|
|||||||
* 当前应用配置信息
|
* 当前应用配置信息
|
||||||
*/
|
*/
|
||||||
config?: AppConfig | Record<string, any>;
|
config?: AppConfig | Record<string, any>;
|
||||||
/**
|
|
||||||
* @todo 待补充文档
|
|
||||||
*/
|
|
||||||
id?: string;
|
|
||||||
/**
|
/**
|
||||||
* 当前应用元数据信息
|
* 当前应用元数据信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -18,7 +18,6 @@ export type DynamicSetter = (target: SettingTarget) => string | SetterConfig | C
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置器配置
|
* 设置器配置
|
||||||
* @todo
|
|
||||||
*/
|
*/
|
||||||
export interface SetterConfig {
|
export interface SetterConfig {
|
||||||
// if *string* passed must be a registered Setter Name
|
// if *string* passed must be a registered Setter Name
|
||||||
|
|||||||
@ -3,11 +3,29 @@ import { I18nData, isI18nData } from './i18n';
|
|||||||
import { TipContent } from './tip';
|
import { TipContent } from './tip';
|
||||||
import { IconType } from './icon';
|
import { IconType } from './icon';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述 props 的 setter title
|
||||||
|
*/
|
||||||
export interface TitleConfig {
|
export interface TitleConfig {
|
||||||
|
/**
|
||||||
|
* 文字描述
|
||||||
|
*/
|
||||||
label?: I18nData | ReactNode;
|
label?: I18nData | ReactNode;
|
||||||
|
/**
|
||||||
|
* hover 后的展现内容
|
||||||
|
*/
|
||||||
tip?: TipContent;
|
tip?: TipContent;
|
||||||
|
/**
|
||||||
|
* 文档链接,暂未实现
|
||||||
|
*/
|
||||||
docUrl?: string;
|
docUrl?: string;
|
||||||
|
/**
|
||||||
|
* 图标
|
||||||
|
*/
|
||||||
icon?: IconType;
|
icon?: IconType;
|
||||||
|
/**
|
||||||
|
* CSS 类
|
||||||
|
*/
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user