feat: 补充物料规范已经定义的部分

This commit is contained in:
humphry.hy 2021-12-13 16:40:30 +08:00
parent c04ec1255d
commit 43a2a2ffbd
2 changed files with 13 additions and 1 deletions

View File

@ -13,5 +13,5 @@ export interface SettingEntry extends SettingTarget {
// 父级
readonly parent: SettingEntry;
get(propName: string | number): SettingEntry | null;
get: (propName: string | number) => SettingEntry | null;
}

View File

@ -52,6 +52,10 @@ export interface FieldExtraProps {
display?: 'accordion' | 'inline' | 'block' | 'plain' | 'popup' | 'entry';
// todo 这个 omit 是否合理?
liveTextEditing?: Omit<LiveTextEditingConfig, 'propTarget'>;
/**
*
*/
onChange?: (value: any, field: SettingTarget) => void;
}
export interface FieldConfig extends FieldExtraProps {
@ -77,4 +81,12 @@ export interface FieldConfig extends FieldExtraProps {
* extra props for field
*/
extraProps?: FieldExtraProps;
/**
*
*/
description?: TitleContent;
/**
*
*/
isExtends?: boolean;
}