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.
- package/index.browser.js +23 -23
- package/index.js +3703 -3628
- package/index.umd.cjs +22 -22
- package/index.umd.js +22 -22
- package/package.json +2 -2
- package/style.css +1 -1
- package/types/0buildTypes/form2/form-types.d.ts +1 -0
- package/types/0buildTypes/query-form/query-form-items.d.ts +2 -1
- package/types/0buildTypes/query-form/query-form-layout.d.ts +1 -1
- package/types/0buildTypes/query-form/query-form.d.ts +2 -0
- package/types/0buildTypes/query-form/types.d.ts +7 -0
- package/types/0buildTypes/util/tiny-emitter.d.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { QueryFormProps } from "./types";
|
|
2
|
-
|
|
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 };
|
|
@@ -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
|
|
6
|
+
off: (eventName: string, listener?: ListenerType) => void;
|
|
7
7
|
clear: () => void;
|
|
8
8
|
emit: (eventName: string, ...args: any[]) => any[];
|
|
9
9
|
}
|