@jiaozhiye/qm-design-react 1.7.50 → 1.7.53

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.
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  export type Nullable<T> = T | null;
3
+ export type Arrayable<T> = T | T[];
3
4
  export type ValueOf<T> = T[keyof T];
4
5
  export type DeepPartial<T> = {
5
6
  [P in keyof T]?: T[P] extends Record<string, unknown> ? DeepPartial<T[P]> : T[P];
@@ -221,7 +221,7 @@ export type IFormItem = {
221
221
  closeRemoteMatch?: boolean;
222
222
  fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
223
223
  extraAliasMap?: (() => Record<string, string>) | Record<string, string>;
224
- filterAliasMap?: (() => string[]) | string[];
224
+ filterAliasMap?: (() => string[] | Record<string, (input: string) => string>) | string[] | Record<string, (input: string) => string>;
225
225
  beforeOpen?: (formData: IFormData) => void | Promise<void> | boolean;
226
226
  closed?: (rowData: Record<string, any>) => void;
227
227
  };
@@ -51,7 +51,7 @@ export declare const createShConfig: (data: any, fieldName: string, createFetch:
51
51
  closeRemoteMatch?: boolean | undefined;
52
52
  fieldAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
53
53
  extraAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
54
- filterAliasMap?: string[] | (() => string[]) | undefined;
54
+ filterAliasMap?: string[] | Record<string, (input: string) => string> | (() => string[] | Record<string, (input: string) => string>) | undefined;
55
55
  beforeOpen?: ((formData: import("./types").IFormData) => boolean | void | Promise<void>) | undefined;
56
56
  closed?: ((rowData: Record<string, any>) => void) | undefined;
57
57
  };
package/lib/index.d.ts CHANGED
@@ -60,6 +60,8 @@ export type { PrintProps as QmPrintProps } from './print';
60
60
  export { default as QmPrint } from './print';
61
61
  export type { GuideTrackerProps as QmGuideTrackerProps } from './guide-tracker';
62
62
  export { default as QmGuideTracker } from './guide-tracker';
63
+ export type { WatermarkProps as QmWatermarkProps } from './watermark';
64
+ export { default as QmWatermark } from './watermark';
63
65
  export type { ConfigProviderProps as DcpConfigProviderProps } from './config-provider';
64
66
  export { default as DcpConfigProvider } from './config-provider';
65
67
  export type { ButtonProps as DcpButtonProps } from './button';
@@ -122,6 +124,8 @@ export type { PrintProps as DcpPrintProps } from './print';
122
124
  export { default as DcpPrint } from './print';
123
125
  export type { GuideTrackerProps as DcpGuideTrackerProps } from './guide-tracker';
124
126
  export { default as DcpGuideTracker } from './guide-tracker';
127
+ export type { WatermarkProps as DcpWatermarkProps } from './watermark';
128
+ export { default as DcpWatermark } from './watermark';
125
129
  export { default as pinyin } from './pinyin';
126
130
  export { default as version } from './version';
127
131
  export * from './antd';