@flatbiz/pro-layout 4.2.0 → 4.2.1
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 -3
- 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
|
*/
|
|
@@ -305,7 +306,12 @@ export declare const bootstrap: (options: BootstrapOptions) => void;
|
|
|
305
306
|
export declare let message: MessageInstance;
|
|
306
307
|
export declare let notification: NotificationInstance;
|
|
307
308
|
export declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
308
|
-
export
|
|
309
|
+
export type BreadProps = {
|
|
310
|
+
breads?: BreadsData;
|
|
311
|
+
breadTitle?: string | ReactElement;
|
|
312
|
+
children?: ReactElement;
|
|
313
|
+
};
|
|
314
|
+
export declare const Bread: (props: BreadProps) => JSX.Element | null;
|
|
309
315
|
export type HistoryBackProps = {
|
|
310
316
|
breads: BreadsData;
|
|
311
317
|
level?: number;
|
|
@@ -411,6 +417,7 @@ export declare const useIframe: <T>(onReceivedMessageCallback?: IframeHandler<T>
|
|
|
411
417
|
export declare const LayoutPage: (props: {
|
|
412
418
|
style?: CSSProperties;
|
|
413
419
|
children?: ReactElement;
|
|
420
|
+
hideHeader?: boolean;
|
|
414
421
|
}) => JSX.Element;
|
|
415
422
|
|
|
416
423
|
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.1",
|
|
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",
|