@jiaozhiye/qm-design-react 1.3.0-beta.43 → 1.3.0-beta.45

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 IState = {
9
9
  declare class FormSearchHelper extends Component<IProps, IState> {
10
10
  static contextType: React.Context<import("./context").IFormContext | undefined>;
11
11
  private promiseRef;
12
+ searchRef: any;
12
13
  state: IState;
13
14
  constructor(props: IProps, { $$form }: {
14
15
  $$form: any;
@@ -180,14 +180,15 @@ declare class QmForm extends Component<IProps, IState> {
180
180
  set_fields_other(values: IFormData): void;
181
181
  get_fields_other(fields?: string[]): IFormData;
182
182
  scrollToField: (fieldName?: string) => void;
183
+ formValidate: () => Promise<IFormData>;
183
184
  SET_FIELDS_VALUE(values: IFormData): void;
184
185
  GET_FIELDS_VALUE(fields?: string[]): IFormData;
185
186
  GET_FORM_DATA(): Promise<[any, any]>;
186
- VALIDATE_FIELDS(fields?: string[]): Promise<any>;
187
+ VALIDATE_FIELDS(fields?: string[]): Promise<any[]>;
187
188
  SET_FIELDS_EXTRA(values: IExtraData): void;
188
189
  GET_FIELDS_EXTRA(fields?: string[]): IExtraData;
189
190
  GET_FIELDS_TOUCHED(fields?: string[]): boolean;
190
- SUBMIT_FORM(): void;
191
+ SUBMIT_FORM(): Promise<void>;
191
192
  RESET_FORM(): void;
192
193
  SET_FORM_ITEM(fieldName: string, option: Record<string, any>, forceUpdate?: boolean): void;
193
194
  render(): JSX.Element;
@@ -1,9 +1,12 @@
1
1
  import dayjs, { Dayjs } from 'dayjs';
2
2
  import type { IDict } from '../../_utils/types';
3
- import type { IFormItem, IFetchFnMaker } from './types';
3
+ import type { IFormItem, IFetchFnMaker, IRecord } from './types';
4
4
  export declare const getDate: (dateString: string | undefined, format: string) => dayjs.Dayjs | null;
5
5
  export declare const formatDate: (date: Dayjs | null, format: string) => string;
6
6
  export declare const isEmptyValue: (value: unknown) => boolean;
7
+ export declare const getSplitValue: (data: IRecord, path: string) => any;
8
+ export declare const setEchoRecord: (row: IRecord, alias: any, echoAlias: any) => void;
9
+ export declare const setEchoExtras: (row: IRecord, extras: any, echoExtras: any) => void;
7
10
  export declare const deepMapList: (list: any[], valueKey: string, textKey: string) => IDict[];
8
11
  export declare const deepFind: (arr: any[], mark: string) => any;
9
12
  export declare const deepFindValues: <T>(arr: T[], str: string, depth?: number) => T[];
@@ -20,7 +23,7 @@ export declare const createShConfig: (data: any, fieldName: string, createFetch:
20
23
  table?: {
21
24
  fetch?: import("../../table/src/table/types").IFetch | undefined;
22
25
  columns?: import("../..").QmTableColumn[] | undefined;
23
- rowKey?: string | number | ((row: import("./types").IRecord, index: number) => string | number) | undefined;
26
+ rowKey?: string | number | ((row: IRecord, index: number) => string | number) | undefined;
24
27
  webPagination?: boolean | undefined;
25
28
  } | undefined;
26
29
  tree?: {
@@ -42,8 +42,11 @@
42
42
  line-height: 1;
43
43
  }
44
44
  // search
45
- .ant-input-search > .ant-input-group > .ant-input-group-addon {
46
- line-height: 1;
45
+ .ant-input-search {
46
+ width: calc(100% + 1px);
47
+ & > .ant-input-group > .ant-input-group-addon {
48
+ line-height: 1;
49
+ }
47
50
  }
48
51
  // textarea
49
52
  .ant-input-textarea-show-count {