@dazhicheng/ui 1.5.133 → 1.5.135
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/hooks/useDataPermissionOptions.d.ts +3 -6
- package/dist/hooks/useFormSchemasLink.d.ts +1 -1
- package/dist/index.js +6735 -6718
- package/package.json +1 -1
|
@@ -8,16 +8,13 @@ export type DataPermissionOptionsMap = Partial<Record<BudinessDataType, DataPerm
|
|
|
8
8
|
export interface UseBudinessDataOptions {
|
|
9
9
|
codes: BudinessDataType[];
|
|
10
10
|
dataSource?: MaybeRef<DataPermissionOptionsMap | undefined>;
|
|
11
|
+
showAll?: boolean | Partial<Record<BudinessDataType, boolean>>;
|
|
11
12
|
}
|
|
12
|
-
/**
|
|
13
|
-
* 每个 code 对应的 label value 字段映射
|
|
14
|
-
*/
|
|
15
|
-
export declare const fieldMap: Record<BudinessDataType, [string, string]>;
|
|
16
13
|
/**
|
|
17
14
|
*
|
|
18
15
|
* @example
|
|
19
16
|
* ```ts
|
|
20
|
-
* const { dataSource } =
|
|
17
|
+
* const { dataSource } = useDataPermissionOptions({
|
|
21
18
|
* codes:['userId','shopId]
|
|
22
19
|
* })
|
|
23
20
|
*
|
|
@@ -25,5 +22,5 @@ export declare const fieldMap: Record<BudinessDataType, [string, string]>;
|
|
|
25
22
|
*/
|
|
26
23
|
export declare function useDataPermissionOptions(options: UseBudinessDataOptions): {
|
|
27
24
|
dataSource: Ref<Record<BudinessDataType, DataPermissionOptionItem[]>>;
|
|
28
|
-
|
|
25
|
+
reload: () => Promise<void>;
|
|
29
26
|
};
|
|
@@ -84,7 +84,7 @@ export type SelectOption = Recordable & {
|
|
|
84
84
|
* 返回值会包含每个 DataType 对应的 TtFormSchema,以及当前已归一化的下拉数据源。
|
|
85
85
|
*/
|
|
86
86
|
type UseFormSchemasLinkResult = Record<DataType, TtFormSchema> & {
|
|
87
|
-
dataSource: Ref<Record<
|
|
87
|
+
dataSource: Ref<Record<BudinessDataType, SelectOption[]>>;
|
|
88
88
|
};
|
|
89
89
|
type FormSchemasLinkBuilder = {
|
|
90
90
|
/** 设置为查询筛选场景 */
|