@jiaozhiye/qm-design-react 1.2.0-beta.23 → 1.2.0-beta.26

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.
@@ -9,6 +9,7 @@ declare type IProps = Omit<DrawerProps, 'size'> & {
9
9
  showFullScreen?: boolean;
10
10
  onClose?: (e: EventType) => void;
11
11
  onClosed?: () => void;
12
+ onFullChange?: (value: boolean) => void;
12
13
  };
13
14
  declare type IState = {
14
15
  fullscreen: boolean;
@@ -171,14 +171,18 @@ export declare type IFormItem = {
171
171
  webPagination?: boolean;
172
172
  };
173
173
  tree?: {
174
- fetch?: IFetch;
174
+ fetch?: IFetch & {
175
+ valueKey?: string;
176
+ textKey?: string;
177
+ };
175
178
  tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
176
179
  };
177
- request?: any;
180
+ request?: IRequest;
178
181
  echoRequest?: IRequest & {
179
182
  fieldAliasMap?: (() => Record<string, string>) | Record<string, string>;
180
183
  extraAliasMap?: (() => Record<string, string>) | Record<string, string>;
181
184
  };
185
+ columns?: IColumn[];
182
186
  width?: number | string;
183
187
  initialValue?: IFormData;
184
188
  onlySelect?: boolean;
@@ -1,5 +1,6 @@
1
1
  import dayjs, { Dayjs } from 'dayjs';
2
- import type { IDict } from 'packages/_utils/types';
2
+ import type { IDict } from '../../_utils/types';
3
+ import type { IFormItem, IFetchFn } from './types';
3
4
  export declare const getDate: (dateString: string | undefined, format: string) => dayjs.Dayjs | null;
4
5
  export declare const formatDate: (date: Dayjs | null, format: string) => string;
5
6
  export declare const isEmptyValue: (value: unknown) => boolean;
@@ -10,3 +11,38 @@ export declare const deepGetPath: (arr: any[], value: string) => string[] | unde
10
11
  export declare const formatNumber: (value: string | number) => string;
11
12
  export declare const parserNumber: (value: string) => string;
12
13
  export declare const secretFormat: (value: string | undefined, type: string) => string;
14
+ export declare const createShConfig: (data: any, fieldName: string, createFetch: (url: string) => IFetchFn, multiple?: boolean) => {
15
+ name?: string | undefined;
16
+ getServerConfig?: IFetchFn | undefined;
17
+ createTableFetch?: ((url: string) => IFetchFn) | undefined;
18
+ fieldsDefine?: import("./types").IFieldsDefine | undefined;
19
+ filters?: IFormItem[] | undefined;
20
+ table?: {
21
+ fetch?: import("../../table/src/table/types").IFetch | undefined;
22
+ columns?: import("../..").QmTableColumn[] | undefined;
23
+ rowKey?: string | number | ((row: import("./types").IRecord, index: number) => string | number) | undefined;
24
+ webPagination?: boolean | undefined;
25
+ } | undefined;
26
+ tree?: {
27
+ fetch?: (import("../../table/src/table/types").IFetch & {
28
+ valueKey?: string | undefined;
29
+ textKey?: string | undefined;
30
+ }) | undefined;
31
+ tableParamsMap?: Record<string, string> | (() => Record<string, string>) | undefined;
32
+ } | undefined;
33
+ request?: import("./types").IRequest | undefined;
34
+ echoRequest?: (import("./types").IRequest & {
35
+ fieldAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
36
+ extraAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
37
+ }) | undefined;
38
+ columns?: import("../..").QmTableColumn[] | undefined;
39
+ width?: string | number | undefined;
40
+ initialValue?: import("./types").IFormData | undefined;
41
+ onlySelect?: boolean | undefined;
42
+ closeRemoteMatch?: boolean | undefined;
43
+ fieldAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
44
+ extraAliasMap?: Record<string, string> | (() => Record<string, string>) | undefined;
45
+ filterAliasMap?: string[] | (() => string[]) | undefined;
46
+ beforeOpen?: ((formData: import("./types").IFormData) => boolean | void | Promise<void>) | undefined;
47
+ closed?: ((rowData: Record<string, any>) => void) | undefined;
48
+ };