mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
feat: update ts defined
This commit is contained in:
parent
43921cea2d
commit
de95b87b1e
@ -1,8 +1,9 @@
|
|||||||
import { IPublicModelWindow } from '../model';
|
import { IPublicModelWindow } from '../model';
|
||||||
import { IPublicApiPlugins, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types';
|
import { IPublicApiPlugins, IPublicApiSkeleton, IPublicModelResource, IPublicResourceList, IPublicTypeDisposable, IPublicTypeResourceType } from '@alilc/lowcode-types';
|
||||||
|
|
||||||
export interface IPublicApiWorkspace<
|
export interface IPublicApiWorkspace<
|
||||||
Plugins = IPublicApiPlugins,
|
Plugins = IPublicApiPlugins,
|
||||||
|
Skeleton = IPublicApiSkeleton,
|
||||||
ModelWindow = IPublicModelWindow,
|
ModelWindow = IPublicModelWindow,
|
||||||
Resource = IPublicModelResource,
|
Resource = IPublicModelResource,
|
||||||
> {
|
> {
|
||||||
@ -15,6 +16,8 @@ export interface IPublicApiWorkspace<
|
|||||||
|
|
||||||
plugins: Plugins;
|
plugins: Plugins;
|
||||||
|
|
||||||
|
skeleton: Skeleton;
|
||||||
|
|
||||||
/** 当前设计器的编辑窗口 */
|
/** 当前设计器的编辑窗口 */
|
||||||
windows: ModelWindow[];
|
windows: ModelWindow[];
|
||||||
|
|
||||||
|
|||||||
@ -1,22 +1,10 @@
|
|||||||
|
import { IPublicTypePropType } from './prop-types';
|
||||||
|
|
||||||
// 定义命令处理函数的参数类型
|
// 定义命令处理函数的参数类型
|
||||||
export interface IPublicTypeCommandHandlerArgs {
|
export interface IPublicTypeCommandHandlerArgs {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 定义复杂参数类型的接口
|
|
||||||
export interface IPublicTypeCommandPropType {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 参数基础类型
|
|
||||||
*/
|
|
||||||
type: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 参数是否必需(可选)
|
|
||||||
*/
|
|
||||||
isRequired?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 定义命令参数的接口
|
// 定义命令参数的接口
|
||||||
export interface IPublicTypeCommandParameter {
|
export interface IPublicTypeCommandParameter {
|
||||||
|
|
||||||
@ -28,7 +16,7 @@ export interface IPublicTypeCommandParameter {
|
|||||||
/**
|
/**
|
||||||
* 参数类型或详细类型描述
|
* 参数类型或详细类型描述
|
||||||
*/
|
*/
|
||||||
propType: string | IPublicTypeCommandPropType;
|
propType: string | IPublicTypePropType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参数描述
|
* 参数描述
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user