docs: 补完 ts 类型定义

This commit is contained in:
humphry.hy 2021-12-14 14:53:27 +08:00
parent 5f65901447
commit d82f3f587f
7 changed files with 33 additions and 15 deletions

View File

@ -27,7 +27,9 @@ export interface Package {
*/
library: string;
/**
* @todo @jinchan
* @deprecated
*
* @todo @度城
*/
async?: boolean;
/**

View File

@ -96,11 +96,11 @@ export interface FieldConfig extends FieldExtraProps {
*/
extraProps?: FieldExtraProps;
/**
* @todo
* @deprecated
*/
description?: TitleContent;
/**
* @todo
* @deprecated
*/
isExtends?: boolean;
}

View File

@ -101,11 +101,13 @@ export interface Snippet {
*/
screenshot?: string;
/**
* @todo snippet
* snippet
*
* @deprecated 使
*/
label?: string;
/**
* @todo
* schema
*/
schema?: NodeSchema;
}
@ -132,7 +134,7 @@ export interface Experimental {
*/
context?: { [contextInfoName: string]: any };
/**
* @todo
* @deprecated 使 metadata snippets
*/
snippets?: Snippet[];
/**
@ -160,7 +162,7 @@ export interface Experimental {
*/
callbacks?: Callbacks;
/**
* @todo
* children
*/
initialChildren?: NodeData[] | ((target: SettingTarget) => NodeData[]);
/**
@ -201,7 +203,7 @@ export interface Experimental {
liveTextEditing?: LiveTextEditingConfig[];
/**
* @todo
* @deprecated 使
*/
isTopFixed?: boolean;
}

View File

@ -59,7 +59,7 @@ export interface PropConfig {
*/
defaultValue?: any;
/**
* @todo
* @deprecated
*/
setter?: any;
}

View File

@ -168,6 +168,7 @@ export interface SlotSchema extends NodeSchema {
*
*/
export interface ProjectSchema {
id?: string;
/**
*
*/
@ -191,7 +192,7 @@ export interface ProjectSchema {
*/
utils?: UtilsMap;
/**
* @todo
*
*/
constants?: JSONObject;
/**
@ -206,10 +207,6 @@ export interface ProjectSchema {
*
*/
config?: AppConfig | Record<string, any>;
/**
* @todo
*/
id?: string;
/**
*
*/

View File

@ -18,7 +18,6 @@ export type DynamicSetter = (target: SettingTarget) => string | SetterConfig | C
/**
*
* @todo
*/
export interface SetterConfig {
// if *string* passed must be a registered Setter Name

View File

@ -3,11 +3,29 @@ import { I18nData, isI18nData } from './i18n';
import { TipContent } from './tip';
import { IconType } from './icon';
/**
* props setter title
*/
export interface TitleConfig {
/**
*
*/
label?: I18nData | ReactNode;
/**
* hover
*/
tip?: TipContent;
/**
*
*/
docUrl?: string;
/**
*
*/
icon?: IconType;
/**
* CSS
*/
className?: string;
}