@flatbiz/pro-layout 4.3.14 → 4.3.16
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 -10
- package/esm/index.js.map +1 -1
- package/index.d.ts +25 -4
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
/// <reference types="prop-types" />
|
|
2
3
|
/// <reference types="scheduler" />
|
|
3
4
|
|
|
@@ -122,6 +123,22 @@ export type BootstrapOptions = {
|
|
|
122
123
|
* ```
|
|
123
124
|
*/
|
|
124
125
|
routeList: TRouteItemProps[];
|
|
126
|
+
/**
|
|
127
|
+
* 面包屑配置
|
|
128
|
+
* ```
|
|
129
|
+
* 例如:
|
|
130
|
+
* 模块地址:a/b
|
|
131
|
+
* export const breadConfig: Record<string, BreadRoute[]> = {
|
|
132
|
+
* 'a/b': [
|
|
133
|
+
* { name: 'HOME', path: '', to: '' },
|
|
134
|
+
* { name: 'DETAIL', path: 'detail', to: '' },
|
|
135
|
+
* { name: 'LIST', path: ':id/list', to: '' },
|
|
136
|
+
* ],
|
|
137
|
+
* };
|
|
138
|
+
* 注意:
|
|
139
|
+
* 1. 当路由中存在动态变量时,配置在动态面包屑中动态变量必须与动态路由中的变量相同
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
125
142
|
breads?: BreadsData;
|
|
126
143
|
/**
|
|
127
144
|
* layout模式
|
|
@@ -293,6 +310,10 @@ export type BootstrapOptions = {
|
|
|
293
310
|
MenuEmptyRender?: ReactElement;
|
|
294
311
|
/** disableTopbarMenu != true模式下,未配置到菜单,隐藏侧边栏,默认值:true */
|
|
295
312
|
unMatchHiddenSiderBar?: boolean;
|
|
313
|
+
/** 侧边栏是否显示搜索框 */
|
|
314
|
+
sliderBarSearch?: boolean;
|
|
315
|
+
/** iframeTab 页面可独立访问 */
|
|
316
|
+
iframeTabAloneView?: boolean;
|
|
296
317
|
};
|
|
297
318
|
export type LayoutCtxProps = {
|
|
298
319
|
menus: TMenuItem[];
|
|
@@ -335,7 +356,7 @@ export declare let modal: Omit<ModalStaticFunctions, "warn">;
|
|
|
335
356
|
export type BreadProps = {
|
|
336
357
|
children?: ReactElement;
|
|
337
358
|
};
|
|
338
|
-
export declare const Bread: (props: BreadProps) => JSX.Element | null;
|
|
359
|
+
export declare const Bread: (props: BreadProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
339
360
|
export type HistoryBackProps = ButtonWrapperProps & {
|
|
340
361
|
breads: BreadsData;
|
|
341
362
|
level?: number;
|
|
@@ -355,7 +376,7 @@ export type HistoryBackProps = ButtonWrapperProps & {
|
|
|
355
376
|
* 5. onClick返回 promise reject,则不会进行回退处理(V4.2.4)
|
|
356
377
|
* ```
|
|
357
378
|
*/
|
|
358
|
-
export declare const HistoryBackButton: (props: HistoryBackProps) => JSX.Element;
|
|
379
|
+
export declare const HistoryBackButton: (props: HistoryBackProps) => import("react/jsx-runtime").JSX.Element;
|
|
359
380
|
export declare const useHistoryBack: (props: HistoryBackProps) => {
|
|
360
381
|
path: string;
|
|
361
382
|
};
|
|
@@ -379,7 +400,7 @@ export interface PageProps {
|
|
|
379
400
|
* @param props
|
|
380
401
|
* @returns
|
|
381
402
|
*/
|
|
382
|
-
export declare const Page: (props: PageProps) => JSX.Element;
|
|
403
|
+
export declare const Page: (props: PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
383
404
|
export type PageWrapperServiceConfig = {
|
|
384
405
|
onRequest: (params?: TAny) => Promise<TPlainObject>;
|
|
385
406
|
params?: TPlainObject | (() => TPlainObject);
|
|
@@ -457,6 +478,6 @@ export declare const LayoutPage: (props: {
|
|
|
457
478
|
children?: ReactElement;
|
|
458
479
|
hideHeader?: boolean;
|
|
459
480
|
elementId?: string;
|
|
460
|
-
}) => JSX.Element;
|
|
481
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
461
482
|
|
|
462
483
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatbiz/pro-layout",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.16",
|
|
4
4
|
"description": "WEB菜单布局",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@dimjs/utils": ">=1.2.33",
|
|
40
40
|
"@wove/react": ">=1.2.22",
|
|
41
41
|
"@flatbiz/antd": ">=4.2.0",
|
|
42
|
-
"antd": ">=5.
|
|
42
|
+
"antd": ">=5.5.1",
|
|
43
43
|
"react": ">=18.2.0",
|
|
44
44
|
"react-dom": ">=18.2.0",
|
|
45
45
|
"react-router": ">=6.8.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@dimjs/model-react": "^1.1.8",
|
|
54
54
|
"@dimjs/utils": "^1.2.23",
|
|
55
55
|
"@wove/react": "^1.2.22",
|
|
56
|
-
"antd": "
|
|
56
|
+
"antd": "5.5.1",
|
|
57
57
|
"react": "18.2.0",
|
|
58
58
|
"react-dom": "18.2.0",
|
|
59
59
|
"react-router": "^6.6.1",
|