fat-design 0.0.1-beta.20251012170705 → 0.0.1-beta.20251016214453

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.
@@ -173,6 +173,7 @@ export interface FormItemSchema {
173
173
  }
174
174
  export interface FormItemProps extends FormItemSchema {
175
175
  name: string;
176
+ extItemClassName?: string;
176
177
  }
177
178
  export interface FormSchema {
178
179
  type: string;
@@ -1,3 +1,4 @@
1
1
  import { QueryFormProps } from "./types";
2
- declare function useQueryFormItems(props: QueryFormProps): any[];
2
+ import { TinyEmitter } from "../util/tiny-emitter";
3
+ declare function useQueryFormItems(props: QueryFormProps, queryFormEventBus: TinyEmitter): any[];
3
4
  export { useQueryFormItems };
@@ -1,2 +1,2 @@
1
- declare function useQueryFormLayout(ref: any, fixProps: any, initialFormWidth?: number): any;
1
+ declare function useQueryFormLayout(ref: any, fixProps: any, initialFormWidth?: number, initialRowCount?: number): any;
2
2
  export { useQueryFormLayout };
@@ -8,6 +8,8 @@ declare namespace QueryForm {
8
8
  isPreview: boolean;
9
9
  labelAlign: string;
10
10
  layout: string;
11
+ initialFormWidth: number;
12
+ initialRowCount: number;
11
13
  layoutProps: {
12
14
  gap: number[];
13
15
  columns: number;
@@ -1,5 +1,12 @@
1
1
  import { FormProps } from "../form2/form-types";
2
2
  export interface QueryFormProps extends FormProps {
3
3
  isUseCard?: boolean;
4
+ /**
5
+ * 初始宽度。对于一些特殊场景,可以提前设置宽度,减少一次渲染,默认: 0
6
+ */
4
7
  initialFormWidth?: number;
8
+ /**
9
+ * 初始显示行数
10
+ */
11
+ initialRowCount?: number;
5
12
  }
@@ -3,7 +3,7 @@ declare class TinyEmitter {
3
3
  private listenerObjects;
4
4
  constructor();
5
5
  on: (eventName: string, listener: ListenerType) => void;
6
- off: (eventName: string, listener: ListenerType) => void;
6
+ off: (eventName: string, listener?: ListenerType) => void;
7
7
  clear: () => void;
8
8
  emit: (eventName: string, ...args: any[]) => any[];
9
9
  }