mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
feat: update types define
This commit is contained in:
parent
ebdcc41461
commit
4d03610fd3
@ -1,5 +1,5 @@
|
|||||||
export interface IPublicTypePluginConfig {
|
export interface IPublicTypePluginConfig {
|
||||||
init(): Promise<void>;
|
init(): Promise<void> | void;
|
||||||
destroy?(): Promise<void>;
|
destroy?(): Promise<void> | void;
|
||||||
exports?(): any;
|
exports?(): any;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import React from 'react';
|
||||||
import { IPublicTypeEditorView } from './editor-view';
|
import { IPublicTypeEditorView } from './editor-view';
|
||||||
|
|
||||||
export interface IPublicResourceTypeConfig {
|
export interface IPublicResourceTypeConfig {
|
||||||
@ -6,7 +7,7 @@ export interface IPublicResourceTypeConfig {
|
|||||||
description?: string;
|
description?: string;
|
||||||
|
|
||||||
/** 资源 icon 标识 */
|
/** 资源 icon 标识 */
|
||||||
icon?: React.ReactElement;
|
icon?: React.ReactElement | React.FunctionComponent | React.ComponentClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认视图类型
|
* 默认视图类型
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { IPublicResourceTypeConfig } from './resource-type-config';
|
|||||||
export interface IPublicTypeResourceType {
|
export interface IPublicTypeResourceType {
|
||||||
resourceName: string;
|
resourceName: string;
|
||||||
|
|
||||||
resourceType: 'editor' | 'webview';
|
resourceType: 'editor' | 'webview' | string;
|
||||||
|
|
||||||
(ctx: IPublicModelPluginContext, options: Object): IPublicResourceTypeConfig;
|
(ctx: IPublicModelPluginContext, options: Object): IPublicResourceTypeConfig;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user