@kengic/vue 0.1.1-beta.5 → 0.2.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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +2944 -2359
- package/dist/src/apis/WMS/Controllers/VarCatalogController/ExportXls.d.ts +6 -6
- package/dist/src/apis/WMS/Controllers/VarCatalogController/List.d.ts +6 -6
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +2 -2
- package/dist/src/apis/WMS/models.d.ts +76 -8
- package/dist/src/components/KgButton/index.d.ts +2 -4
- package/dist/src/components/KgControl/KgControl.Select.d.ts +2 -0
- package/dist/src/components/KgControl/KgControl.d.ts +4 -4
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.Modal.d.ts +22 -0
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +13 -1
- package/dist/src/components/KgControl/index.d.ts +2 -4
- package/dist/src/components/KgSearch/KgSearch.d.ts +11 -9
- package/dist/src/components/KgSearch/index.d.ts +3 -4
- package/dist/src/components/KgSearch/index.hook.d.ts +4 -0
- package/dist/src/components/KgSearch/index.store.d.ts +28 -0
- package/dist/src/components/KgTable/KgTable.Td.d.ts +15 -0
- package/dist/src/components/KgTable/KgTable.d.ts +13 -0
- package/dist/src/components/KgTable/KgTable.data.d.ts +6 -0
- package/dist/src/components/KgTable/index.d.ts +4 -0
- package/dist/src/components/KgTable/index.hook.d.ts +7 -0
- package/dist/src/components/KgTable/index.store.d.ts +16 -0
- package/dist/src/components/KgTable/index.vm.d.ts +7 -0
- package/dist/src/components/KgVar/index.d.ts +2 -2
- package/dist/src/components/KgVar/index.hook.d.ts +45 -0
- package/dist/src/components/KgVar/index.store.d.ts +33 -0
- package/dist/src/components/index.d.ts +4 -3
- package/dist/src/consts/i18n/en.d.ts +1 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
- package/dist/src/consts/injection-keys.const.d.ts +6 -0
- package/package.json +1 -1
- package/dist/src/components/KgSearch/index.vm.d.ts +0 -9
- package/dist/src/components/KgVar/hooks/index.d.ts +0 -52
- package/dist/src/components/KgVar/store/index.d.ts +0 -16
- package/dist/src/components/KgVar/store/index.data.d.ts +0 -11
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
2
2
|
/** 请求参数. */
|
|
3
3
|
export declare class ExportXlsQuery {
|
|
4
|
-
/**
|
|
4
|
+
/** 定制级别(CustomLevel). */
|
|
5
5
|
custLvl?: number | null;
|
|
6
|
-
/**
|
|
6
|
+
/** 界面标识(FormID). */
|
|
7
7
|
frmId?: string | null;
|
|
8
|
-
/**
|
|
8
|
+
/** 分组(GroupName). */
|
|
9
9
|
grpNam?: string | null;
|
|
10
10
|
/** 主键. */
|
|
11
11
|
id?: string | null;
|
|
12
|
-
/**
|
|
12
|
+
/** 语言(LocaleID). */
|
|
13
13
|
localeId?: string | null;
|
|
14
|
-
/**
|
|
14
|
+
/** 变量名称(VariableName). */
|
|
15
15
|
varNam?: string | null;
|
|
16
|
-
/**
|
|
16
|
+
/** 显示文本(Text). */
|
|
17
17
|
varText?: string | null;
|
|
18
18
|
constructor(obj?: ExportXlsQuery);
|
|
19
19
|
}
|
|
@@ -4,15 +4,15 @@ import * as DEF from '../../../def';
|
|
|
4
4
|
export declare class ListQuery {
|
|
5
5
|
/** 排序字段. */
|
|
6
6
|
column?: string | null;
|
|
7
|
-
/**
|
|
7
|
+
/** 定制级别(CustomLevel). */
|
|
8
8
|
custLvl?: number | null;
|
|
9
|
-
/**
|
|
9
|
+
/** 界面标识(FormID). */
|
|
10
10
|
frmId?: string | null;
|
|
11
|
-
/**
|
|
11
|
+
/** 分组(GroupName). */
|
|
12
12
|
grpNam?: string | null;
|
|
13
13
|
/** 主键. */
|
|
14
14
|
id?: string | null;
|
|
15
|
-
/**
|
|
15
|
+
/** 语言(LocaleID). */
|
|
16
16
|
localeId?: string | null;
|
|
17
17
|
/** 排序方式. */
|
|
18
18
|
order?: 'asc' | 'desc' | null;
|
|
@@ -20,9 +20,9 @@ export declare class ListQuery {
|
|
|
20
20
|
pageNo?: number | null;
|
|
21
21
|
/** 每页条数. */
|
|
22
22
|
pageSize?: number | null;
|
|
23
|
-
/**
|
|
23
|
+
/** 变量名称(VariableName). */
|
|
24
24
|
varNam?: string | null;
|
|
25
|
-
/**
|
|
25
|
+
/** 显示文本(Text). */
|
|
26
26
|
varText?: string | null;
|
|
27
27
|
constructor(obj?: ListQuery);
|
|
28
28
|
}
|
|
@@ -2,9 +2,9 @@ import { IRequestConfig, IRequestOptions } from '../../../../services';
|
|
|
2
2
|
import * as DEF from '../../../def';
|
|
3
3
|
/** 请求参数. */
|
|
4
4
|
export declare class GetAllQuery {
|
|
5
|
-
/**
|
|
5
|
+
/** 界面标识(FormID). */
|
|
6
6
|
frmId?: string | null;
|
|
7
|
-
/**
|
|
7
|
+
/** 语言(LocaleID). */
|
|
8
8
|
localeId?: string | null;
|
|
9
9
|
constructor(obj?: GetAllQuery);
|
|
10
10
|
}
|
|
@@ -12,22 +12,22 @@ export declare class IPage<T0> {
|
|
|
12
12
|
constructor(obj?: IPage<T0>);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 变量别名.
|
|
16
16
|
*/
|
|
17
17
|
export declare class VarCatalog {
|
|
18
|
-
/**
|
|
18
|
+
/** 定制级别(CustomLevel). */
|
|
19
19
|
custLvl?: number | null;
|
|
20
|
-
/**
|
|
20
|
+
/** 界面标识(FormID). */
|
|
21
21
|
frmId?: string | null;
|
|
22
|
-
/**
|
|
22
|
+
/** 分组(GroupName). */
|
|
23
23
|
grpNam?: string | null;
|
|
24
24
|
/** 主键. */
|
|
25
25
|
id?: string | null;
|
|
26
|
-
/**
|
|
26
|
+
/** 语言(LocaleID). */
|
|
27
27
|
localeId?: string | null;
|
|
28
|
-
/**
|
|
28
|
+
/** 变量名称(VariableName). */
|
|
29
29
|
varNam?: string | null;
|
|
30
|
-
/**
|
|
30
|
+
/** 显示文本(Text). */
|
|
31
31
|
varText?: string | null;
|
|
32
32
|
constructor(obj?: VarCatalog);
|
|
33
33
|
}
|
|
@@ -53,10 +53,76 @@ export declare class VarContext {
|
|
|
53
53
|
export declare class VarDTO {
|
|
54
54
|
/** 变量别名. */
|
|
55
55
|
varCatalogs?: Array<VarCatalog> | null;
|
|
56
|
+
/** 表格. */
|
|
57
|
+
varGrid?: VarGridDTO | null;
|
|
56
58
|
/** 变量查找. */
|
|
57
59
|
varLookups?: Array<VarLookup> | null;
|
|
58
60
|
constructor(obj?: VarDTO);
|
|
59
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* 表格.
|
|
64
|
+
*/
|
|
65
|
+
export declare class VarGridDTO {
|
|
66
|
+
/** 表格视图列表. */
|
|
67
|
+
varGridMasters?: Array<VarGridMasterDTO> | null;
|
|
68
|
+
constructor(obj?: VarGridDTO);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 表格视图明细.
|
|
72
|
+
*/
|
|
73
|
+
export declare class VarGridDetail {
|
|
74
|
+
/** 定制级别(CustomLevel). */
|
|
75
|
+
custLvl?: number | null;
|
|
76
|
+
/** 是否显示省略号(EllipsisFlag). */
|
|
77
|
+
ellipsisFlg?: number | null;
|
|
78
|
+
/** 是否固定到左侧(FixToLeftFlag). */
|
|
79
|
+
fixLeftFlg?: number | null;
|
|
80
|
+
/** 是否固定到右侧(FixToRightFlag). */
|
|
81
|
+
fixRightFlg?: number | null;
|
|
82
|
+
/** 数据表的列名(FieldName). */
|
|
83
|
+
fldNam?: string | null;
|
|
84
|
+
/** 界面标识(FormID). */
|
|
85
|
+
frmId?: string | null;
|
|
86
|
+
/** 视图变量名称(GridVariableName). */
|
|
87
|
+
grdVarNam?: string | null;
|
|
88
|
+
/** 分组(GroupName). */
|
|
89
|
+
grpNam?: string | null;
|
|
90
|
+
/** 主键. */
|
|
91
|
+
id?: string | null;
|
|
92
|
+
/** 排序方式(OrderBy). */
|
|
93
|
+
ord?: number | null;
|
|
94
|
+
/** 是否支持排序(OrderByFlag). */
|
|
95
|
+
ordFlg?: number | null;
|
|
96
|
+
/** 显示顺序(SortSequence). */
|
|
97
|
+
srtseq?: number | null;
|
|
98
|
+
/** 是否可见(VisibleFlag). */
|
|
99
|
+
visFlg?: number | null;
|
|
100
|
+
/** 列宽(Width). */
|
|
101
|
+
width?: number | null;
|
|
102
|
+
constructor(obj?: VarGridDetail);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 表格视图.
|
|
106
|
+
*/
|
|
107
|
+
export declare class VarGridMasterDTO {
|
|
108
|
+
/** 定制级别(CustomLevel). */
|
|
109
|
+
custLvl?: number | null;
|
|
110
|
+
/** 是否默认显示(DefaultFlag). */
|
|
111
|
+
defFlg?: number | null;
|
|
112
|
+
/** 界面标识(FormID). */
|
|
113
|
+
frmId?: string | null;
|
|
114
|
+
/** 视图变量名称(GridVariableName). */
|
|
115
|
+
grdVarNam?: string | null;
|
|
116
|
+
/** 分组(GroupName). */
|
|
117
|
+
grpNam?: string | null;
|
|
118
|
+
/** 主键. */
|
|
119
|
+
id?: string | null;
|
|
120
|
+
/** 用户(UserID). */
|
|
121
|
+
usrId?: string | null;
|
|
122
|
+
/** 表格视图明细. */
|
|
123
|
+
varGridDetails?: Array<VarGridDetail> | null;
|
|
124
|
+
constructor(obj?: VarGridMasterDTO);
|
|
125
|
+
}
|
|
60
126
|
/**
|
|
61
127
|
* 变量查找.
|
|
62
128
|
*/
|
|
@@ -73,9 +139,11 @@ export declare class VarLookup {
|
|
|
73
139
|
id?: string | null;
|
|
74
140
|
/** 查询接口地址(LookupCommand). */
|
|
75
141
|
lkpCmd?: string | null;
|
|
142
|
+
/** 查询接口参数(LookupCommandParameter). */
|
|
143
|
+
lkpCmdPrm?: string | null;
|
|
76
144
|
/** 查找编号(LookupID). */
|
|
77
145
|
lkpId?: string | null;
|
|
78
|
-
/** 语言(LocaleID) */
|
|
146
|
+
/** 语言(LocaleID). */
|
|
79
147
|
localeId?: string | null;
|
|
80
148
|
/** 是否支持多选(MultipleFlag). */
|
|
81
149
|
multFlg?: number | null;
|
|
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
16
16
|
kgPlaceholder: {
|
|
17
|
+
/** 获取下拉列表数据. */
|
|
17
18
|
type: import("vue").PropType<string>;
|
|
18
19
|
default: string;
|
|
19
20
|
};
|
|
@@ -58,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
59
|
};
|
|
59
60
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
|
|
60
61
|
kgPlaceholder: {
|
|
62
|
+
/** 获取下拉列表数据. */
|
|
61
63
|
type: import("vue").PropType<string>;
|
|
62
64
|
default: string;
|
|
63
65
|
};
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
17
17
|
kgPlaceholder: {
|
|
18
|
-
type: import("vue").PropType<string>;
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
kgCodeColumn: {
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
kgDescriptionColumn: {
|
|
26
26
|
type: import("vue").PropType<string>;
|
|
27
27
|
default: string;
|
|
28
|
-
};
|
|
28
|
+
}; /** 样式. */
|
|
29
29
|
kgAction: import("vue").PropType<string>;
|
|
30
30
|
kgActionParameter: import("vue").PropType<string>;
|
|
31
31
|
kgValidateInfo: {
|
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
};
|
|
60
60
|
kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
|
|
61
61
|
kgPlaceholder: {
|
|
62
|
-
type: import("vue").PropType<string>;
|
|
62
|
+
type: import("vue").PropType<string>;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
kgCodeColumn: {
|
|
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
kgDescriptionColumn: {
|
|
70
70
|
type: import("vue").PropType<string>;
|
|
71
71
|
default: string;
|
|
72
|
-
};
|
|
72
|
+
}; /** 样式. */
|
|
73
73
|
kgAction: import("vue").PropType<string>;
|
|
74
74
|
kgActionParameter: import("vue").PropType<string>;
|
|
75
75
|
kgValidateInfo: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import './KgControl.Addon.Lookup.Modal.less';
|
|
3
|
+
import { IKgTableRow } from '../../KgTable';
|
|
4
|
+
export declare const getProps: () => {
|
|
5
|
+
visible: PropType<boolean>;
|
|
6
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
7
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
8
|
+
};
|
|
9
|
+
export declare type KgControlAddonLookupModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
visible: PropType<boolean>;
|
|
12
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
13
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "kgOk")[], "update:visible" | "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
15
|
+
visible: PropType<boolean>;
|
|
16
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
|
17
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
18
|
+
}>> & {
|
|
19
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export default _default;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
2
|
import './KgControl.Addon.Lookup.less';
|
|
2
|
-
|
|
3
|
+
import { IKgTableRow } from '../../KgTable';
|
|
4
|
+
export declare const getProps: () => {
|
|
5
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
6
|
+
};
|
|
7
|
+
export declare type KgControlAddonLookupProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
11
|
+
onKgOk: PropType<(value: any, row: IKgTableRow) => void>;
|
|
12
|
+
}>> & {
|
|
13
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}, {}>;
|
|
3
15
|
export default _default;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
1
2
|
import './KgSearch.less';
|
|
3
|
+
export declare const getProps: () => {
|
|
4
|
+
/** 表单对象. */
|
|
5
|
+
kgModel: PropType<Record<string, any>>;
|
|
6
|
+
};
|
|
7
|
+
export declare type KgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
2
8
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
kgModel: {
|
|
9
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
9
|
+
/** 表单对象. */
|
|
10
|
+
kgModel: PropType<Record<string, any>>;
|
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSearch" | "kgReset")[], "kgSearch" | "kgReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
12
|
+
/** 表单对象. */
|
|
13
|
+
kgModel: PropType<Record<string, any>>;
|
|
12
14
|
}>> & {
|
|
13
15
|
onKgSearch?: ((...args: any[]) => any) | undefined;
|
|
14
16
|
onKgReset?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export default KgSearch;
|
|
1
|
+
export { default as KgSearch, type KgSearchProps } from './KgSearch';
|
|
2
|
+
export * from './index.hook';
|
|
3
|
+
export * from './index.store';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface KgSearchState {
|
|
2
|
+
/** '查询'事件监听函数列表. */
|
|
3
|
+
onSearchListeners: Map<string, Array<Function>>;
|
|
4
|
+
/** '重置'事件监听函数列表. */
|
|
5
|
+
onResetListeners: Map<string, Array<Function>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useKgSearchStore: import("pinia").StoreDefinition<"KgSearch", KgSearchState, {}, {
|
|
8
|
+
/**
|
|
9
|
+
* 注册事件监听.
|
|
10
|
+
* @param formID 界面标识.
|
|
11
|
+
* @param event 事件名称.
|
|
12
|
+
* @param cb 回调函数.
|
|
13
|
+
*/
|
|
14
|
+
addEventListener(formID: string, event: 'search' | 'reset', cb: Function): void;
|
|
15
|
+
/**
|
|
16
|
+
* 退订事件监听.
|
|
17
|
+
* @param formID 界面标识.
|
|
18
|
+
* @param event 事件名称.
|
|
19
|
+
* @param cb 回调函数.
|
|
20
|
+
*/
|
|
21
|
+
removeEventListener(formID: string, event: 'search' | 'reset', cb?: Function): void;
|
|
22
|
+
/**
|
|
23
|
+
* 触发事件.
|
|
24
|
+
* @param formID 界面标识.
|
|
25
|
+
* @param event 事件名称.
|
|
26
|
+
*/
|
|
27
|
+
emit(formID: string, event: 'search' | 'reset'): void;
|
|
28
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import './KgTable.Td.less';
|
|
3
|
+
export declare const getProps: () => {
|
|
4
|
+
/** 列值. */
|
|
5
|
+
kgValue: PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
export declare type KgTableTdProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
/** 列值. */
|
|
10
|
+
kgValue: PropType<any>;
|
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
12
|
+
/** 列值. */
|
|
13
|
+
kgValue: PropType<any>;
|
|
14
|
+
}>>, {}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import './KgTable.less';
|
|
3
|
+
import { VarLookup } from '../../apis/WMS/models';
|
|
4
|
+
export declare const getProps: () => {
|
|
5
|
+
TODO: PropType<VarLookup | null>;
|
|
6
|
+
};
|
|
7
|
+
export declare type KgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
TODO: PropType<VarLookup | null>;
|
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
11
|
+
TODO: PropType<VarLookup | null>;
|
|
12
|
+
}>>, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IKgTableRow } from './index.vm';
|
|
2
|
+
export interface KgTableState {
|
|
3
|
+
/** 勾选的行. */
|
|
4
|
+
selectedRowsMap: Map<string, Array<IKgTableRow>>;
|
|
5
|
+
}
|
|
6
|
+
export declare const useKgTableStore: import("pinia").StoreDefinition<"KgTable", KgTableState, {
|
|
7
|
+
/**
|
|
8
|
+
* 根据 formID 获取勾选的行.
|
|
9
|
+
* @param state
|
|
10
|
+
*/
|
|
11
|
+
getSelectedRows(state: {
|
|
12
|
+
selectedRowsMap: Map<string, Array<IKgTableRow>>;
|
|
13
|
+
} & import("pinia").PiniaCustomStateProperties<KgTableState>): (formID?: string | null) => Array<IKgTableRow> | null;
|
|
14
|
+
}, {
|
|
15
|
+
setSelectedRows(formID: string, selectedRows: Array<IKgTableRow>): void;
|
|
16
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './store';
|
|
1
|
+
export * from './index.hook';
|
|
2
|
+
export * from './index.store';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 启用变量.
|
|
4
|
+
* 在子组件中调用时, 可以不传该参数, 此时会通过依赖注入获取.
|
|
5
|
+
* 在寄生页面中想访问宿主页面的变量配置时, 需要传宿主页面的界面标识.
|
|
6
|
+
* 在组件外调用时, 必须传界面标识.
|
|
7
|
+
* @param formID 界面标识.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useKgVar(formID?: string): {
|
|
10
|
+
formID: string;
|
|
11
|
+
kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
|
|
12
|
+
getTopFormID(): string | null;
|
|
13
|
+
getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
|
|
14
|
+
getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
|
|
15
|
+
getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
|
|
16
|
+
getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
|
|
17
|
+
getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
|
|
18
|
+
getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
|
|
19
|
+
}, {
|
|
20
|
+
leave(formID: string): void;
|
|
21
|
+
deleteAll(formID: string): void;
|
|
22
|
+
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
23
|
+
enter(formID: string): Promise<void>;
|
|
24
|
+
}>;
|
|
25
|
+
t1: (varName?: string | null) => ComputedRef<string>;
|
|
26
|
+
t2: (varName?: string | null) => string;
|
|
27
|
+
} | {
|
|
28
|
+
formID: string;
|
|
29
|
+
kgVarStore: import("pinia").Store<"KgVar", import("./index.store").KgVarState, {
|
|
30
|
+
getTopFormID(): string | null;
|
|
31
|
+
getVarCatalogs(): (formID?: string | null | undefined) => import("../..").VarCatalog[] | null;
|
|
32
|
+
getVarCatalog(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarCatalog | null;
|
|
33
|
+
getVarLookup(): (formID?: string | null | undefined, varName?: string | null | undefined) => import("../..").VarLookup | null;
|
|
34
|
+
getVarGridMasters(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO[] | null;
|
|
35
|
+
getVarGridMaster(): (formID?: string | null | undefined) => import("../..").VarGridMasterDTO | null;
|
|
36
|
+
getVarGridDetails(): (formID?: string | null | undefined) => import("../..").VarGridDetail[] | null;
|
|
37
|
+
}, {
|
|
38
|
+
leave(formID: string): void;
|
|
39
|
+
deleteAll(formID: string): void;
|
|
40
|
+
retrieveAll(formID?: string | null | undefined): Promise<void>;
|
|
41
|
+
enter(formID: string): Promise<void>;
|
|
42
|
+
}>;
|
|
43
|
+
t1: (varName?: string | null) => Ref<string>;
|
|
44
|
+
t2: (varName?: string | null) => string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type StoreDefinition } from 'pinia';
|
|
2
|
+
import { VarCatalog, VarGridDetail, VarGridDTO, VarGridMasterDTO, VarLookup } from '../../apis/WMS/models';
|
|
3
|
+
export interface KgVarState {
|
|
4
|
+
/**
|
|
5
|
+
* 当前可能打开了多个界面, 需要按照先后顺序记录下来, 当打开变量配置弹窗时, 打开的是最近那个页面的变量配置.
|
|
6
|
+
*/
|
|
7
|
+
formIDs: Array<string>;
|
|
8
|
+
/** 变量别名. */
|
|
9
|
+
varCatalogsMap: Map<string, Array<VarCatalog>>;
|
|
10
|
+
/** 变量查找. */
|
|
11
|
+
varLookupsMap: Map<string, Array<VarLookup>>;
|
|
12
|
+
/** 表格. */
|
|
13
|
+
varGridMap: Map<string, {
|
|
14
|
+
varGrid: VarGridDTO | null;
|
|
15
|
+
/** 当前表格视图. */
|
|
16
|
+
currentVarGridMasterID: string | null;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', KgVarState, {
|
|
20
|
+
getTopFormID(): string | null;
|
|
21
|
+
getVarCatalogs(): (formID?: string | null) => Array<VarCatalog> | null;
|
|
22
|
+
getVarCatalog(): (formID?: string | null, varName?: string | null) => VarCatalog | null;
|
|
23
|
+
getVarLookup(): (formID?: string | null, varName?: string | null) => VarLookup | null;
|
|
24
|
+
getVarGridMasters(): (formID?: string | null) => Array<VarGridMasterDTO> | null;
|
|
25
|
+
getVarGridMaster(): (formID?: string | null) => VarGridMasterDTO | null;
|
|
26
|
+
getVarGridDetails(): (formID?: string | null) => Array<VarGridDetail> | null;
|
|
27
|
+
}, {
|
|
28
|
+
leave(formID: string): void;
|
|
29
|
+
deleteAll(formID: string): void;
|
|
30
|
+
retrieveAll(formID?: string | null): Promise<void>;
|
|
31
|
+
enter(formID: string): Promise<void>;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const useKgVarStore: () => IKgVarStoreDefinition;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './KgButton';
|
|
2
|
+
export * from './KgControl';
|
|
3
|
+
export * from './KgTable';
|
|
4
|
+
export * from './KgSearch';
|
|
4
5
|
import KgPage from './KgPage/KgPage';
|
|
5
6
|
import KgProgressA from './KgProgressA/KgProgressA';
|
|
6
7
|
import KgYesOrNo from './KgYesOrNo/KgYesOrNo';
|
|
@@ -18,6 +18,7 @@ export declare const KG_I18N: {
|
|
|
18
18
|
save: string;
|
|
19
19
|
cancel: string;
|
|
20
20
|
confirm: string;
|
|
21
|
+
lookup: string;
|
|
21
22
|
confirmDelete: string;
|
|
22
23
|
KgSearch: {
|
|
23
24
|
title: string;
|
|
@@ -43,6 +44,7 @@ export declare const KG_I18N: {
|
|
|
43
44
|
save: string;
|
|
44
45
|
cancel: string;
|
|
45
46
|
confirm: string;
|
|
47
|
+
lookup: string;
|
|
46
48
|
confirmDelete: string;
|
|
47
49
|
KgSearch: {
|
|
48
50
|
title: string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
/** 界面标识. */
|
|
3
3
|
export declare const KG_DI_FORM_ID: InjectionKey<string>;
|
|
4
|
+
/** 宿主界面标识. */
|
|
5
|
+
export declare const KG_DI_HOST_FORM_ID: InjectionKey<string>;
|
|
6
|
+
/** 变量名称. */
|
|
7
|
+
export declare const KG_DI_VAR_NAME: InjectionKey<string>;
|
|
8
|
+
/** 变量查找编号. */
|
|
9
|
+
export declare const KG_DI_LOOKUP_ID: InjectionKey<string>;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
export declare const getProps: () => {
|
|
3
|
-
/** 表单对象. */
|
|
4
|
-
kgModel: {
|
|
5
|
-
type: PropType<Record<string, any>>;
|
|
6
|
-
required: boolean;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare type KgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|