@kengic/vue 0.5.24 → 0.5.26
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 +1942 -1767
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +11 -0
- package/dist/src/apis/WMS/models.d.ts +2 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +4 -6
- package/dist/src/components/KgSubmit/index.hooks.d.ts +5 -1
- package/dist/src/components/KgSubmit/index.store.d.ts +21 -6
- package/dist/src/components/KgTable/index.vm.d.ts +16 -0
- package/dist/src/consts/index.d.ts +5 -1
- package/package.json +1 -1
@@ -1,6 +1,17 @@
|
|
1
1
|
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
2
|
/** 请求参数. */
|
3
3
|
export declare class ExportXlsQuery {
|
4
|
+
/** 界面标识(FormID). */
|
5
|
+
frm_id?: string | null;
|
6
|
+
/** 界面名称(FormName). */
|
7
|
+
frm_nam?: string | null;
|
8
|
+
/** 分组(GroupName). */
|
9
|
+
grp_nam?: string | null;
|
10
|
+
/** 主键. */
|
11
|
+
id?: string | null;
|
12
|
+
/** 变量名称(VariableName). */
|
13
|
+
var_nam?: string | null;
|
14
|
+
constructor(obj?: ExportXlsQuery);
|
4
15
|
}
|
5
16
|
/**
|
6
17
|
* 变量-导出
|
@@ -183,6 +183,8 @@ export declare class VarGridConfig {
|
|
183
183
|
cmd_prm?: string | null;
|
184
184
|
/** 是否将排序字段转换为 under_score 命名方式. */
|
185
185
|
convert_sort_field_to_under_score_flg?: number | null;
|
186
|
+
/** 行展开是否使用手风琴风格(一次只能展开一行). */
|
187
|
+
expand_accordion_flg?: number | null;
|
186
188
|
/** 界面标识(FormID). */
|
187
189
|
frm_id?: string | null;
|
188
190
|
/** 主键. */
|
@@ -22,19 +22,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
22
|
type: import("vue").PropType<boolean>;
|
23
23
|
default: boolean;
|
24
24
|
};
|
25
|
-
/** 是否全选. */
|
26
25
|
kgAllowClear: {
|
27
26
|
type: import("vue").PropType<boolean>;
|
28
|
-
/** 是否全选. */
|
29
27
|
default: boolean;
|
30
28
|
};
|
29
|
+
/** 是否全选. */
|
31
30
|
kgType: import("vue").PropType<import("../../..").KG_FORM_ITEM_TYPE>;
|
32
31
|
kgShowTime: {
|
33
32
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
34
33
|
default: undefined;
|
35
34
|
};
|
36
35
|
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
37
|
-
onKgLookupBeforeOk: import("vue").PropType<(value: any, record: import("
|
36
|
+
onKgLookupBeforeOk: import("vue").PropType<(value: any, record: import("../../KgTable").IKgTableRow<{}> | import("../../KgTable").IKgTableRow<{}>[]) => boolean>;
|
38
37
|
value: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
39
38
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
40
39
|
onKgSubmit: import("vue").PropType<() => void>;
|
@@ -66,19 +65,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
65
|
type: import("vue").PropType<boolean>;
|
67
66
|
default: boolean;
|
68
67
|
};
|
69
|
-
/** 是否全选. */
|
70
68
|
kgAllowClear: {
|
71
69
|
type: import("vue").PropType<boolean>;
|
72
|
-
/** 是否全选. */
|
73
70
|
default: boolean;
|
74
71
|
};
|
72
|
+
/** 是否全选. */
|
75
73
|
kgType: import("vue").PropType<import("../../..").KG_FORM_ITEM_TYPE>;
|
76
74
|
kgShowTime: {
|
77
75
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
78
76
|
default: undefined;
|
79
77
|
};
|
80
78
|
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
81
|
-
onKgLookupBeforeOk: import("vue").PropType<(value: any, record: import("
|
79
|
+
onKgLookupBeforeOk: import("vue").PropType<(value: any, record: import("../../KgTable").IKgTableRow<{}> | import("../../KgTable").IKgTableRow<{}>[]) => boolean>;
|
82
80
|
value: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
83
81
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
84
82
|
onKgSubmit: import("vue").PropType<() => void>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { IRemoveEventListenerHandler } from '../../consts';
|
3
|
-
import { IKgSubmitBeforeOkCb, IKgSubmitCloseCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
|
3
|
+
import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
|
4
4
|
export declare type IUseKgSubmit = {
|
5
5
|
formID: string;
|
6
6
|
/** 状态数据. */
|
@@ -13,6 +13,10 @@ export declare type IUseKgSubmit = {
|
|
13
13
|
onClose(cb: IKgSubmitCloseCb): IRemoveEventListenerHandler;
|
14
14
|
/** 监听事件: 点击保存按钮之后, 执行默认逻辑之前. 可以在此时修改表单的值; 可以在此时对表单的值进行验证, 如果返回 true 表示表单验证失败, 不会再执行后面的代码. */
|
15
15
|
onBeforeOk(cb: IKgSubmitBeforeOkCb): IRemoveEventListenerHandler;
|
16
|
+
/** 监听事件: 点击保存按钮之后, 表单验证成功. 如果返回 true, 不会再执行后面的代码. */
|
17
|
+
onAfterValidate(cb: IKgSubmitAfterValidateCb): IRemoveEventListenerHandler;
|
18
|
+
/** 监听事件: 发起请求之前. */
|
19
|
+
onBeforeRequest(cb: IKgSubmitBeforeRequestCb): IRemoveEventListenerHandler;
|
16
20
|
/** 监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 即将关闭抽屉. */
|
17
21
|
onOk(cb: IKgSubmitOkCb): IRemoveEventListenerHandler;
|
18
22
|
};
|
@@ -4,12 +4,14 @@ import { Ref } from 'vue';
|
|
4
4
|
import { IKgTableRow } from '../KgTable';
|
5
5
|
/**
|
6
6
|
* 事件类型.
|
7
|
-
* 'open':
|
8
|
-
* 'close':
|
9
|
-
* 'beforeOk':
|
10
|
-
* '
|
7
|
+
* 'open': 打开抽屉
|
8
|
+
* 'close': 关闭抽屉
|
9
|
+
* 'beforeOk': 点击保存按钮之后, 执行默认逻辑之前
|
10
|
+
* 'afterValidate': 表单验证成功
|
11
|
+
* 'beforeRequest': 发起请求之前
|
12
|
+
* 'ok': 请求成功, 即将关闭抽屉
|
11
13
|
*/
|
12
|
-
export declare type IKgSubmitEvent = 'open' | 'close' | 'beforeOk' | 'ok';
|
14
|
+
export declare type IKgSubmitEvent = 'open' | 'close' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok';
|
13
15
|
/** 事件监听函数: open. */
|
14
16
|
export declare type IKgSubmitOpenCbParams = {
|
15
17
|
isCreating: boolean;
|
@@ -28,13 +30,26 @@ export declare type IKgSubmitBeforeOkCbParams = {
|
|
28
30
|
model: Ref<Record<string, any>>;
|
29
31
|
};
|
30
32
|
export declare type IKgSubmitBeforeOkCb = (args: IKgSubmitBeforeOkCbParams) => Promise<boolean>;
|
33
|
+
/** 事件监听函数: afterValidate. */
|
34
|
+
export declare type IKgSubmitAfterValidateCbParams = {
|
35
|
+
model: Ref<Record<string, any>>;
|
36
|
+
};
|
37
|
+
export declare type IKgSubmitAfterValidateCb = (args: IKgSubmitAfterValidateCbParams) => Promise<boolean>;
|
38
|
+
/** 事件监听函数: beforeRequest. */
|
39
|
+
export declare type IKgSubmitBeforeRequestCbParams = {
|
40
|
+
params: Record<string, any>;
|
41
|
+
data: Record<string, any>;
|
42
|
+
};
|
43
|
+
export declare type IKgSubmitBeforeRequestCb = (args: IKgSubmitBeforeRequestCbParams) => Promise<boolean>;
|
31
44
|
/** 事件监听函数: ok. */
|
32
45
|
export declare type IKgSubmitOkCb = (args?: any | null) => Promise<boolean>;
|
33
|
-
export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitCloseCb | IKgSubmitBeforeOkCb | IKgSubmitOkCb;
|
46
|
+
export declare type IKgSubmitCb = IKgSubmitOpenCb | IKgSubmitCloseCb | IKgSubmitBeforeOkCb | IKgSubmitAfterValidateCb | IKgSubmitBeforeRequestCb | IKgSubmitOkCb;
|
34
47
|
export interface IKgSubmitState {
|
35
48
|
openListenersMap: Map<string, Array<IKgSubmitOpenCb>>;
|
36
49
|
closeListenersMap: Map<string, Array<IKgSubmitCloseCb>>;
|
37
50
|
beforeOkListenersMap: Map<string, Array<IKgSubmitBeforeOkCb>>;
|
51
|
+
afterValidateListenersMap: Map<string, Array<IKgSubmitAfterValidateCb>>;
|
52
|
+
beforeRequestListenersMap: Map<string, Array<IKgSubmitBeforeRequestCb>>;
|
38
53
|
okListenersMap: Map<string, Array<IKgSubmitOkCb>>;
|
39
54
|
isLoadingMap: Map<string, boolean>;
|
40
55
|
/** 表单数据对象. */
|
@@ -62,6 +62,22 @@ export interface IKgTableCellDisplayTypeProperties {
|
|
62
62
|
path: string;
|
63
63
|
};
|
64
64
|
}
|
65
|
+
/**
|
66
|
+
* 对应于 {@link VarVariableConfig.ctrl_prop} 字段, 不同类型的额外参数.
|
67
|
+
* @see VarVariableConfig.ctrl_prop
|
68
|
+
* @see KG_FORM_ITEM_TYPE
|
69
|
+
*/
|
70
|
+
export interface IKgFormItemProperties {
|
71
|
+
CHECKBOX_GROUP: {
|
72
|
+
/**
|
73
|
+
* 数据项的宽度.
|
74
|
+
* @default 24
|
75
|
+
*/
|
76
|
+
span?: number;
|
77
|
+
/** 要排除哪些值. */
|
78
|
+
excludeValues?: Array<any>;
|
79
|
+
};
|
80
|
+
}
|
65
81
|
/** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
|
66
82
|
export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
|
67
83
|
/** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
|
@@ -17,7 +17,11 @@ export declare const enum KG_APP_PREFIX {
|
|
17
17
|
}
|
18
18
|
/** 所有模块路径前缀. */
|
19
19
|
export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
20
|
-
/**
|
20
|
+
/**
|
21
|
+
* 表单控件类型.
|
22
|
+
* @see VarVariableConfig.ctrl_prop
|
23
|
+
* @see IKgFormItemTypeProperties
|
24
|
+
*/
|
21
25
|
export declare const enum KG_FORM_ITEM_TYPE {
|
22
26
|
/** 文本. */
|
23
27
|
INPUT = "INPUT",
|