@kengic/vue 0.23.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +9391 -8199
- package/dist/project/build/script/buildConf.ts +1 -2
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/project/src/api/sys/model/userModel.ts +1 -0
- package/dist/setting-outlined.7f72790b.mjs +8 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +27 -11
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
- package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
- package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
- package/dist/src/components/KgButton/KgButton.d.ts +18 -12
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
- package/dist/src/components/KgButton/index.d.ts +4 -4
- package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
- package/dist/src/components/KgButton/index.store.d.ts +19 -16
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
- package/dist/src/components/KgForm/index.store.d.ts +74 -34
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
- package/dist/src/components/KgForm.Item/index.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
- package/dist/src/components/KgModal/KgModal.d.ts +105 -21
- package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +55 -55
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
- package/dist/src/components/KgSearch/index.hooks.d.ts +30 -12
- package/dist/src/components/KgSearch/index.store.d.ts +44 -37
- package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
- package/dist/src/components/KgSubmit/index.store.d.ts +53 -47
- package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
- package/dist/src/components/KgTable/index.store.d.ts +48 -34
- package/dist/src/components/KgTable/index.vm.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +15 -11
- package/dist/src/components/KgVar/index.store.d.ts +55 -60
- package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
- package/dist/src/components/KgVar/index.vm.d.ts +7 -7
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.d.ts +1 -0
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +29 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +40 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
- package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
- package/dist/src/components/util.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +31 -11
- package/dist/src/consts/i18n/zh_CN.d.ts +31 -11
- package/dist/src/consts/index.d.ts +0 -284
- package/dist/src/consts/index.vm.d.ts +435 -24
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +117 -192
- package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
- package/dist/src/services/http-client.d.ts +2 -2
- package/dist/src/utils/kg-var.util.d.ts +4 -3
- package/dist/src/utils/kg.util.d.ts +42 -25
- package/package.json +2 -2
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
- /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,37 +1,37 @@
|
|
1
|
-
import {
|
1
|
+
import { KG__VAR_BUTTON__COLOR, KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
|
-
import {
|
1
|
+
import { KG__VAR_BUTTON__COLOR } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<import("../../../consts").KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
|
-
import {
|
1
|
+
import { KG__VAR_BUTTON__COLOR, KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
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
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -4,8 +4,8 @@ declare const _default: {
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
5
5
|
$data: {};
|
6
6
|
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
7
|
-
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
8
7
|
KgLoading: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
8
|
+
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
9
9
|
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
10
10
|
$attrs: {
|
11
11
|
[x: string]: unknown;
|
@@ -21,8 +21,8 @@ declare const _default: {
|
|
21
21
|
$emit: (event: string, ...args: any[]) => void;
|
22
22
|
$el: any;
|
23
23
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
24
|
-
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
25
24
|
KgLoading: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
25
|
+
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
26
26
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
27
27
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
28
28
|
created?: ((() => void) | (() => void)[]) | undefined;
|
@@ -44,15 +44,15 @@ declare const _default: {
|
|
44
44
|
$nextTick: typeof import("vue").nextTick;
|
45
45
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
46
46
|
} & Readonly<import("vue").ExtractPropTypes<{
|
47
|
-
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
48
47
|
KgLoading: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
48
|
+
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
49
49
|
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
50
50
|
__isFragment?: undefined;
|
51
51
|
__isTeleport?: undefined;
|
52
52
|
__isSuspense?: undefined;
|
53
53
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
54
|
-
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
55
54
|
KgLoading: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
55
|
+
kgDisabled: import("vue").PropType<(button: import("../..").VarButton) => boolean | undefined>;
|
56
56
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
57
57
|
Item: typeof KgButtonItem;
|
58
58
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
2
|
import { IRemoveEventListenerHandler, KG_BUTTON_TYPE } from '../../consts';
|
3
|
-
import {
|
3
|
+
import { IKgButtonClickEventListener, IKgButtonImportOkEventListener, IKgButtonStore, IKgButtonSubmitCancelEventListener, IKgButtonSubmitSaveEventListener } from './index.store';
|
4
4
|
export interface IUseKgButton {
|
5
5
|
/**
|
6
6
|
* <p>手动点击某个按钮.</p>
|
@@ -81,28 +81,28 @@ export interface IUseKgButton {
|
|
81
81
|
* @param cb 回调函数.
|
82
82
|
* @param once 是否只会触发一次. 默认为 undefined.
|
83
83
|
*/
|
84
|
-
onClick(cb:
|
84
|
+
onClick(cb: IKgButtonClickEventListener, once?: boolean): IRemoveEventListenerHandler;
|
85
85
|
/**
|
86
86
|
* 事件: 导入成功, 导入接口调用成功.
|
87
87
|
*
|
88
88
|
* @param cb 回调函数.
|
89
89
|
* @param once 是否只会触发一次. 默认为 undefined.
|
90
90
|
*/
|
91
|
-
onImportOk(cb:
|
91
|
+
onImportOk(cb: IKgButtonImportOkEventListener, once?: boolean): IRemoveEventListenerHandler;
|
92
92
|
/**
|
93
93
|
* 事件: 表格内编辑时, 点击取消按钮.
|
94
94
|
*
|
95
95
|
* @param cb 回调函数.
|
96
96
|
* @param once 是否只会触发一次. 默认为 undefined.
|
97
97
|
*/
|
98
|
-
onSubmitCancel(cb:
|
98
|
+
onSubmitCancel(cb: IKgButtonSubmitCancelEventListener, once?: boolean): IRemoveEventListenerHandler;
|
99
99
|
/**
|
100
100
|
* 事件: 表格内编辑时, 点击保存按钮.
|
101
101
|
*
|
102
102
|
* @param cb 回调函数.
|
103
103
|
* @param once 是否只会触发一次. 默认为 undefined.
|
104
104
|
*/
|
105
|
-
onSubmitSave(cb:
|
105
|
+
onSubmitSave(cb: IKgButtonSubmitSaveEventListener, once?: boolean): IRemoveEventListenerHandler;
|
106
106
|
/**
|
107
107
|
* <p>「查询按钮」.</p>
|
108
108
|
*/
|
@@ -169,6 +169,8 @@ export interface IUseKgButton {
|
|
169
169
|
* 状态数据.
|
170
170
|
*/
|
171
171
|
store: IKgButtonStore;
|
172
|
+
/** 所有按钮. */
|
173
|
+
varButtons: ComputedRef<ReturnType<IKgButtonStore['getVarButtons']>>;
|
172
174
|
}
|
173
175
|
/**
|
174
176
|
* @param formID 界面标识.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton } from '../../apis/WMS/models';
|
3
|
-
import {
|
3
|
+
import { IKgEventListener, KG_BUTTON_TYPE } from '../../consts';
|
4
4
|
/**
|
5
5
|
* 事件类型.
|
6
6
|
* 'click': 点击按钮
|
@@ -9,29 +9,31 @@ import { IKgEventCb, KG_BUTTON_TYPE } from '../../consts';
|
|
9
9
|
* 'submitCancel': 表格内编辑时, 点击取消按钮
|
10
10
|
*/
|
11
11
|
export declare type IKgButtonEvent = 'click' | 'importOk' | 'submitSave' | 'submitCancel';
|
12
|
-
export declare type
|
12
|
+
export declare type IKgButtonClickEventListenerParameter = {
|
13
13
|
/**
|
14
14
|
* 被点击的按钮.
|
15
15
|
*/
|
16
16
|
button: VarButton;
|
17
17
|
};
|
18
|
-
export declare type
|
19
|
-
export declare type
|
18
|
+
export declare type IKgButtonClickEventListener = ((param: IKgButtonClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
19
|
+
export declare type IKgButtonImportOkEventListenerParameter = {
|
20
20
|
button?: VarButton | null;
|
21
21
|
};
|
22
|
-
export declare type
|
23
|
-
export declare type
|
24
|
-
export declare type
|
25
|
-
export declare type
|
26
|
-
export declare type
|
22
|
+
export declare type IKgButtonImportOkEventListener = ((param: IKgButtonImportOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
23
|
+
export declare type IKgButtonSubmitSaveEventListenerParameter = {};
|
24
|
+
export declare type IKgButtonSubmitSaveEventListener = ((param: IKgButtonSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
25
|
+
export declare type IKgButtonSubmitCancelEventListenerParameter = {};
|
26
|
+
export declare type IKgButtonSubmitCancelEventListener = ((param: IKgButtonSubmitCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
27
|
+
export declare type IKgButtonEventListenerParameter = IKgButtonClickEventListenerParameter | IKgButtonImportOkEventListenerParameter | IKgButtonSubmitSaveEventListenerParameter | IKgButtonSubmitCancelEventListenerParameter;
|
28
|
+
export declare type IKgButtonEventListener = IKgButtonClickEventListener | IKgButtonImportOkEventListener | IKgButtonSubmitSaveEventListener | IKgButtonSubmitCancelEventListener;
|
27
29
|
export interface IUseKgButtonStoreState {
|
28
|
-
|
30
|
+
clickEventListenersMap: Map<string, Array<IKgButtonClickEventListener>>;
|
29
31
|
/**
|
30
32
|
* <p>当前按钮.</p>
|
31
33
|
* <p>同一时间最多只会有一个按钮处于「正在执行」状态, 比如点击了创建按钮, 则当前按钮就是创建按钮.</p>
|
32
34
|
*/
|
33
35
|
currentButtonMap: Map<string, VarButton | null>;
|
34
|
-
|
36
|
+
importOkEventListenersMap: Map<string, Array<IKgButtonImportOkEventListener>>;
|
35
37
|
/**
|
36
38
|
* <p>按钮的 click 事件是否被拦截.</p>
|
37
39
|
* <p>用户调用 kgVar.kgButton.onClick(cb) 监听了 click 事件, 并且回调函数返回了 true, 表示该 click 事件被用户拦截了.</p>
|
@@ -43,12 +45,13 @@ export interface IUseKgButtonStoreState {
|
|
43
45
|
* <p>比如点击了创建按钮, 打开了创建弹窗, 此时「当前按钮」指的就是创建按钮. 当点击弹窗中的保存按钮时, 表示正在请求后端接口.</p>
|
44
46
|
*/
|
45
47
|
isCurrentButtonRequestingMap: Map<string, boolean>;
|
46
|
-
|
47
|
-
|
48
|
+
submitCancelEventListenersMap: Map<string, Array<IKgButtonSubmitCancelEventListener>>;
|
49
|
+
submitSaveEventListenersMap: Map<string, Array<IKgButtonSubmitSaveEventListener>>;
|
48
50
|
}
|
49
51
|
export interface IUseKgButtonStoreGetters {
|
50
52
|
getCurrentButton(): (formID: string | null | undefined) => VarButton | null;
|
51
53
|
getSearchButton(): (formID: string | null | undefined) => VarButton | null;
|
54
|
+
getVarButtons(): (formID: string | null | undefined) => Array<VarButton>;
|
52
55
|
isClickIntercepted(): (formID: string | undefined | null, param: {
|
53
56
|
type?: KG_BUTTON_TYPE;
|
54
57
|
varName?: string | null;
|
@@ -66,7 +69,7 @@ export interface IUseKgButtonStoreActions {
|
|
66
69
|
* @param event 事件名称.
|
67
70
|
* @param cb 回调函数.
|
68
71
|
*/
|
69
|
-
addEventListener(formID: string, event: IKgButtonEvent, cb:
|
72
|
+
addEventListener(formID: string, event: IKgButtonEvent, cb: IKgButtonEventListener): void;
|
70
73
|
/**
|
71
74
|
* <p>手动点击某个按钮.</p>
|
72
75
|
* <p>调用此方法相当于手动触发某个按钮的点击事件.</p>
|
@@ -83,14 +86,14 @@ export interface IUseKgButtonStoreActions {
|
|
83
86
|
* @param event 事件名称.
|
84
87
|
* @param param 数据.
|
85
88
|
*/
|
86
|
-
emit(formID: string, event: IKgButtonEvent, param:
|
89
|
+
emit<T = IKgButtonEventListenerParameter>(formID: string, event: IKgButtonEvent, param: T): Promise<boolean>;
|
87
90
|
/**
|
88
91
|
* 退订事件监听.
|
89
92
|
* @param formID 界面标识.
|
90
93
|
* @param event 事件名称.
|
91
94
|
* @param cb 回调函数.
|
92
95
|
*/
|
93
|
-
removeEventListener(formID: string, event: IKgButtonEvent, cb?:
|
96
|
+
removeEventListener(formID: string, event: IKgButtonEvent, cb?: IKgButtonEventListener): void;
|
94
97
|
setCurrentButton(formID: string, param: {
|
95
98
|
type?: KG_BUTTON_TYPE;
|
96
99
|
varName?: string | null;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
import './KgForm.less';
|
3
3
|
export declare const getProps: () => {
|
4
|
-
layout: import("vue").PropType<"
|
4
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
5
5
|
labelCol: {
|
6
6
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
7
7
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -137,7 +137,7 @@ export declare const getProps: () => {
|
|
137
137
|
};
|
138
138
|
export declare type IKgFormProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
139
139
|
declare const _default: import("vue").DefineComponent<{
|
140
|
-
layout: import("vue").PropType<"
|
140
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
141
141
|
labelCol: {
|
142
142
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
143
143
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
271
271
|
type: import("vue").PropType<((name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void) | undefined>;
|
272
272
|
};
|
273
273
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
274
|
-
layout: import("vue").PropType<"
|
274
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
275
275
|
labelCol: {
|
276
276
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
277
277
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
10
10
|
validateMessages: import("ant-design-vue/es/form/interface").ValidateMessages;
|
11
11
|
validateOnRuleChange: boolean;
|
12
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
-
layout: import("vue").PropType<"
|
13
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
14
14
|
labelCol: {
|
15
15
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
16
16
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -158,7 +158,7 @@ declare const _default: {
|
|
158
158
|
$emit: (event: string, ...args: any[]) => void;
|
159
159
|
$el: any;
|
160
160
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
161
|
-
layout: import("vue").PropType<"
|
161
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
162
162
|
labelCol: {
|
163
163
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
164
164
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -318,7 +318,7 @@ declare const _default: {
|
|
318
318
|
$nextTick: typeof import("vue").nextTick;
|
319
319
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
320
320
|
} & Readonly<import("vue").ExtractPropTypes<{
|
321
|
-
layout: import("vue").PropType<"
|
321
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
322
322
|
labelCol: {
|
323
323
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
324
324
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -456,7 +456,7 @@ declare const _default: {
|
|
456
456
|
__isTeleport?: undefined;
|
457
457
|
__isSuspense?: undefined;
|
458
458
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
459
|
-
layout: import("vue").PropType<"
|
459
|
+
layout: import("vue").PropType<"inline" | "horizontal" | "vertical">;
|
460
460
|
labelCol: {
|
461
461
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
462
462
|
span: (NumberConstructor | StringConstructor)[];
|