@a2simcode/ui 0.0.34 → 0.0.36

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,8 @@ export declare const INJECT_KEYS: {
9
9
  readonly FORM_PROVIDE: "jcode_form_provide";
10
10
  /** 表格相关注入 */
11
11
  readonly TABLE_PROVIDE: "jcode_table_provide";
12
+ /** 动态组件相关注入 */
13
+ readonly COMP_PROVIDE: "jcode_comp_provide";
12
14
  /** 菜单相关注入 */
13
15
  readonly MENU_PROVIDE: "jcode_menu_provide";
14
16
  /** 水平菜单相关注入 */
@@ -68,6 +70,15 @@ export interface TableProvideType {
68
70
  /** 表格行变更事件 */
69
71
  rowChange: (data: any) => void;
70
72
  }
73
+ /**
74
+ * 动态组件提供者类型
75
+ */
76
+ export interface CompProvideType {
77
+ /**
78
+ * 当前组件配置上下问类型
79
+ */
80
+ contextType: 'form' | 'page';
81
+ }
71
82
  /**
72
83
  * 菜单提供者类型
73
84
  */
@@ -136,6 +147,14 @@ export declare function useTableInject(): TableProvideType;
136
147
  * 表单相关提供
137
148
  */
138
149
  export declare function useTableProvide(value: TableProvideType): void;
150
+ /**
151
+ * 动态组件相关注入
152
+ */
153
+ export declare function useCompInject(): CompProvideType;
154
+ /**
155
+ * 动态组件相关提供
156
+ */
157
+ export declare function useCompProvide(value: CompProvideType): void;
139
158
  /**
140
159
  * 菜单相关注入
141
160
  */