@flatbiz/pro-layout 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.css +1 -1
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/index.d.ts +10 -4
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export type BootstrapOptions = {
|
|
|
179
179
|
*/
|
|
180
180
|
LayoutComponent?: ComponentType<{
|
|
181
181
|
style?: CSSProperties;
|
|
182
|
+
hideHeader?: boolean;
|
|
182
183
|
}>;
|
|
183
184
|
ErrorFallback?: ComponentType<FallbackProps>;
|
|
184
185
|
/**
|
|
@@ -206,11 +207,11 @@ export type BootstrapOptions = {
|
|
|
206
207
|
/**
|
|
207
208
|
* 面包屑起始标题
|
|
208
209
|
*/
|
|
209
|
-
breadTitle?: string |
|
|
210
|
+
breadTitle?: string | ReactElement;
|
|
210
211
|
/**
|
|
211
212
|
* 面包屑位置功能扩展
|
|
212
213
|
*/
|
|
213
|
-
breadExtendRender?:
|
|
214
|
+
breadExtendRender?: ReactElement;
|
|
214
215
|
/**
|
|
215
216
|
* 隐藏默认设置的面包屑,默认值false
|
|
216
217
|
*/
|
|
@@ -285,7 +286,6 @@ export type LayoutCtxProps = {
|
|
|
285
286
|
onChangeCollapsed: (boo: boolean) => void;
|
|
286
287
|
selectedKeys: string[];
|
|
287
288
|
opendKeys: string[];
|
|
288
|
-
onChangeSiderBarMenuActiveItem: (id?: string) => void;
|
|
289
289
|
onChangeSelectedKeys: (selectedKeys: string[]) => void;
|
|
290
290
|
onChangeOpendKeys: (opendKeys: string[]) => void;
|
|
291
291
|
addOrUpdateIframeTab: (item: TMenuItem) => void;
|
|
@@ -305,7 +305,12 @@ export declare const bootstrap: (options: BootstrapOptions) => void;
|
|
|
305
305
|
export declare let message: MessageInstance;
|
|
306
306
|
export declare let notification: NotificationInstance;
|
|
307
307
|
export declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
308
|
-
export
|
|
308
|
+
export type BreadProps = {
|
|
309
|
+
breads?: BreadsData;
|
|
310
|
+
breadTitle?: string | ReactElement;
|
|
311
|
+
children?: ReactElement;
|
|
312
|
+
};
|
|
313
|
+
export declare const Bread: (props: BreadProps) => JSX.Element | null;
|
|
309
314
|
export type HistoryBackProps = {
|
|
310
315
|
breads: BreadsData;
|
|
311
316
|
level?: number;
|
|
@@ -411,6 +416,7 @@ export declare const useIframe: <T>(onReceivedMessageCallback?: IframeHandler<T>
|
|
|
411
416
|
export declare const LayoutPage: (props: {
|
|
412
417
|
style?: CSSProperties;
|
|
413
418
|
children?: ReactElement;
|
|
419
|
+
hideHeader?: boolean;
|
|
414
420
|
}) => JSX.Element;
|
|
415
421
|
|
|
416
422
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"node": ">=13.8.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@better-scroll/mouse-wheel": "
|
|
30
|
-
"@better-scroll/observe-dom": "
|
|
31
|
-
"@better-scroll/scroll-bar": "
|
|
32
|
-
"enquire.js": "
|
|
29
|
+
"@better-scroll/mouse-wheel": "2.5.0",
|
|
30
|
+
"@better-scroll/observe-dom": "2.5.0",
|
|
31
|
+
"@better-scroll/scroll-bar": "2.5.0",
|
|
32
|
+
"enquire.js": "2.1.6"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@ant-design/icons": ">=5.0.1",
|