@kengic/vue 0.23.3 → 0.23.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3263 -3345
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +6 -6
- package/dist/src/components/KgAppSelect/index.store.d.ts +4 -4
- package/dist/src/components/KgButton/KgButton.Item.d.ts +3 -3
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +2 -2
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -3
- package/dist/src/components/KgButton/index.hooks.d.ts +39 -35
- package/dist/src/components/KgButton/index.store.d.ts +13 -12
- package/dist/src/components/KgForm/index.hooks.d.ts +17 -17
- package/dist/src/components/KgForm/index.store.d.ts +4 -4
- package/dist/src/components/KgForm/index.vm.d.ts +2 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +1 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +4 -27
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +5 -22
- package/dist/src/components/KgSearch/components/{KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts → KgSearch.ConfigModal.VarProfileMaster.service.d.ts} +1 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -22
- package/dist/src/components/KgSearch/index.hooks.d.ts +9 -9
- package/dist/src/components/KgSearch/index.store.d.ts +4 -4
- package/dist/src/components/KgSearch/index.vm.d.ts +2 -1
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +1 -30
- package/dist/src/components/KgSubmit/index.hooks.d.ts +31 -31
- package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
- package/dist/src/components/KgTable/KgTable.service.d.ts +0 -1
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +4 -21
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +5 -18
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +5 -22
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts +2 -2
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -15
- package/dist/src/components/KgTable/index.hooks.d.ts +28 -24
- package/dist/src/components/KgTable/index.store.d.ts +12 -6
- package/dist/src/components/KgVar/index.hooks.d.ts +6 -6
- package/dist/src/components/KgVar/index.store.d.ts +16 -17
- package/dist/src/components/KgVar/index.vm.d.ts +2 -2
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +6 -12
- package/dist/src/components/{KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts → KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts} +1 -1
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +5 -22
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +4 -21
- package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -1
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -3
- package/dist/src/components/KgWarehouse/index.store.d.ts +4 -4
- package/dist/src/components/util.d.ts +5 -5
- package/dist/src/consts/i18n/en.d.ts +1 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
- package/dist/src/consts/index.vm.d.ts +25 -2
- package/dist/src/consts/injection-keys.const.d.ts +4 -4
- package/package.json +1 -1
- package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Modal.d.ts +0 -29
@@ -5,52 +5,52 @@ export declare type IUseKgForm = {
|
|
5
5
|
/**
|
6
6
|
* 监听事件: 表单控件的值发生变更.
|
7
7
|
*
|
8
|
-
* @param
|
9
|
-
* @param
|
8
|
+
* @param listener 事件监听函数.
|
9
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
10
10
|
*/
|
11
|
-
onChange(
|
11
|
+
onChange(listener: IKgFormChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
12
12
|
/**
|
13
13
|
* 监听事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
|
14
14
|
*
|
15
|
-
* @param
|
16
|
-
* @param
|
15
|
+
* @param listener 事件监听函数.
|
16
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
17
17
|
*/
|
18
|
-
onLookupBeforeOk(
|
18
|
+
onLookupBeforeOk(listener: IKgFormLookupBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
19
19
|
/**
|
20
20
|
* 监听事件: 查找弹窗打开之前.
|
21
21
|
*
|
22
|
-
* @param
|
23
|
-
* @param
|
22
|
+
* @param listener 事件监听函数.
|
23
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
24
24
|
*/
|
25
|
-
onLookupBeforeOpen(
|
25
|
+
onLookupBeforeOpen(listener: IKgFormLookupBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
26
26
|
/**
|
27
27
|
* 监听事件: 查找弹窗点击确定.
|
28
28
|
*
|
29
29
|
* @param listener 事件监听函数.
|
30
|
-
* @param
|
30
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
31
31
|
*/
|
32
|
-
onLookupOk(listener: IKgFormLookupOkEventListener,
|
32
|
+
onLookupOk(listener: IKgFormLookupOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
33
33
|
/**
|
34
34
|
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
35
35
|
*
|
36
36
|
* @param callback 事件监听函数.
|
37
|
-
* @param
|
37
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
38
38
|
*/
|
39
|
-
onSelectBeforeRequest(callback: IKgFormSelectBeforeRequestEventListener,
|
39
|
+
onSelectBeforeRequest(callback: IKgFormSelectBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
40
40
|
/**
|
41
41
|
* 监听事件: 查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
42
42
|
*
|
43
43
|
* @param callback 事件监听函数.
|
44
|
-
* @param
|
44
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
45
45
|
*/
|
46
|
-
onSelectBeforeSetDatas(callback: IKgFormSelectBeforeSetDatasEventListener,
|
46
|
+
onSelectBeforeSetDatas(callback: IKgFormSelectBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
47
47
|
/**
|
48
48
|
* 监听事件: 下拉列表选中某个(可能多个)数据.
|
49
49
|
*
|
50
50
|
* @param listener 事件监听函数.
|
51
|
-
* @param
|
51
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
52
52
|
*/
|
53
|
-
onSelectChange(listener: IKgFormSelectChangeEventListener,
|
53
|
+
onSelectChange(listener: IKgFormSelectChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
54
54
|
/**
|
55
55
|
* 状态数据.
|
56
56
|
*/
|
@@ -170,9 +170,9 @@ export interface IUseKgFormStoreActions {
|
|
170
170
|
* 注册事件监听.
|
171
171
|
* @param formID 界面标识.
|
172
172
|
* @param event 事件名称.
|
173
|
-
* @param
|
173
|
+
* @param listener 事件监听函数.
|
174
174
|
*/
|
175
|
-
addEventListener(formID: string, event: IKgFormEvent,
|
175
|
+
addEventListener(formID: string, event: IKgFormEvent, listener: IKgFormEventListener): void;
|
176
176
|
/**
|
177
177
|
* 清理数据.
|
178
178
|
* @param formID 页面标识.
|
@@ -189,9 +189,9 @@ export interface IUseKgFormStoreActions {
|
|
189
189
|
* 退订事件监听.
|
190
190
|
* @param formID 界面标识.
|
191
191
|
* @param event 事件名称.
|
192
|
-
* @param
|
192
|
+
* @param listener 事件监听函数.
|
193
193
|
*/
|
194
|
-
removeEventListener(formID: string, event: IKgFormEvent,
|
194
|
+
removeEventListener(formID: string, event: IKgFormEvent, listener?: IKgFormEventListener): void;
|
195
195
|
}
|
196
196
|
export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
|
197
197
|
export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
|
@@ -4,6 +4,6 @@ import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
4
4
|
* 依赖注入表单数据对象.
|
5
5
|
* 在表单组件(KgForm)的任何下级组件中, 都可以通过注入获取表单数据对象.
|
6
6
|
*/
|
7
|
-
export declare const
|
7
|
+
export declare const KG__DI__KG_FORM___FORM_MODEL: InjectionKey<ComputedRef<Record<string, any>>>;
|
8
8
|
/** 依赖注入 formRef. */
|
9
|
-
export declare const
|
9
|
+
export declare const KG__DI__KG_FORM___FORM_REF: InjectionKey<Ref<FormInstance | null>>;
|
@@ -16,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
kgPlaceholder: import("vue").PropType<string>;
|
17
17
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
18
18
|
kgShowLabel: {
|
19
|
+
/** 是否全选. */
|
19
20
|
type: import("vue").PropType<boolean>;
|
20
21
|
default: boolean;
|
21
22
|
};
|
@@ -58,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
59
|
kgPlaceholder: import("vue").PropType<string>;
|
59
60
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
60
61
|
kgShowLabel: {
|
62
|
+
/** 是否全选. */
|
61
63
|
type: import("vue").PropType<boolean>;
|
62
64
|
default: boolean;
|
63
65
|
};
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
};
|
22
22
|
kgAllowClear: {
|
23
23
|
type: import("vue").PropType<boolean>;
|
24
|
+
/** 是否允许清空. */
|
24
25
|
default: undefined;
|
25
26
|
};
|
26
27
|
kgShowTime: {
|
@@ -63,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
63
64
|
};
|
64
65
|
kgAllowClear: {
|
65
66
|
type: import("vue").PropType<boolean>;
|
67
|
+
/** 是否允许清空. */
|
66
68
|
default: undefined;
|
67
69
|
};
|
68
70
|
kgShowTime: {
|
@@ -107,4 +107,4 @@ export declare type IKgFormItemSlotControlRightParam = {
|
|
107
107
|
varSubmitDetail: VarSubmitDetail;
|
108
108
|
};
|
109
109
|
/** 依赖注入 kgContext 参数. */
|
110
|
-
export declare const
|
110
|
+
export declare const KG__DI__KG_FORM_ITEM__CONTEXT: InjectionKey<KG_FORM_CONTEXT>;
|
@@ -1,28 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
*/
|
6
|
-
hostFormID: {
|
7
|
-
type: PropType<string>;
|
8
|
-
required: boolean;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
declare const _default: import("vue").DefineComponent<{
|
12
|
-
/**
|
13
|
-
* 主页面的页面标识.
|
14
|
-
*/
|
15
|
-
hostFormID: {
|
16
|
-
type: PropType<string>;
|
17
|
-
required: boolean;
|
18
|
-
};
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
|
-
/**
|
21
|
-
* 主页面的页面标识.
|
22
|
-
*/
|
23
|
-
hostFormID: {
|
24
|
-
type: PropType<string>;
|
25
|
-
required: boolean;
|
26
|
-
};
|
27
|
-
}>>, {}>;
|
1
|
+
export declare const getProps: () => any;
|
2
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
3
|
+
[x: string]: any;
|
4
|
+
}>;
|
28
5
|
export default _default;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
-
export declare const FORM_ID__VAR_PROFILE_CONFIG = "kg-search.VarProfileConfig";
|
3
2
|
export declare const getProps: () => any;
|
4
3
|
export declare type IKgSearchConfigModalVarProfileConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
5
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
@@ -1,24 +1,7 @@
|
|
1
|
-
import { ExtractPropTypes
|
2
|
-
|
3
|
-
export declare const getProps: () => {
|
4
|
-
/** 主页面的页面标识. */
|
5
|
-
hostFormID: {
|
6
|
-
type: PropType<string>;
|
7
|
-
required: boolean;
|
8
|
-
};
|
9
|
-
};
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const getProps: () => any;
|
10
3
|
export declare type IKgSearchConfigModalVarProfileMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
11
|
-
declare const _default: import("vue").DefineComponent<{
|
12
|
-
|
13
|
-
|
14
|
-
type: PropType<string>;
|
15
|
-
required: boolean;
|
16
|
-
};
|
17
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
-
/** 主页面的页面标识. */
|
19
|
-
hostFormID: {
|
20
|
-
type: PropType<string>;
|
21
|
-
required: boolean;
|
22
|
-
};
|
23
|
-
}>>, {}>;
|
4
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
|
+
[x: string]: any;
|
6
|
+
}>;
|
24
7
|
export default _default;
|
@@ -4,4 +4,4 @@ import { VarProfileDetail } from '../../../apis/WMS/models';
|
|
4
4
|
export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
5
5
|
export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
6
6
|
export declare type IUseDragRow = {};
|
7
|
-
export declare function _useDragRow(hostFormID: string | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
|
7
|
+
export declare function _useDragRow(hostFormID: string | null | undefined, varProfileDetails: Ref<UnwrapRef<Array<VarProfileDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarProfileDetail>>>): IUseDragRow;
|
@@ -1,35 +1,13 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import './KgSearch.ConfigModal.less';
|
3
2
|
export declare const getProps: () => {
|
4
|
-
/**
|
5
|
-
* 主页面的页面标识.
|
6
|
-
*/
|
7
|
-
hostFormID: {
|
8
|
-
type: PropType<string>;
|
9
|
-
required: boolean;
|
10
|
-
};
|
11
3
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
12
4
|
visible: PropType<boolean>;
|
13
5
|
};
|
14
6
|
export declare type KgSearchConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
15
7
|
declare const _default: import("vue").DefineComponent<{
|
16
|
-
/**
|
17
|
-
* 主页面的页面标识.
|
18
|
-
*/
|
19
|
-
hostFormID: {
|
20
|
-
type: PropType<string>;
|
21
|
-
required: boolean;
|
22
|
-
};
|
23
8
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
24
9
|
visible: PropType<boolean>;
|
25
10
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
|
-
/**
|
27
|
-
* 主页面的页面标识.
|
28
|
-
*/
|
29
|
-
hostFormID: {
|
30
|
-
type: PropType<string>;
|
31
|
-
required: boolean;
|
32
|
-
};
|
33
11
|
'onUpdate:visible': PropType<(value: boolean) => void>;
|
34
12
|
visible: PropType<boolean>;
|
35
13
|
}>> & {
|
@@ -35,22 +35,22 @@ export declare type IUseKgSearch = {
|
|
35
35
|
model: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
|
36
36
|
/**
|
37
37
|
* 监听事件: ready, 查询字段初始完成, 组件渲染完成.
|
38
|
-
* @param
|
39
|
-
* @param
|
38
|
+
* @param listener 事件监听函数.
|
39
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
40
40
|
*/
|
41
|
-
onReady(
|
41
|
+
onReady(listener: IKgSearchReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
42
42
|
/**
|
43
43
|
* 监听事件: reset, 点击重置按钮.
|
44
|
-
* @param
|
45
|
-
* @param
|
44
|
+
* @param listener 事件监听函数.
|
45
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
46
46
|
*/
|
47
|
-
onReset(
|
47
|
+
onReset(listener: IKgSearchResetEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
48
48
|
/**
|
49
49
|
* 监听事件: search, 点击查询按钮, 并且表单验证通过.
|
50
|
-
* @param
|
51
|
-
* @param
|
50
|
+
* @param listener 事件监听函数.
|
51
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
52
52
|
*/
|
53
|
-
onSearch(
|
53
|
+
onSearch(listener: IKgSearchSearchEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
54
54
|
/** 重置. */
|
55
55
|
reset(): void;
|
56
56
|
/** 查询. */
|
@@ -80,9 +80,9 @@ export interface IUseKgSearchStoreActions {
|
|
80
80
|
* 注册事件监听.
|
81
81
|
* @param formID 界面标识.
|
82
82
|
* @param event 事件名称.
|
83
|
-
* @param
|
83
|
+
* @param listener 事件监听函数.
|
84
84
|
*/
|
85
|
-
addEventListener(formID: string, event: IKgSearchEvent,
|
85
|
+
addEventListener(formID: string, event: IKgSearchEvent, listener: IKgSearchEventListener): void;
|
86
86
|
/**
|
87
87
|
* 清理数据.
|
88
88
|
* @param formID 页面标识.
|
@@ -113,9 +113,9 @@ export interface IUseKgSearchStoreActions {
|
|
113
113
|
* 退订事件监听.
|
114
114
|
* @param formID 界面标识.
|
115
115
|
* @param event 事件名称.
|
116
|
-
* @param
|
116
|
+
* @param listener 事件监听函数.
|
117
117
|
*/
|
118
|
-
removeEventListener(formID: string, event: IKgSearchEvent,
|
118
|
+
removeEventListener(formID: string, event: IKgSearchEvent, listener?: IKgSearchEventListener): void;
|
119
119
|
setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
120
120
|
/**
|
121
121
|
* 设置表单数据.
|
@@ -1 +1,2 @@
|
|
1
|
-
export declare const FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "
|
1
|
+
export declare const FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "KgSearch.ConfigModal.VarProfileMaster";
|
2
|
+
export declare const FORM_ID__KG_SEARCH__VAR_PROFILE_CONFIG = "KgSearch.ConfigModal.VarProfileConfig";
|
@@ -5,15 +5,6 @@ export declare const getProps: () => {
|
|
5
5
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
6
6
|
*/
|
7
7
|
kgClass: PropType<string>;
|
8
|
-
/**
|
9
|
-
* 是否显示头部右侧的表单配置按钮.
|
10
|
-
*
|
11
|
-
* @default true
|
12
|
-
*/
|
13
|
-
kgIsShowVarSubmitConfigButton: {
|
14
|
-
type: PropType<boolean>;
|
15
|
-
default: boolean;
|
16
|
-
};
|
17
8
|
};
|
18
9
|
export declare type KgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
19
10
|
declare const _default: import("vue").DefineComponent<{
|
@@ -21,30 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
12
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
22
13
|
*/
|
23
14
|
kgClass: PropType<string>;
|
24
|
-
/**
|
25
|
-
* 是否显示头部右侧的表单配置按钮.
|
26
|
-
*
|
27
|
-
* @default true
|
28
|
-
*/
|
29
|
-
kgIsShowVarSubmitConfigButton: {
|
30
|
-
type: PropType<boolean>;
|
31
|
-
default: boolean;
|
32
|
-
};
|
33
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
34
16
|
/**
|
35
17
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
36
18
|
*/
|
37
19
|
kgClass: PropType<string>;
|
38
|
-
|
39
|
-
* 是否显示头部右侧的表单配置按钮.
|
40
|
-
*
|
41
|
-
* @default true
|
42
|
-
*/
|
43
|
-
kgIsShowVarSubmitConfigButton: {
|
44
|
-
type: PropType<boolean>;
|
45
|
-
default: boolean;
|
46
|
-
};
|
47
|
-
}>>, {
|
48
|
-
kgIsShowVarSubmitConfigButton: boolean;
|
49
|
-
}>;
|
20
|
+
}>>, {}>;
|
50
21
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance } from 'ant-design-vue';
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
4
|
-
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT,
|
4
|
+
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG__VAR_SUBMIT_CONFIG_LABEL_COLUMN_UNIT } from '../../consts';
|
5
5
|
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
6
6
|
export interface IUseKgSubmit {
|
7
7
|
/**
|
@@ -79,11 +79,11 @@ export interface IUseKgSubmit {
|
|
79
79
|
* </li>
|
80
80
|
* </ul>
|
81
81
|
*
|
82
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
82
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
83
83
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
84
84
|
*/
|
85
85
|
getVarSubmitConfig(param?: {
|
86
|
-
buttonType?:
|
86
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
87
87
|
buttonVarName?: string | null;
|
88
88
|
}): VarSubmitConfig | null;
|
89
89
|
/**
|
@@ -107,13 +107,13 @@ export interface IUseKgSubmit {
|
|
107
107
|
* </li>
|
108
108
|
* </ul>
|
109
109
|
*
|
110
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
110
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
111
111
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
112
112
|
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
113
113
|
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
114
114
|
*/
|
115
115
|
getVarSubmitDetails(param?: {
|
116
|
-
buttonType?:
|
116
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
117
117
|
buttonVarName?: string | null;
|
118
118
|
isVisible?: 0 | 1 | null;
|
119
119
|
varName?: string | null;
|
@@ -128,11 +128,11 @@ export interface IUseKgSubmit {
|
|
128
128
|
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
129
129
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
130
130
|
*
|
131
|
-
* @param
|
132
|
-
* @param
|
131
|
+
* @param listener 事件监听函数.
|
132
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
133
133
|
* @return {} 移除事件监听函数.
|
134
134
|
*/
|
135
|
-
onAfterValidate(
|
135
|
+
onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
136
136
|
/**
|
137
137
|
* <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
|
138
138
|
* <ul>
|
@@ -141,27 +141,27 @@ export interface IUseKgSubmit {
|
|
141
141
|
* </ul>
|
142
142
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
143
143
|
*
|
144
|
-
* @param
|
145
|
-
* @param
|
144
|
+
* @param listener 事件监听函数.
|
145
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
146
146
|
* @return {} 移除事件监听函数.
|
147
147
|
*/
|
148
|
-
onBeforeOk(
|
148
|
+
onBeforeOk(listener: IKgSubmitBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
149
149
|
/**
|
150
150
|
* <p>监听事件: 打开提交弹窗之前.</p>
|
151
|
-
* @param
|
152
|
-
* @param
|
151
|
+
* @param listener 事件监听函数.
|
152
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
153
153
|
* @return {} 移除事件监听函数.
|
154
154
|
*/
|
155
|
-
onBeforeOpen(
|
155
|
+
onBeforeOpen(listener: IKgSubmitBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
156
156
|
/**
|
157
157
|
* <p>监听事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
|
158
158
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
159
159
|
*
|
160
|
-
* @param
|
161
|
-
* @param
|
160
|
+
* @param listener 事件监听函数.
|
161
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
162
162
|
* @return {} 移除事件监听函数.
|
163
163
|
*/
|
164
|
-
onBeforeRequest(
|
164
|
+
onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
165
165
|
/**
|
166
166
|
* <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
|
167
167
|
* <ul>
|
@@ -169,43 +169,43 @@ export interface IUseKgSubmit {
|
|
169
169
|
* <li>点击取消按钮,</li>
|
170
170
|
* <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
|
171
171
|
* </ul>
|
172
|
-
* @param
|
173
|
-
* @param
|
172
|
+
* @param listener 事件监听函数.
|
173
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
174
174
|
* @return {} 移除事件监听函数.
|
175
175
|
*/
|
176
|
-
onClose(
|
176
|
+
onClose(listener: IKgSubmitCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
177
177
|
/**
|
178
178
|
* <p>监听事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
|
179
|
-
* @param
|
180
|
-
* @param
|
179
|
+
* @param listener 事件监听函数.
|
180
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
181
181
|
* @return {} 移除事件监听函数.
|
182
182
|
*/
|
183
|
-
onError(
|
183
|
+
onError(listener: IKgSubmitErrorEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
184
184
|
/**
|
185
185
|
* <p>监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
|
186
|
-
* @param
|
187
|
-
* @param
|
186
|
+
* @param listener 事件监听函数.
|
187
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
188
188
|
* @return {} 移除事件监听函数.
|
189
189
|
*/
|
190
|
-
onOk(
|
190
|
+
onOk(listener: IKgSubmitOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
191
191
|
/**
|
192
192
|
* <p>监听事件: 打开提交弹窗.</p>
|
193
|
-
* @param
|
194
|
-
* @param
|
193
|
+
* @param listener 事件监听函数.
|
194
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
195
195
|
* @return {} 移除事件监听函数.
|
196
196
|
*/
|
197
|
-
onOpen(
|
197
|
+
onOpen(listener: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
198
198
|
/**
|
199
199
|
* <p>修改某个「提交表单字段」的部分属性.</p>
|
200
200
|
* <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」.</p>
|
201
201
|
*
|
202
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link
|
202
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
203
203
|
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
204
204
|
* @param param.properties 要修改的部分属性.
|
205
205
|
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
206
206
|
*/
|
207
207
|
patchVarSubmitDetail(param: {
|
208
|
-
buttonType?:
|
208
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
209
209
|
buttonVarName?: string | null;
|
210
210
|
properties: VarSubmitDetail;
|
211
211
|
varName: string | null | undefined;
|
@@ -3,7 +3,7 @@ import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
|
3
3
|
import { StoreDefinition } from 'pinia';
|
4
4
|
import { Ref } from 'vue';
|
5
5
|
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
6
|
-
import { IKgEventListener,
|
6
|
+
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
7
7
|
import { KgAny } from '../../types';
|
8
8
|
import { IKgTableRow } from '../KgTable';
|
9
9
|
/**
|
@@ -141,11 +141,11 @@ export interface IUseKgSubmitStoreGetters {
|
|
141
141
|
getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
|
142
142
|
getFormRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
|
143
143
|
getVarSubmitConfig(): (formID: string | null | undefined, param?: {
|
144
|
-
buttonType?:
|
144
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
145
145
|
buttonVarName?: string | null;
|
146
146
|
}) => VarSubmitConfig | null;
|
147
147
|
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
148
|
-
buttonType?:
|
148
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
149
149
|
buttonVarName?: string | null;
|
150
150
|
isKey?: 0 | 1 | null;
|
151
151
|
isVisible?: 0 | 1 | null;
|
@@ -159,9 +159,9 @@ export interface IUseKgSubmitStoreActions {
|
|
159
159
|
* 注册事件监听.
|
160
160
|
* @param formID 界面标识.
|
161
161
|
* @param event 事件名称.
|
162
|
-
* @param
|
162
|
+
* @param listener 事件监听函数.
|
163
163
|
*/
|
164
|
-
addEventListener(formID: string, event: IKgSubmitEvent,
|
164
|
+
addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
|
165
165
|
/**
|
166
166
|
* 清理数据.
|
167
167
|
* @param formID 页面标识.
|
@@ -169,7 +169,7 @@ export interface IUseKgSubmitStoreActions {
|
|
169
169
|
dispose(formID?: string | null): void;
|
170
170
|
emit<T = IKgSubmitEventListenerParameter>(formID: string, event: IKgSubmitEvent, param: T): Promise<boolean>;
|
171
171
|
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
172
|
-
buttonType?:
|
172
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
173
173
|
buttonVarName?: string | null;
|
174
174
|
properties: VarSubmitDetail;
|
175
175
|
varName: string | null | undefined;
|
@@ -178,9 +178,9 @@ export interface IUseKgSubmitStoreActions {
|
|
178
178
|
* 退订事件监听.
|
179
179
|
* @param formID 界面标识.
|
180
180
|
* @param event 事件名称.
|
181
|
-
* @param
|
181
|
+
* @param listener 事件监听函数.
|
182
182
|
*/
|
183
|
-
removeEventListener(formID: string, event: IKgSubmitEvent,
|
183
|
+
removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
|
184
184
|
setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
|
185
185
|
setIsLoading(formID: string, value: boolean): void;
|
186
186
|
}
|
@@ -24,7 +24,6 @@ export declare function _useLoading(): {
|
|
24
24
|
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
|
25
25
|
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
|
26
26
|
export declare function _useDatas(): {
|
27
|
-
datas: ComputedRef<IKgTableRow[]>;
|
28
27
|
transformDatas: (response: Ref<any>) => {
|
29
28
|
datas: Ref<Array<IKgTableRow>>;
|
30
29
|
total: Ref<number>;
|
package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts
CHANGED
@@ -1,22 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
type: PropType<string>;
|
6
|
-
required: boolean;
|
7
|
-
};
|
8
|
-
};
|
9
|
-
declare const _default: import("vue").DefineComponent<{
|
10
|
-
/** 主页面的页面标识. */
|
11
|
-
hostFormID: {
|
12
|
-
type: PropType<string>;
|
13
|
-
required: boolean;
|
14
|
-
};
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
|
-
/** 主页面的页面标识. */
|
17
|
-
hostFormID: {
|
18
|
-
type: PropType<string>;
|
19
|
-
required: boolean;
|
20
|
-
};
|
21
|
-
}>>, {}>;
|
1
|
+
export declare const getProps: () => any;
|
2
|
+
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
3
|
+
[x: string]: any;
|
4
|
+
}>;
|
22
5
|
export default _default;
|