@kengic/vue 0.2.2-beta.10 → 0.2.2-beta.12

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.
@@ -119,6 +119,8 @@ export declare class VarGridConfig {
119
119
  aut_load_flg?: number | null;
120
120
  /** 按钮显示样式(ButtonDisplayType). */
121
121
  button_display_type?: string | null;
122
+ /** 接口参数(CommandParameter). */
123
+ cmd_prm?: string | null;
122
124
  /** 界面标识(FormID). */
123
125
  frm_id?: string | null;
124
126
  /** 主键. */
@@ -33,7 +33,6 @@ declare const _default: import("vue").DefineComponent<{
33
33
  /** 获取下拉列表数据. */
34
34
  kgActionType: {
35
35
  type: import("vue").PropType<import("axios").Method>;
36
- /** 获取下拉列表数据. */
37
36
  default: string;
38
37
  };
39
38
  kgShowTime: {
@@ -80,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
80
79
  /** 获取下拉列表数据. */
81
80
  kgActionType: {
82
81
  type: import("vue").PropType<import("axios").Method>;
83
- /** 获取下拉列表数据. */
84
82
  default: string;
85
83
  };
86
84
  kgShowTime: {
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
27
27
  kgPlaceholder: {
28
28
  type: import("vue").PropType<string>;
29
29
  default: string;
30
- }; /** 样式. */
30
+ };
31
31
  kgValidateInfo: {
32
32
  type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
33
33
  default: () => {};
@@ -35,11 +35,11 @@ declare const _default: import("vue").DefineComponent<{
35
35
  kgActionType: {
36
36
  type: import("vue").PropType<import("axios").Method>;
37
37
  default: string;
38
- }; /** 样式. */
38
+ };
39
39
  kgShowTime: {
40
40
  type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
41
- default: undefined; /** 组件参数. */
42
- }; /** 组件参数. */
41
+ default: undefined;
42
+ };
43
43
  onKgBeforeLookupOk: import("vue").PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => boolean>;
44
44
  value: import("vue").PropType<import("./index.vm").KgControlValue>;
45
45
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
72
72
  kgPlaceholder: {
73
73
  type: import("vue").PropType<string>;
74
74
  default: string;
75
- }; /** 样式. */
75
+ };
76
76
  kgValidateInfo: {
77
77
  type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
78
78
  default: () => {};
@@ -80,11 +80,11 @@ declare const _default: import("vue").DefineComponent<{
80
80
  kgActionType: {
81
81
  type: import("vue").PropType<import("axios").Method>;
82
82
  default: string;
83
- }; /** 样式. */
83
+ };
84
84
  kgShowTime: {
85
85
  type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
86
- default: undefined; /** 组件参数. */
87
- }; /** 组件参数. */
86
+ default: undefined;
87
+ };
88
88
  onKgBeforeLookupOk: import("vue").PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => boolean>;
89
89
  value: import("vue").PropType<import("./index.vm").KgControlValue>;
90
90
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
@@ -1,13 +1,17 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import './KgControl.Addon.Lookup.less';
3
3
  import { IKgTableRecord } from '../../KgTable';
4
+ import { VarLookup } from '../../../apis/WMS/models';
4
5
  export declare const getProps: () => {
6
+ kgVarLookup: PropType<VarLookup | null>;
5
7
  onKgOk: PropType<(value: any, row: IKgTableRecord) => void>;
6
8
  };
7
9
  export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
8
10
  declare const _default: import("vue").DefineComponent<{
11
+ kgVarLookup: PropType<VarLookup | null>;
9
12
  onKgOk: PropType<(value: any, row: IKgTableRecord<{}>) => void>;
10
13
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
14
+ kgVarLookup: PropType<VarLookup | null>;
11
15
  onKgOk: PropType<(value: any, row: IKgTableRecord<{}>) => void>;
12
16
  }>> & {
13
17
  onKgOk?: ((...args: any[]) => any) | undefined;
@@ -98,4 +98,4 @@ export declare const getProps: () => {
98
98
  };
99
99
  export declare type KgControlProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
100
100
  /** 依赖注入 onKgBeforeLookupOk 参数. */
101
- export declare const DI_KG_BEFORE_LOOKUP_OK: InjectionKey<(value: any | Array<any>, record: IKgTableRecord | Array<IKgTableRecord>) => boolean>;
101
+ export declare const DI_ON_KG_BEFORE_LOOKUP_OK: InjectionKey<(value: any | Array<any>, record: IKgTableRecord | Array<IKgTableRecord>) => boolean>;
@@ -2,7 +2,9 @@ import { ComputedRef, Ref, UnwrapRef } from 'vue';
2
2
  import { ColumnsType } from 'ant-design-vue/es/table';
3
3
  import { IKgTableRecord } from './index.vm';
4
4
  export declare type IUseColumns = {
5
+ /** 表格的列. */
5
6
  columns: ComputedRef<ColumnsType<IKgTableRecord>>;
7
+ /** 横向滚动宽度. */
6
8
  scrollX: ComputedRef<string>;
7
9
  };
8
10
  export declare function _useColumns(): IUseColumns;
@@ -2,8 +2,10 @@ import { ComputedRef } from 'vue';
2
2
  import { IKgVarStore } from './index.store';
3
3
  import { VarProfileDetail } from '../../apis/WMS/models';
4
4
  export declare type IUseKgVar = {
5
+ /** 界面标识. */
5
6
  formID: string;
6
- kgVarStore: IKgVarStore;
7
+ /** 状态数据. */
8
+ store: IKgVarStore;
7
9
  /** 所有按钮. */
8
10
  varButtons: ComputedRef<ReturnType<IKgVarStore['getVarButtons']>>;
9
11
  /** 表格配置. */
@@ -18,14 +20,14 @@ export declare type IUseKgVar = {
18
20
  varProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
19
21
  /** 所有要显示的查询字段. */
20
22
  visibleVarProfileDetails: ComputedRef<Array<VarProfileDetail> | null>;
21
- t1: (var_nam?: string | null) => ComputedRef<string>;
22
- t2: (var_nam?: string | null) => string;
23
+ t: (var_nam?: string | null) => ComputedRef<string>;
23
24
  };
24
25
  /**
25
26
  * 启用变量.
26
- * 1. 在子组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.
27
- * 2. 在寄生页面中想访问宿主页面的变量配置时, 需要传宿主页面的界面标识.
28
- * 3. 在组件外调用时, 必须传界面标识.
27
+ * 1. 在下级组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.
28
+ * 2. 在任意页面中, 想要访问其他界面标识对应的页面的数据, 需要传入该'界面标识'.
29
+ * 3. 在组件外(setup 外面)调用时, 必须传入'界面标识'.
29
30
  * @param formID 界面标识.
31
+ * @param init 是否要初始化界面. 在'宿主页面'第一次调用时, 需要传 true, 对该页面做初始化.
30
32
  */
31
- export declare function useKgVar(formID?: string | null): IUseKgVar;
33
+ export declare function useKgVar(formID?: string | null, init?: boolean): IUseKgVar;
@@ -7,5 +7,5 @@ export declare class KgVarUtil {
7
7
  * @param params JSON 字符串形式的参数.
8
8
  * @return 参数对象.
9
9
  */
10
- static parseActionParameter(params?: string | null): Record<string, any>;
10
+ static parseCommandParameter(params?: string | null): Record<string, any>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.2.2-beta.10",
3
+ "version": "0.2.2-beta.12",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",