@easy-page/react-ui
Advanced tools
Comparing version 0.1.28 to 0.1.29
{ | ||
"name": "@easy-page/react-ui", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
@@ -10,2 +10,3 @@ import { DataContext, EffectActionType, EffectKeys, Schema, SchemaNodeOption, Validate, WhenType } from '@easy-page/core'; | ||
rootUIConfig?: FieldUIConfig; | ||
commonUIConfig?: FieldUIConfig; | ||
}; | ||
@@ -12,0 +13,0 @@ export type PageInfo<PageState, PageProps> = { |
@@ -20,3 +20,3 @@ /// <reference types="react" /> | ||
effectedKeys?: EffectKeys<PageState, PageProps>; | ||
}): NodeInfo<FieldType, PageState, PageProps, EffectResultType> | NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>; | ||
}): NodeInfoWithChildren<FieldType, PageState, PageProps, EffectResultType>; | ||
/** | ||
@@ -23,0 +23,0 @@ * 节点-无 FormItem 包裹 |
@@ -22,2 +22,9 @@ import { DataContext, Schema } from '@easy-page/core'; | ||
}; | ||
export type ForEachOptions = { | ||
showChildren?: (context: { | ||
fieldValue: any; | ||
parentNode: Schema<any>; | ||
curNode: Schema<any>; | ||
}) => boolean; | ||
}; | ||
export declare abstract class FormUtil<PageState> { | ||
@@ -32,5 +39,5 @@ abstract store: EasyPageStore<unknown, any>; | ||
/** 获取表单中可见的表单数据,未执行 postprocess */ | ||
abstract getVisibleData(): Partial<PageState>; | ||
abstract getVisibleData(options?: ForEachOptions): Partial<PageState>; | ||
/** 执行完 postprocess、且表单中可见的表单数据 */ | ||
abstract getFormData(): Partial<PageState>; | ||
abstract getFormData(options?: ForEachOptions): Partial<PageState>; | ||
/** 原始的页面数据:表单的所有数据,无论可见与否,未执行:postprocess */ | ||
@@ -50,3 +57,3 @@ abstract getOriginFormData(): Partial<PageState>; | ||
context: DataContext<any, any, any>; | ||
}) => boolean): void; | ||
}) => boolean, options?: ForEachOptions): void; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
986981
5184