@kengic/vue 0.21.5-beta.1 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +85 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +10162 -10277
- package/dist/project/index.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Add.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Delete.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/DeleteBatch.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/Edit.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ExportXls.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/ImportExcel.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarConfigDescriptionController}/List.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Add.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Edit.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/List.d.ts +1 -1
- package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/QueryById.d.ts +2 -2
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -2
- package/dist/src/apis/WMS/models.d.ts +179 -251
- package/dist/src/components/KgButton/index.hooks.d.ts +239 -42
- package/dist/src/components/KgButton/index.store.d.ts +171 -53
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -1
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +4 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +316 -19
- package/dist/src/components/KgSubmit/index.store.d.ts +247 -24
- package/dist/src/components/KgTable/index.hooks.d.ts +36 -84
- package/dist/src/components/KgVar/index.hooks.d.ts +2796 -2027
- package/dist/src/components/KgVar/index.store.d.ts +2421 -2395
- package/dist/src/components/KgVar/index.store.service.d.ts +3 -3
- package/dist/src/components/KgVarConfig/components/submit/{KgVarConfig.Modal.Submit.VarSubmitField.d.ts → KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts} +2 -2
- package/dist/src/components/KgVarConfig/index.store.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +5 -4
- package/dist/src/consts/i18n/zh_CN.d.ts +5 -4
- package/dist/src/consts/index.d.ts +4 -4
- package/dist/src/consts/index.vm.d.ts +8 -11
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +170 -440
- package/dist/src/utils/kg-var.util.d.ts +23 -11
- package/dist/src/utils/kg.util.d.ts +19 -10
- package/package.json +4 -4
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarConfigDescriptionController}/index.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ExportXls.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarContextController → VarVariableController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarVariableCatalogController → VarVariableController}/index.d.ts +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.VarVariableCatalog.d.ts → KgVarConfig.Modal.Var.VarConfigDescription.d.ts} +0 -0
@@ -3,9 +3,9 @@
|
|
3
3
|
* <p>组件 Checkbox 的 checked 属性使用的是 true/false, 本组件实际传入的参数为 1/0, 因此存在数据转换.</p>
|
4
4
|
*/
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
6
|
+
/** 是否勾选. */
|
6
7
|
kgVarName: {
|
7
8
|
type: import("vue").PropType<string>;
|
8
|
-
/** 是否勾选. */
|
9
9
|
required: boolean;
|
10
10
|
};
|
11
11
|
kgContext: {
|
@@ -45,10 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
46
46
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
47
47
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
48
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
49
|
+
/** 是否勾选. */
|
49
50
|
kgVarName: {
|
50
51
|
type: import("vue").PropType<string>;
|
51
|
-
/** 是否勾选. */
|
52
52
|
required: boolean;
|
53
53
|
};
|
54
54
|
kgContext: {
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
44
|
kgVarName: {
|
45
45
|
type: import("vue").PropType<string>;
|
46
46
|
required: boolean;
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
43
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
45
|
kgVarName: {
|
46
46
|
type: import("vue").PropType<string>;
|
47
47
|
required: boolean;
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
41
41
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
43
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
45
|
kgVarName: {
|
46
46
|
type: import("vue").PropType<string>;
|
47
47
|
required: boolean;
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
44
|
kgVarName: {
|
45
45
|
type: import("vue").PropType<string>;
|
46
46
|
required: boolean;
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
44
|
kgVarName: {
|
45
45
|
type: import("vue").PropType<string>;
|
46
46
|
required: boolean;
|
@@ -13,9 +13,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
13
13
|
};
|
14
14
|
kgSpan: import("vue").PropType<number>;
|
15
15
|
kgPlaceholder: import("vue").PropType<string>;
|
16
|
+
/** 初始. */
|
16
17
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
17
18
|
kgShowLabel: {
|
18
|
-
type: import("vue").PropType<boolean>;
|
19
|
+
type: import("vue").PropType<boolean>;
|
19
20
|
default: boolean;
|
20
21
|
};
|
21
22
|
kgAllowClear: {
|
@@ -40,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
41
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
42
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
43
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
45
|
kgVarName: {
|
45
46
|
type: import("vue").PropType<string>;
|
46
47
|
required: boolean;
|
@@ -55,9 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
55
56
|
};
|
56
57
|
kgSpan: import("vue").PropType<number>;
|
57
58
|
kgPlaceholder: import("vue").PropType<string>;
|
59
|
+
/** 初始. */
|
58
60
|
kgMode: import("vue").PropType<"multiple" | "tags">;
|
59
61
|
kgShowLabel: {
|
60
|
-
type: import("vue").PropType<boolean>;
|
62
|
+
type: import("vue").PropType<boolean>;
|
61
63
|
default: boolean;
|
62
64
|
};
|
63
65
|
kgAllowClear: {
|
@@ -36,12 +36,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
36
|
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
37
37
|
default: undefined;
|
38
38
|
};
|
39
|
+
/** 初始. */
|
39
40
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
40
|
-
onKgSubmit: import("vue").PropType<() => void>;
|
41
|
+
onKgSubmit: import("vue").PropType<() => void>; /** 初始. */
|
41
42
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
42
43
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
44
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
45
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgSelectChange" | "kgSelectDatasChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgSelectChange" | "kgSelectDatasChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
46
|
kgVarName: {
|
46
47
|
type: import("vue").PropType<string>;
|
47
48
|
required: boolean;
|
@@ -78,8 +79,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
78
79
|
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
79
80
|
default: undefined;
|
80
81
|
};
|
82
|
+
/** 初始. */
|
81
83
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
82
|
-
onKgSubmit: import("vue").PropType<() => void>;
|
84
|
+
onKgSubmit: import("vue").PropType<() => void>; /** 初始. */
|
83
85
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
84
86
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
85
87
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { VarConfigPossibility } from '../../../apis/WMS/models';
|
3
3
|
export declare type IUseKgFormItemSelect = {
|
4
|
-
/**
|
5
|
-
varPossibility: ComputedRef<
|
4
|
+
/** VarConfigPossibility 配置. */
|
5
|
+
varPossibility: ComputedRef<VarConfigPossibility | null>;
|
6
6
|
/** 作为数据的列. */
|
7
7
|
val_clm: ComputedRef<string>;
|
8
8
|
/** 作为显示的列. */
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
44
|
kgVarName: {
|
45
45
|
type: import("vue").PropType<string>;
|
46
46
|
required: boolean;
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
41
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
42
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
43
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
44
|
kgVarName: {
|
45
45
|
type: import("vue").PropType<string>;
|
46
46
|
required: boolean;
|
@@ -3,7 +3,7 @@ import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
|
|
3
3
|
import { PickerMode } from 'ant-design-vue/lib/vc-picker/interface';
|
4
4
|
import { Dayjs } from 'dayjs';
|
5
5
|
import { ComputedRef, ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
6
|
-
import { VarProfileDetail,
|
6
|
+
import { VarProfileDetail, VarSubmitDetail, VarConfigControl } from '../../apis/WMS/models';
|
7
7
|
import { KG_FORM_CONTEXT } from '../../consts';
|
8
8
|
export declare type IKgFormItemValue = string | number | Array<string | number>;
|
9
9
|
export declare const getProps: () => {
|
@@ -90,9 +90,9 @@ export declare type IKgFormItemSlotControlParam = {
|
|
90
90
|
varName: string;
|
91
91
|
props: ComputedRef<IKgFormItemProps>;
|
92
92
|
model: ComputedRef<Record<string, any>>;
|
93
|
-
|
93
|
+
varConfigControl: VarConfigControl;
|
94
94
|
varProfileDetail: VarProfileDetail;
|
95
|
-
|
95
|
+
varSubmitDetail: VarSubmitDetail;
|
96
96
|
};
|
97
97
|
/** 插槽 controlRight 的参数. */
|
98
98
|
export declare type IKgFormItemSlotControlRightParam = {
|
@@ -100,9 +100,9 @@ export declare type IKgFormItemSlotControlRightParam = {
|
|
100
100
|
varName: string;
|
101
101
|
props: ComputedRef<IKgFormItemProps>;
|
102
102
|
model: ComputedRef<Record<string, any>>;
|
103
|
-
|
103
|
+
varConfigControl: VarConfigControl;
|
104
104
|
varProfileDetail: VarProfileDetail;
|
105
|
-
|
105
|
+
varSubmitDetail: VarSubmitDetail;
|
106
106
|
};
|
107
107
|
/** 依赖注入 kgContext 参数. */
|
108
108
|
export declare const DI_KG_CONTEXT: InjectionKey<string>;
|
@@ -15,19 +15,12 @@ export declare const FORM_ITEM_HEIGHT = 38;
|
|
15
15
|
* @param headerTeleport 是否将头部放到顶部的导航栏中.
|
16
16
|
*/
|
17
17
|
export declare function getDefaultHeight(varProfileDetails?: Array<VarProfileDetail> | null, headerTeleport?: boolean | null): number;
|
18
|
-
/**
|
19
|
-
* 根据查询字段计算最大高度.
|
20
|
-
* @param varProfileDetails 查询字段列表.
|
21
|
-
* @param headerTeleport 是否将头部放到顶部的导航栏中.
|
22
|
-
*/
|
23
|
-
export declare function getMaxHeight(varProfileDetails?: Array<VarProfileDetail> | null, headerTeleport?: boolean | null): number;
|
24
18
|
export declare function _useCommon(): {
|
25
19
|
isVisible: import("vue").ComputedRef<boolean>;
|
26
20
|
isResizable: import("vue").ComputedRef<boolean>;
|
27
21
|
isTeleportToHeader: import("vue").ComputedRef<boolean>;
|
28
22
|
formLevel: import("vue").ComputedRef<number>;
|
29
23
|
defaultHeight: import("vue").ComputedRef<number>;
|
30
|
-
maxHeight: import("vue").ComputedRef<number>;
|
31
24
|
minHeight: import("vue").ComputedRef<1 | 42>;
|
32
25
|
};
|
33
26
|
export declare function _useFormModel(kgResizableRef: Ref<any | null>, formRef: Ref<FormInstance | null>, kgResizableProps: Ref<IKgResizableProps>): {
|
@@ -6,7 +6,10 @@ export declare function _useFormModel(): {
|
|
6
6
|
export declare type IUseResizeObserver = {};
|
7
7
|
export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
8
8
|
export declare function _useTitle(): {
|
9
|
-
|
9
|
+
/**
|
10
|
+
* 弹窗标题.
|
11
|
+
*/
|
12
|
+
title: import("vue").ComputedRef<string>;
|
10
13
|
};
|
11
14
|
export declare function _useClass(props: KgSubmitProps): {
|
12
15
|
/**
|
@@ -18,9 +21,6 @@ export declare function _useClass(props: KgSubmitProps): {
|
|
18
21
|
*/
|
19
22
|
getWrapClass: import("vue").ComputedRef<string>;
|
20
23
|
};
|
21
|
-
export declare function _useLayout(): {
|
22
|
-
getLayout: Ref<'horizontal' | 'vertical'>;
|
23
|
-
};
|
24
24
|
export declare function _useDefaultWidth(): {
|
25
25
|
/**
|
26
26
|
* 默认宽度.
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
2
|
+
import { IKgVarSubmitConfigProps, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG_BUTTON_TYPE } from '../../consts';
|
2
3
|
import { IKgSubmitAfterValidateCb, IKgSubmitBeforeOkCb, IKgSubmitBeforeOpenCb, IKgSubmitBeforeRequestCb, IKgSubmitCloseCb, IKgSubmitErrorCb, IKgSubmitEvent, IKgSubmitOkCb, IKgSubmitOpenCb } from './index.store';
|
3
4
|
/**
|
4
5
|
* @param formID 界面标识.
|
@@ -7,28 +8,218 @@ export declare function useKgSubmit(formID?: string | null): {
|
|
7
8
|
/** 界面标识. */
|
8
9
|
formID: string;
|
9
10
|
/** 状态数据. */
|
10
|
-
store: import("pinia").Store<"KgSubmit",
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
*
|
22
|
-
* @param once 是否只会触发一次. 默认为 undefined.
|
23
|
-
* @return {} 移除事件监听函数.
|
11
|
+
store: import("pinia").Store<"KgSubmit", {
|
12
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
13
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
14
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
15
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
16
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
17
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
18
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
19
|
+
isLoadingMap: Map<string, boolean>;
|
20
|
+
modelMap: Map<string, Record<string, any>>;
|
21
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
22
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
24
23
|
*/
|
24
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
25
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
25
26
|
}, {
|
26
|
-
|
27
|
+
isLoading(state: {
|
28
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
29
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
30
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
31
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
32
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
33
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
34
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
35
|
+
isLoadingMap: Map<string, boolean>;
|
36
|
+
modelMap: Map<string, Record<string, any>>;
|
37
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
38
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
39
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
40
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
41
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
42
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
43
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
44
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
45
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
46
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
47
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
48
|
+
isLoadingMap: Map<string, boolean>;
|
49
|
+
modelMap: Map<string, Record<string, any>>;
|
50
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
51
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
52
|
+
*/
|
53
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
54
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
55
|
+
}>): (formID?: string | null | undefined) => boolean;
|
56
|
+
getModel(state: {
|
57
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
58
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
59
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
60
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
61
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
62
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
63
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
64
|
+
isLoadingMap: Map<string, boolean>;
|
65
|
+
modelMap: Map<string, Record<string, any>>;
|
66
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
67
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
68
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
69
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
70
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
71
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
72
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
73
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
74
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
75
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
76
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
77
|
+
isLoadingMap: Map<string, boolean>;
|
78
|
+
modelMap: Map<string, Record<string, any>>;
|
79
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
80
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
81
|
+
*/
|
82
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
83
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
84
|
+
}>): (formID?: string | null | undefined) => Record<string, any> | null;
|
85
|
+
getFormRef(state: {
|
86
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
87
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
88
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
89
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
90
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
91
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
92
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
93
|
+
isLoadingMap: Map<string, boolean>;
|
94
|
+
modelMap: Map<string, Record<string, any>>;
|
95
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
96
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
97
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
98
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
99
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
100
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
101
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
102
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
103
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
104
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
105
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
106
|
+
isLoadingMap: Map<string, boolean>;
|
107
|
+
modelMap: Map<string, Record<string, any>>;
|
108
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
109
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
110
|
+
*/
|
111
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
112
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
113
|
+
}>): (formID?: string | null | undefined) => import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
114
|
+
getRules(state: {
|
115
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
116
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
117
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
118
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
119
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
120
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
121
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
122
|
+
isLoadingMap: Map<string, boolean>;
|
123
|
+
modelMap: Map<string, Record<string, any>>;
|
124
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
125
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
126
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
127
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
128
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
129
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
130
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
131
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
132
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
133
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
134
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
135
|
+
isLoadingMap: Map<string, boolean>;
|
136
|
+
modelMap: Map<string, Record<string, any>>;
|
137
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
138
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
139
|
+
*/
|
140
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
141
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
142
|
+
}>): (formID?: string | null | undefined) => import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
|
143
|
+
getVarSubmitConfig(state: {
|
144
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
145
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
146
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
147
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
148
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
149
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
150
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
151
|
+
isLoadingMap: Map<string, boolean>;
|
152
|
+
modelMap: Map<string, Record<string, any>>;
|
153
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
154
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
155
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
156
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
157
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
158
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
159
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
160
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
161
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
162
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
163
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
164
|
+
isLoadingMap: Map<string, boolean>;
|
165
|
+
modelMap: Map<string, Record<string, any>>;
|
166
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
167
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
168
|
+
*/
|
169
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
170
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
171
|
+
}>): (formID: string | null | undefined, param?: {
|
172
|
+
buttonType?: KG_BUTTON_TYPE | undefined;
|
173
|
+
buttonVarName?: string | null | undefined;
|
174
|
+
} | undefined) => VarSubmitConfig | null;
|
175
|
+
getVarSubmitDetails(state: {
|
176
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
177
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
178
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
179
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
180
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
181
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
182
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
183
|
+
isLoadingMap: Map<string, boolean>;
|
184
|
+
modelMap: Map<string, Record<string, any>>;
|
185
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>;
|
186
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
187
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
188
|
+
} & import("pinia").PiniaCustomStateProperties<{
|
189
|
+
afterValidateListenersMap: Map<string, IKgSubmitAfterValidateCb[]>;
|
190
|
+
beforeOkListenersMap: Map<string, IKgSubmitBeforeOkCb[]>;
|
191
|
+
beforeOpenListenersMap: Map<string, IKgSubmitBeforeOpenCb[]>;
|
192
|
+
beforeRequestListenersMap: Map<string, IKgSubmitBeforeRequestCb[]>;
|
193
|
+
closeListenersMap: Map<string, IKgSubmitCloseCb[]>;
|
194
|
+
errorListenersMap: Map<string, IKgSubmitErrorCb[]>;
|
195
|
+
formRefMap: Map<string, import("vue").Ref<import("ant-design-vue").FormInstance | null>>;
|
196
|
+
isLoadingMap: Map<string, boolean>;
|
197
|
+
modelMap: Map<string, Record<string, any>>;
|
198
|
+
okListenersMap: Map<string, IKgSubmitOkCb[]>; /**
|
199
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
200
|
+
*/
|
201
|
+
openListenersMap: Map<string, IKgSubmitOpenCb[]>;
|
202
|
+
rulesMap: Map<string, import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>>;
|
203
|
+
}>): (formID: string | null | undefined, param?: {
|
204
|
+
buttonType?: KG_BUTTON_TYPE | undefined;
|
205
|
+
buttonVarName?: string | null | undefined;
|
206
|
+
isKey?: 0 | 1 | null | undefined;
|
207
|
+
isVisible?: 0 | 1 | null | undefined;
|
208
|
+
varName?: string | null | undefined;
|
209
|
+
} | null | undefined) => VarSubmitDetail[];
|
210
|
+
}, {
|
211
|
+
dispose(formID?: string | null | undefined): null | undefined;
|
27
212
|
addEventListener(formID: string, event: IKgSubmitEvent, cb: import("./index.store").IKgSubmitCb): void;
|
28
213
|
removeEventListener(formID: string, event: IKgSubmitEvent, cb?: import("./index.store").IKgSubmitCb | undefined): void;
|
29
214
|
emit(formID: string, event: IKgSubmitEvent, param: import("./index.store").IKgSubmitCbParam): Promise<boolean>;
|
30
215
|
setIsLoading(formID: string, value: boolean): void;
|
31
|
-
setModel(formID
|
216
|
+
setModel(formID?: string | null | undefined, model?: Record<string, any> | null | undefined): void;
|
217
|
+
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
218
|
+
buttonType?: KG_BUTTON_TYPE | undefined;
|
219
|
+
buttonVarName?: string | null | undefined;
|
220
|
+
properties: VarSubmitDetail;
|
221
|
+
varName: string | null | undefined;
|
222
|
+
}): void;
|
32
223
|
}>;
|
33
224
|
/** 表单数据对象. */
|
34
225
|
model: import("vue").ComputedRef<Record<string, any>>;
|
@@ -36,8 +227,114 @@ export declare function useKgSubmit(formID?: string | null): {
|
|
36
227
|
formRef: import("vue").Ref<import("ant-design-vue").FormInstance | null>;
|
37
228
|
/** 表单验证规则. */
|
38
229
|
rules: import("vue").Ref<Record<string, import("ant-design-vue/es/form").RuleObject[]>>;
|
39
|
-
/**
|
40
|
-
|
230
|
+
/**
|
231
|
+
* <p>「当前按钮」的「提交表单配置」.</p>
|
232
|
+
*/
|
233
|
+
currentVarSubmitConfig: import("vue").ComputedRef<VarSubmitConfig | null>;
|
234
|
+
/**
|
235
|
+
* <p>「当前按钮」的「提交表单配置」的显示方式.</p>
|
236
|
+
*/
|
237
|
+
currentVarSubmitConfigDisplayType: import("vue").ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
|
238
|
+
/**
|
239
|
+
* <p>「当前按钮」的「提交表单配置」的配置属性.</p>
|
240
|
+
*/
|
241
|
+
currentVarSubmitConfigProps: import("vue").ComputedRef<IKgVarSubmitConfigProps>;
|
242
|
+
/**
|
243
|
+
* <p>「当前按钮」的「提交表单字段」.</p>
|
244
|
+
*/
|
245
|
+
currentVarSubmitDetails: import("vue").ComputedRef<VarSubmitDetail[]>;
|
246
|
+
/**
|
247
|
+
* <p>「当前按钮」的「提交表单字段」(可见的).</p>
|
248
|
+
*/
|
249
|
+
currentVarSubmitDetailsForVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
|
250
|
+
/**
|
251
|
+
* <p>「当前按钮」的「提交表单字段」(关键的).</p>
|
252
|
+
*/
|
253
|
+
currentVarSubmitDetailsForKey: import("vue").ComputedRef<VarSubmitDetail[]>;
|
254
|
+
/**
|
255
|
+
* <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
|
256
|
+
*/
|
257
|
+
currentVarSubmitDetailsForKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
|
258
|
+
/**
|
259
|
+
* <p>「当前按钮」的「提交表单字段」(非关键的).</p>
|
260
|
+
*/
|
261
|
+
currentVarSubmitDetailsForNotKey: import("vue").ComputedRef<VarSubmitDetail[]>;
|
262
|
+
/**
|
263
|
+
* <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
|
264
|
+
*/
|
265
|
+
currentVarSubmitDetailsForNotKeyAndVisible: import("vue").ComputedRef<VarSubmitDetail[]>;
|
266
|
+
/**
|
267
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
268
|
+
*/
|
269
|
+
currentVarSubmitDetailSectionsForVisible: import("vue").ComputedRef<string[]>;
|
270
|
+
/**
|
271
|
+
* <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
|
272
|
+
*
|
273
|
+
* <ul>
|
274
|
+
* <li>
|
275
|
+
* <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
|
276
|
+
* </li>
|
277
|
+
* <li>
|
278
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
279
|
+
* </li>
|
280
|
+
* <li>
|
281
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
282
|
+
* </li>
|
283
|
+
* </ul>
|
284
|
+
*
|
285
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
|
286
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
287
|
+
*/
|
288
|
+
getVarSubmitConfig(param?: {
|
289
|
+
buttonType?: KG_BUTTON_TYPE;
|
290
|
+
buttonVarName?: string | null;
|
291
|
+
}): VarSubmitConfig | null;
|
292
|
+
/**
|
293
|
+
* <p>获取提交表单字段, 根据所传参数进行过滤.</p>
|
294
|
+
*
|
295
|
+
* <ul>
|
296
|
+
* <li>
|
297
|
+
* <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
|
298
|
+
* </li>
|
299
|
+
* <li>
|
300
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
301
|
+
* </li>
|
302
|
+
* <li>
|
303
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
304
|
+
* </li>
|
305
|
+
* <li>
|
306
|
+
* <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
|
307
|
+
* </li>
|
308
|
+
* <li>
|
309
|
+
* <p>如果参数 {@link param.isVisible} !== <code>undefined</code> , 则根据 {@link param.isVisible} 和 {@link VarSubmitDetail.visible_flag} 是否匹配进行过滤.</p>
|
310
|
+
* </li>
|
311
|
+
* </ul>
|
312
|
+
*
|
313
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
|
314
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
315
|
+
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
316
|
+
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
317
|
+
*/
|
318
|
+
getVarSubmitDetails(param?: {
|
319
|
+
buttonType?: KG_BUTTON_TYPE;
|
320
|
+
buttonVarName?: string | null;
|
321
|
+
isVisible?: 0 | 1 | null;
|
322
|
+
varName?: string | null;
|
323
|
+
} | null): Array<VarSubmitDetail>;
|
324
|
+
/**
|
325
|
+
* 修改某个「提交表单字段」的部分属性.
|
326
|
+
*
|
327
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG_BUTTON_TYPE}.</p>
|
328
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
329
|
+
* @param param.properties 要修改的部分属性.
|
330
|
+
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
331
|
+
*/
|
332
|
+
patchVarSubmitDetail(param: {
|
333
|
+
buttonType?: KG_BUTTON_TYPE;
|
334
|
+
buttonVarName?: string | null;
|
335
|
+
properties: VarSubmitDetail;
|
336
|
+
varName: string | null | undefined;
|
337
|
+
}): void;
|
41
338
|
/**
|
42
339
|
* <p>事件: 打开提交弹窗之前.</p>
|
43
340
|
* @param cb 回调函数.
|