@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.
@@ -9,6 +9,7 @@
9
9
  import React, { FC } from 'react';
10
10
  export interface SchemaInitializerActionModalProps {
11
11
  title: string;
12
+ icon?: string | React.ReactNode;
12
13
  schema: any;
13
14
  onCancel?: () => void;
14
15
  onSubmit?: (values: any) => void;
@@ -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: ComponentType<T> | string;
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;