@easy-page/react-ui
Advanced tools
Comparing version 1.0.12 to 1.0.13
import { SchemaNodeInfo } from "@easy-page/core"; | ||
import { DefaultPageProps } from "../types"; | ||
export declare const getDefaultVisible: (nodeInfo: SchemaNodeInfo<Record<string, any>, DefaultPageProps<Record<string, any>>>) => boolean; | ||
/** | ||
* - 对于节点而言 | ||
* - 非 formItem 包裹的,会自己执行副作用,允许根据自己是否有 when 来决定默认是否显示 | ||
* - formItem 包裹的,是否展示取决于:formItem,本身默认必展示。 | ||
* | ||
* @param nodeInfo | ||
* @param uiType | ||
* @returns | ||
*/ | ||
export declare const getDefaultVisible: (nodeInfo: SchemaNodeInfo<Record<string, any>, DefaultPageProps<Record<string, any>>>, options: { | ||
uiType: string; | ||
isForm: boolean; | ||
}) => boolean; |
@@ -5,2 +5,3 @@ import { Schema } from '@easy-page/core'; | ||
import { ShowChildrenMap } from '../view'; | ||
import { DevStateDeugger } from '../devStateDebugger'; | ||
export type EasyPageStoreOptions<PageState, PageProps> = { | ||
@@ -14,2 +15,3 @@ pageState: PageState; | ||
showChildren?: ShowChildrenMap<PageState>; | ||
debugger?: boolean; | ||
}; | ||
@@ -33,2 +35,3 @@ /** | ||
private uiConfig; | ||
debugger: DevStateDeugger | null; | ||
constructor(options: EasyPageStoreOptions<PageState, PageProps>); | ||
@@ -35,0 +38,0 @@ /** |
{ | ||
"name": "@easy-page/react-ui", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"main": "./index.js", | ||
@@ -36,4 +36,5 @@ "types": "./index.d.ts", | ||
"@easy-page/core": "^1.0.3", | ||
"flatted": "^3.3.1", | ||
"lodash": "^4.17.21" | ||
} | ||
} |
@@ -68,2 +68,4 @@ /// <reference types="react" /> | ||
showChildren?: ShowChildrenMap<PageState>; | ||
/** 开启 debug 将会在 window 上存储状态变化日志 */ | ||
debugger?: boolean; | ||
}; | ||
@@ -70,0 +72,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1008349
35
5386
7
+ Addedflatted@^3.3.1
+ Addedflatted@3.3.3(transitive)