@jiaozhiye/qm-design-react 1.4.0-beta.4 → 1.4.0-beta.6

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,6 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import type { FormRef } from './form';
3
+ import type { IDict } from '../../_utils/types';
2
4
  export declare type IFormContext = {
3
- $$form: any;
5
+ $$form: FormRef;
6
+ echo_data: Record<string, IDict[]>;
4
7
  };
5
8
  declare const FormContext: import("react").Context<IFormContext | undefined>;
6
9
  export default FormContext;
@@ -2,7 +2,7 @@
2
2
  import React, { Component } from 'react';
3
3
  import { IFieldData } from './types';
4
4
  import type { IFormProps, IFormData, IFormItem, IExtraData, IViewData, IExpandData } from './types';
5
- import type { JSXElement, ValueOf } from '../../_utils/types';
5
+ import type { JSXElement, ValueOf, IDict } from '../../_utils/types';
6
6
  import type { FormProps } from '../../antd';
7
7
  declare type IProps = FormProps & IFormProps;
8
8
  declare type IState = {
@@ -93,6 +93,7 @@ declare class QmForm extends Component<IProps, IState> {
93
93
  get dividers(): IFormItem[];
94
94
  get isFilterType(): boolean;
95
95
  get isOnlyShow(): boolean;
96
+ get isCompactMode(): boolean;
96
97
  get showDividerCollapse(): boolean;
97
98
  get showFilterCollapse(): boolean | undefined;
98
99
  componentDidMount(): void;
@@ -188,6 +189,7 @@ declare class QmForm extends Component<IProps, IState> {
188
189
  GET_FORM_DATA(): Promise<[any, any]>;
189
190
  VALIDATE_FIELDS(fields?: string[]): Promise<any[]>;
190
191
  SET_FIELDS_EXTRA(values: IExtraData): void;
192
+ SET_FIELDS_ECHO(values: Record<string, IDict[]>): void;
191
193
  GET_FIELDS_EXTRA(fields?: string[]): IExtraData;
192
194
  GET_FIELDS_TOUCHED(fields?: string[]): boolean;
193
195
  SUBMIT_FORM(): Promise<void>;
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-11-26 21:27:53
5
+ * @Last Modified time: 2022-12-02 20:00:11
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -136,6 +136,11 @@
136
136
  &--sm {
137
137
  .ant-form-item {
138
138
  margin-bottom: @--margin-md;
139
+ .ant-form-item-label {
140
+ &-wrap {
141
+ line-height: 1;
142
+ }
143
+ }
139
144
  // valigator
140
145
  .ant-form-item-control {
141
146
  // 待优化