@byteluck-fe/runtime-engine 1.4.0 → 1.6.0

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.
@@ -1 +1 @@
1
- export * from '../../entry_mobile/hooks/useHistory';
1
+ export * from './useHistory';
@@ -1,5 +1,5 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
- import { SelectStateType } from '../../../hooks/components/listEngineModal/useListSelection';
2
+ import { SelectStateType } from './useListSelection';
3
3
  import { Engine } from '@byteluck-fe/model-driven-engine';
4
4
  interface ListEngineModalProps {
5
5
  visible: boolean;
@@ -7,7 +7,7 @@ export declare function useLayout(instance: RuntimeLayoutControl, params?: {
7
7
  }): {
8
8
  isHide: ComputedRef<boolean>;
9
9
  context: Ref<Engine> | undefined;
10
- getState: (id: string, rowIndex?: number | undefined) => unknown;
10
+ getState: (id: string, rowIndex?: number | undefined) => any;
11
11
  getDisplay: (control: any, rowIndex?: number | undefined) => any;
12
12
  children: ShallowRef<never[]> | ShallowRef<RuntimeControl[]>;
13
13
  allChildren: ShallowRef<RuntimeControl[]>;
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { SelectStateType } from '../../../hooks/components';
2
+ import { SelectStateType } from '../../components';
3
3
  import { Engine } from '@byteluck-fe/model-driven-engine';
4
4
  /**
5
5
  * 处理列表选择按钮逻辑
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { SelectStateType } from '../../../hooks/components';
2
+ import { SelectStateType } from '../../components';
3
3
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
4
4
  import { Engine } from '@byteluck-fe/model-driven-engine';
5
5
  /**
@@ -4,7 +4,7 @@ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
4
4
  import { Engine } from '@byteluck-fe/model-driven-engine';
5
5
  import { ISearchType } from '../../../types/controls/simple-search';
6
6
  export default function useOperate(instance: ControlRuntimeInstance<'simple-search'>, emit: EmitType, formModel: ComputedRef<Record<string, any>>, context?: Engine): {
7
- handleFormData: () => Promise<false | ISearchType[] | undefined>;
7
+ handleFormData: () => Promise<false | ISearchType[]>;
8
8
  rules: ShallowRef<Rules | undefined>;
9
9
  formRef: Ref<any>;
10
10
  gridTableId: Ref<string>;
@@ -30,7 +30,7 @@ export declare function useApprovalForm(handlerRenderError: (error: {
30
30
  engine: Ref<Engine | undefined>;
31
31
  onEngineInit: (context: Engine) => void;
32
32
  isEngineMounted: ComputedRef<boolean>;
33
- engineState: ComputedRef<unknown>;
33
+ engineState: ComputedRef<any>;
34
34
  onBeforeBtnClick: (clickedBtn: {
35
35
  command_id: string;
36
36
  command_type: string;
@@ -29,5 +29,5 @@ export declare function useProcessForm(handlerRenderError: (error: {
29
29
  engine: Ref<Engine | undefined>;
30
30
  onEngineInit: (context: Engine) => void;
31
31
  isEngineMounted: ComputedRef<boolean>;
32
- engineState: ComputedRef<unknown>;
32
+ engineState: ComputedRef<any>;
33
33
  };
@@ -1,5 +1,5 @@
1
1
  import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
2
- import { DisplayItem } from '../../plugins/engine/constant';
2
+ import { DisplayItem } from './constant';
3
3
  export declare class DisplayPlugin implements Plugin {
4
4
  pluginName: string;
5
5
  private config;
@@ -1,6 +1,6 @@
1
1
  import { Engine } from '@byteluck-fe/model-driven-engine';
2
2
  import { ExpressionItem } from '@byteluck/expression-parser';
3
- import { DataSource } from '../../plugins/engine/DataSourceManagePlugin';
3
+ import { DataSource } from './DataSourceManagePlugin';
4
4
  import { ExpressionBasePlugin } from './ExpressionBasePlugin';
5
5
  interface FX {
6
6
  [controlId: string]: {
@@ -1,5 +1,5 @@
1
1
  import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
2
- import { DisplayItem } from '../../plugins/engine/constant';
2
+ import { DisplayItem } from './constant';
3
3
  export declare class JurisdictionPlugin implements Plugin {
4
4
  pluginName: string;
5
5
  private engine;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",
@@ -12,8 +12,8 @@
12
12
  "build:vite": "vite build",
13
13
  "lint": "vue-cli-service lint",
14
14
  "release:patch": "vite build && standard-version --release-as patch",
15
- "release:minor": "vite build && standard-version --release-as minor",
16
- "release:major": "vite build && standard-version --release-as major"
15
+ "release:minor": "vite build && standard-version --release-as minor",
16
+ "release:major": "vite build && standard-version --release-as major"
17
17
  },
18
18
  "files": [
19
19
  "dist"