@gonsin/gview 2.0.109 → 2.0.111
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/dist/index.mjs +3096 -3077
- package/dist/style.css +1 -1
- package/dist/types/directives/permission.d.ts +1 -1
- package/dist/types/stores/cache.d.ts +5 -1
- package/dist/types/utils/form.d.ts +2 -2
- package/package.json +1 -1
|
@@ -13,6 +13,10 @@ export declare const useCacheStore: import("pinia").StoreDefinition<"cache", {
|
|
|
13
13
|
}, {
|
|
14
14
|
setFormData(path: string, data: Record<string, any>): void;
|
|
15
15
|
removeFormData(path: string): void;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @description: 清空缓存表单数据
|
|
18
|
+
* @param {string} path
|
|
19
|
+
*/
|
|
20
|
+
clearFormData(): void;
|
|
17
21
|
}>;
|
|
18
22
|
export {};
|
|
@@ -3,12 +3,12 @@ import type { FormItem, FormItemType } from "~/types/view";
|
|
|
3
3
|
* @description 初始化表单项的数值,返回对应的表单类型的初始值
|
|
4
4
|
* @param itemType
|
|
5
5
|
*/
|
|
6
|
-
export declare function initEmptyFormItems(itemType: FormItemType): false | any[] | "";
|
|
6
|
+
export declare function initEmptyFormItems(itemType: FormItemType, isHeaderForm?: boolean): false | any[] | "" | "all";
|
|
7
7
|
/**
|
|
8
8
|
* @description 初始化表单数据
|
|
9
9
|
* @return 表单模型数据
|
|
10
10
|
*/
|
|
11
|
-
export declare function initFormModel(formData: any, formItems: FormItem[]): any;
|
|
11
|
+
export declare function initFormModel(formData: any, formItems: FormItem[], isHeaderForm?: boolean): any;
|
|
12
12
|
/**
|
|
13
13
|
* @description: 初始化处理树形选择列表数据
|
|
14
14
|
* @param {*} config
|