@easy-page/react-ui
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -7,1 +7,9 @@ export declare enum TriggerChangeSence { | ||
} | ||
export declare enum DefaultValueSource { | ||
/** 来源于表单的 Props */ | ||
FromProps = "FromProps", | ||
/** 来源于 preprocess 计算 */ | ||
FromPreprocess = "FromPreprocess", | ||
/** 来源于 node 本身配置 */ | ||
FromNode = "fromNode" | ||
} |
@@ -0,4 +1,11 @@ | ||
import { DefaultValueSource } from './const'; | ||
export declare const generateId: (prefix: string) => string; | ||
export type DevStateDeuggerOptions = { | ||
formId: string; | ||
}; | ||
export type DefaultValueInfo = { | ||
id: string; | ||
value: any; | ||
source: DefaultValueSource; | ||
}; | ||
export type LoggerInfo = { | ||
@@ -14,3 +21,6 @@ time: number; | ||
constructor({ formId }: DevStateDeuggerOptions); | ||
getStore(): Record<string, LoggerInfo[]>; | ||
getFieldKey(id: string): string; | ||
printDefaultValueLog(id: string): void; | ||
setValuesInfo(logsInfo: Record<string, DefaultValueInfo>): void; | ||
getStore(): Record<string, LoggerInfo[] | DefaultValueInfo[]>; | ||
setStore(id: string, loggs: LoggerInfo[]): void; | ||
@@ -17,0 +27,0 @@ printLogs(id: string): void; |
@@ -5,3 +5,3 @@ import { Schema } from '@easy-page/core'; | ||
import { ShowChildrenMap } from '../view'; | ||
import { DevStateDeugger } from '../devStateDebugger'; | ||
import { DefaultValueInfo, DevStateDeugger } from '../devStateDebugger'; | ||
export type EasyPageStoreOptions<PageState, PageProps> = { | ||
@@ -16,2 +16,3 @@ pageState: PageState; | ||
debugger?: boolean; | ||
logsInfo?: Record<string, DefaultValueInfo>; | ||
}; | ||
@@ -18,0 +19,0 @@ /** |
{ | ||
"name": "@easy-page/react-ui", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1007091
5405