@nocobase/client 1.2.2-alpha → 1.2.4-alpha
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/es/application/schema-initializer/components/SchemaInitializerActionModal.d.ts +1 -0
- package/es/application/schema-initializer/components/SchemaInitializerItem.d.ts +4 -0
- package/es/application/schema-initializer/types.d.ts +1 -1
- package/es/data-source/collection/AssociationProvider.d.ts +4 -0
- package/es/index.mjs +217 -208
- package/lib/index.js +22 -20
- package/lib/locale/ja_JP.js +1 -1
- package/package.json +5 -5
|
@@ -17,6 +17,10 @@ export interface SchemaInitializerItemProps {
|
|
|
17
17
|
onClick?: (args?: any) => any;
|
|
18
18
|
applyMenuStyle?: boolean;
|
|
19
19
|
children?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
closeInitializerMenuWhenClick?: boolean;
|
|
20
24
|
}
|
|
21
25
|
export declare const SchemaInitializerItem: React.MemoExoticComponent<React.ForwardRefExoticComponent<SchemaInitializerItemProps & React.RefAttributes<any>>>;
|
|
22
26
|
/**
|
|
@@ -21,7 +21,7 @@ type SchemaInitializerItemBuiltInType<T = {}> = T & {
|
|
|
21
21
|
};
|
|
22
22
|
export interface SchemaInitializerItemComponentType<T = {}> {
|
|
23
23
|
name: string;
|
|
24
|
-
Component
|
|
24
|
+
Component?: ComponentType<T> | string;
|
|
25
25
|
sort?: number;
|
|
26
26
|
componentProps?: Omit<T, 'children'>;
|
|
27
27
|
useComponentProps?: () => Omit<T, 'children'>;
|
|
@@ -15,4 +15,8 @@ export interface AssociationProviderProps {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const useParentCollection: () => Collection;
|
|
17
17
|
export declare const AssociationProvider: FC<AssociationProviderProps>;
|
|
18
|
+
/**
|
|
19
|
+
* 用来获取关系字段的信息,例如用户表中的角色字段就是这样的值:users.roles
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
18
22
|
export declare const useAssociationName: () => string;
|