@flatbiz/pro-layout 4.4.25 → 4.4.27
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.js +1 -1
- package/esm/index.js.map +1 -1
- package/index.d.ts +16 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -569,6 +569,12 @@ export type BootstrapOptions = {
|
|
|
569
569
|
hideBreadsPathList?: string[];
|
|
570
570
|
/** iframeTab 激活事件 */
|
|
571
571
|
onIframeTabActiveEvent?: (item: TPlainObject) => void;
|
|
572
|
+
/** iframeTab 渲染前处理函数,只有execute返回Promise.resolve()时,才会继续渲染 */
|
|
573
|
+
iframeTabRenderPreHook?: {
|
|
574
|
+
execute: () => Promise<void>;
|
|
575
|
+
/** 执行异常渲染 */
|
|
576
|
+
errorRender?: (data?: TPlainObject) => ReactElement;
|
|
577
|
+
};
|
|
572
578
|
};
|
|
573
579
|
export type LayoutCtxProps = {
|
|
574
580
|
menus: TMenuItem[];
|
|
@@ -711,6 +717,16 @@ export type IframeApiProps = {
|
|
|
711
717
|
closedIframeTabToPrevlink: () => IframeApiProps;
|
|
712
718
|
/** 当前tabItem小红点实现切换 */
|
|
713
719
|
tabItemRedDotToggle: (visible: boolean) => void;
|
|
720
|
+
/**
|
|
721
|
+
* iframeTab操作
|
|
722
|
+
* ```
|
|
723
|
+
* 1. removeOther - 移除其他iframe-tab
|
|
724
|
+
* 2. removeAll - 移除所有iframe-tab
|
|
725
|
+
* 3. removeMe - 移除当前iframe-tab
|
|
726
|
+
* 4. refreshMe - 刷新当前iframe-tab
|
|
727
|
+
* ```
|
|
728
|
+
*/
|
|
729
|
+
iframeTabOperation: (type: "removeOther" | "removeAll" | "removeMe" | "refreshMe") => void;
|
|
714
730
|
};
|
|
715
731
|
/**
|
|
716
732
|
* 使用Iframe通讯的API
|