keli-ui 0.3.7 → 0.3.9

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.
@@ -10,10 +10,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  type: import('vue').PropType<any>;
11
11
  };
12
12
  componentShowRule: import('vue').PropType<any>;
13
- config: {
14
- type: PropType<FormBasicInterface>;
15
- required: true;
16
- };
17
13
  formRules: {
18
14
  type: PropType<{
19
15
  [x: string]: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule> | {
@@ -26,6 +22,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
22
  type: PropType<boolean>;
27
23
  default: boolean;
28
24
  };
25
+ config: {
26
+ type: PropType<FormBasicInterface>;
27
+ required: true;
28
+ };
29
29
  embeddedTableList: {
30
30
  type: PropType<FormEmbeddedTableProp[]>;
31
31
  default: () => never[];
@@ -48,10 +48,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
48
48
  type: import('vue').PropType<any>;
49
49
  };
50
50
  componentShowRule: import('vue').PropType<any>;
51
- config: {
52
- type: PropType<FormBasicInterface>;
53
- required: true;
54
- };
55
51
  formRules: {
56
52
  type: PropType<{
57
53
  [x: string]: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule> | {
@@ -64,6 +60,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
64
60
  type: PropType<boolean>;
65
61
  default: boolean;
66
62
  };
63
+ config: {
64
+ type: PropType<FormBasicInterface>;
65
+ required: true;
66
+ };
67
67
  embeddedTableList: {
68
68
  type: PropType<FormEmbeddedTableProp[]>;
69
69
  default: () => never[];
@@ -1,3 +1,4 @@
1
+ import { App as VueApp } from 'vue';
1
2
  import { ApiInterface, AutoSortTableDTO, PageSubmitInterface, SubmitConfig, TableData, QueryDataInterface, PagePath, QueryFilterDTO } from '../types';
2
3
 
3
4
  export * from './appRouter.config';
@@ -154,6 +155,14 @@ export interface KeliUiConfig {
154
155
  * 页面跳转(可选)
155
156
  */
156
157
  router?: (name: RouterName, options: RouterOptions) => void;
158
+ /**
159
+ * Vue 应用实例(可选,用于动态弹窗等需要 appContext 的场景)
160
+ */
161
+ app?: VueApp;
162
+ /**
163
+ * 注册远程组件(可选,由主应用实现具体逻辑)
164
+ */
165
+ registerComponent?: (name: string) => void;
157
166
  }
158
167
  export declare function setKeliUiConfig(userConfig: KeliUiConfig): void;
159
168
  export declare function getKeliUiConfig(): KeliUiConfig;
@@ -167,3 +176,5 @@ export declare function getFlowRecordApiCallbacks(): FlowRecordApiCallbacks;
167
176
  export declare function getIconifyApiCallbacks(): IconifyApiCallbacks;
168
177
  export declare function getUploadFileUrl(): string;
169
178
  export declare function getFileUrl(): string;
179
+ export declare function getAppInstance(): VueApp | undefined;
180
+ export declare function getRegisterComponent(): ((name: string) => void) | undefined;
@@ -1 +0,0 @@
1
- export * from './useRemoteComponentManager.hook';