@byteluck-fe/runtime-engine 2.0.9 → 2.0.11
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/packages/runtime-engine/src/runtimeEngine.d.ts +2 -1
- package/dist/runtime-engine.js +2159 -2089
- package/dist/src/hooks/components/formEngineModal/useFormEngineModal.d.ts +1 -0
- package/dist/src/hooks/components/listEngineModal/useListEngineModal.d.ts +2 -1
- package/dist/src/plugins/engine/DataFilterPlugin.d.ts +1 -0
- package/dist/src/plugins/engine/DisplayPlugin.d.ts +0 -4
- package/dist/src/plugins/setTenant.d.ts +9 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export interface FormEngineModalProps {
|
|
|
11
11
|
uid?: string;
|
|
12
12
|
onEngineMounted?: (engine: Engine) => void;
|
|
13
13
|
onEngineSubmitted?: (engine: Engine, payload: EventPayload) => void;
|
|
14
|
+
onEngineBeforeInit?: (engine: Engine, payload: EventPayload) => void;
|
|
14
15
|
onCloseError?: () => Promise<void | boolean>;
|
|
15
16
|
clearSelectedRows?: boolean;
|
|
16
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectStateType } from '../../controls/listView/useListSelection';
|
|
2
|
-
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
2
|
+
import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
|
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
|
4
4
|
|
|
5
5
|
interface ListEngineModalProps {
|
|
@@ -14,6 +14,7 @@ interface ListEngineModalProps {
|
|
|
14
14
|
valueKey?: string;
|
|
15
15
|
selection?: boolean;
|
|
16
16
|
onEngineInit?: (engine: Engine, rowIndex?: number) => void;
|
|
17
|
+
onEngineBeforeInit?: (engine: Engine, payload: EventPayload) => void;
|
|
17
18
|
onOk?: (selectState?: SelectStateType | undefined) => void;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
@@ -5,6 +5,7 @@ export declare class DataFilterPlugin implements Plugin {
|
|
|
5
5
|
private engine;
|
|
6
6
|
private cacheInstanceFilterId;
|
|
7
7
|
private weakMap;
|
|
8
|
+
private cacheListViewInstanceFilterEngine;
|
|
8
9
|
apply(engine: Engine): void;
|
|
9
10
|
private watchChangeEvents;
|
|
10
11
|
private runImpactInstanceSearchAndReset;
|
|
@@ -58,10 +58,6 @@ export declare class DisplayPlugin implements Plugin {
|
|
|
58
58
|
* @description 获取控件的parent中的subtable
|
|
59
59
|
* */
|
|
60
60
|
private getControlParentSubtable;
|
|
61
|
-
/**
|
|
62
|
-
* @description 获取控件在明细子表headers内的实例
|
|
63
|
-
* */
|
|
64
|
-
private getHeaderInnerInstance;
|
|
65
61
|
/**
|
|
66
62
|
* @description 获取column控件在明细子表headers内的column
|
|
67
63
|
* */
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { Router } from 'vue-router';
|
|
2
|
+
import { default as runtimeStore } from '../store/index';
|
|
2
3
|
import { App } from 'vue';
|
|
3
4
|
|
|
4
5
|
declare const _default: {
|
|
5
|
-
install(
|
|
6
|
+
install(params: {
|
|
7
|
+
router: Router;
|
|
8
|
+
app: App;
|
|
9
|
+
i18n: any;
|
|
10
|
+
type: 'desktop' | 'mobile';
|
|
11
|
+
codeOutStore?: typeof runtimeStore;
|
|
12
|
+
codeOutLocaleJson: any;
|
|
13
|
+
}): Promise<void>;
|
|
6
14
|
};
|
|
7
15
|
export default _default;
|