@jiaozhiye/qm-design-react 1.1.0-beta.39 → 1.1.0-beta.41

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.
@@ -65,7 +65,7 @@ export declare const getParentNode: (el: HTMLElement, selector: string) => Nulla
65
65
  * @param {HTMLNode} container 目标节点
66
66
  * @returns boolean
67
67
  */
68
- export declare const contains: (el: HTMLElement, container: HTMLElement) => boolean;
68
+ export declare const contains: (el: Element | HTMLElement | null, container: HTMLElement) => boolean;
69
69
  /**
70
70
  * @description 滚动到指定位置,动画效果
71
71
  * @param {HTMLNode} el 带滚动条元素
@@ -1,4 +1,4 @@
1
1
  import Form from './src/form';
2
- export type { QmFormProps } from './src/form';
2
+ export type { FormRef as QmFormRef, QmFormProps } from './src/form';
3
3
  export type { IFormItem as QmFormItem, IFormItemType as QmFormItemType } from './src/types';
4
4
  export default Form;
@@ -15,6 +15,7 @@ declare type IState = {
15
15
  collapse: boolean;
16
16
  };
17
17
  export declare type QmFormProps = IProps;
18
+ export declare type FormRef = QmForm;
18
19
  declare class QmForm extends Component<IProps, IState> {
19
20
  static contextType: React.Context<import("../../config-provider/context").IConfig>;
20
21
  static propTypes: {
@@ -173,7 +174,7 @@ declare class QmForm extends Component<IProps, IState> {
173
174
  get_fields_other(fields?: string[]): IFormData;
174
175
  SET_FIELDS_VALUE(values: IFormData): void;
175
176
  GET_FIELDS_VALUE(fields?: string[]): IFormData;
176
- GET_FORM_DATA(): Promise<any[]>;
177
+ GET_FORM_DATA(): Promise<[any, any]>;
177
178
  SET_FIELDS_EXTRA(values: IExtraData): void;
178
179
  GET_FIELDS_EXTRA(fields?: string[]): IExtraData;
179
180
  GET_FIELDS_TOUCHED(fields?: string[]): boolean;
package/lib/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export type { QmDrawerProps } from './drawer';
26
26
  export { default as QmDrawer } from './drawer';
27
27
  export type { QmModalProps } from './modal';
28
28
  export { default as QmModal } from './modal';
29
- export type { QmFormProps, QmFormItem, QmFormItemType } from './form';
29
+ export type { QmFormRef, QmFormProps, QmFormItem, QmFormItemType } from './form';
30
30
  export { default as QmForm } from './form';
31
31
  export type { QmTinymceProps } from './tinymce';
32
32
  export { default as QmTinymce } from './tinymce';
@@ -36,7 +36,7 @@ export type { QmUploadFileProps } from './upload-file';
36
36
  export { default as QmUploadFile } from './upload-file';
37
37
  export type { QmUploadImgProps } from './upload-img';
38
38
  export { default as QmUploadImg } from './upload-img';
39
- export type { QmTableProps, QmTableColumn } from './table';
39
+ export type { QmTableRef, QmTableProps, QmTableColumn } from './table';
40
40
  export { default as QmTable } from './table';
41
41
  export type { QmSearchHelperProps } from './search-helper';
42
42
  export { default as QmSearchHelper } from './search-helper';