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; library: string;
/** /**
* @todo @jinchan * @deprecated
*
* @todo @度城
*/ */
async?: boolean; async?: boolean;
/** /**

View File

@ -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;
} }

View File

@ -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;
} }

View File

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

View File

@ -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;
/** /**
* *
*/ */

View File

@ -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

View File

@ -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;
} }