@flatbiz/pro-layout 4.2.2 → 4.2.4

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/index.d.ts CHANGED
@@ -1,17 +1,15 @@
1
1
  /// <reference types="prop-types" />
2
2
  /// <reference types="scheduler" />
3
3
 
4
- import { ButtonProps, MenuProps } from 'antd';
5
- import { ConfigProviderProps } from 'antd/es/config-provider';
4
+ import { ButtonWrapperProps, ConfigProviderWrapperProps } from '@flatbiz/antd';
5
+ import { TAny, TPlainObject } from '@flatbiz/utils';
6
+ import { MenuProps } from 'antd';
6
7
  import { MessageInstance } from 'antd/es/message/interface';
7
8
  import { ModalStaticFunctions } from 'antd/es/modal/confirm';
8
9
  import { NotificationInstance } from 'antd/es/notification/interface';
9
10
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
10
11
  import { CSSProperties, ComponentType, ReactElement } from 'react';
11
12
 
12
- export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
13
- locale?: "en" | "zh-cn";
14
- };
15
13
  export interface FallbackProps {
16
14
  error: Error;
17
15
  resetErrorBoundary: (...args: Array<unknown>) => void;
@@ -311,7 +309,7 @@ export type BreadProps = {
311
309
  children?: ReactElement;
312
310
  };
313
311
  export declare const Bread: (props: BreadProps) => JSX.Element | null;
314
- export type HistoryBackProps = {
312
+ export type HistoryBackProps = ButtonWrapperProps & {
315
313
  breads: BreadsData;
316
314
  level?: number;
317
315
  };
@@ -327,9 +325,10 @@ export type HistoryBackProps = {
327
325
  * 因为内部iframe和外部浏览器共用history历史记录,导致里外浏览器栈混乱
328
326
  * 4. 什么场景使用
329
327
  * 使用iframe tab的项目,在执行路由回退时使用
328
+ * 5. onClick返回 promise reject,则不会进行回退处理(V4.2.4)
330
329
  * ```
331
330
  */
332
- export declare const HistoryBackButton: (props: HistoryBackProps & ButtonProps) => JSX.Element;
331
+ export declare const HistoryBackButton: (props: HistoryBackProps) => JSX.Element;
333
332
  export declare const useHistoryBack: (props: HistoryBackProps) => {
334
333
  path: string;
335
334
  };
@@ -342,8 +341,6 @@ export interface PageProps {
342
341
  children?: ReactElement | ReactElement[];
343
342
  }
344
343
  export declare const Page: (props: PageProps) => JSX.Element;
345
- export type TAny = any;
346
- export type TPlainObject<T = TAny> = Record<string, T>;
347
344
  export type PageWrapperServiceConfig = {
348
345
  onRequest: (params?: TAny) => Promise<TPlainObject>;
349
346
  params?: TPlainObject | (() => TPlainObject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/pro-layout",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "description": "WEB菜单布局",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",