@kengic/vue 0.4.4-beta.0 → 0.4.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3727 -3809
- package/dist/src/apis/WMS/models.d.ts +3 -3
- package/dist/src/components/KgButton/KgButton.Item.d.ts +2 -0
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +4 -2
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +2 -0
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +2 -0
- package/dist/src/components/KgButton/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Profile.d.ts +1 -1
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Profile.data.d.ts +4 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.data.d.ts +0 -4
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +3 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.vm.d.ts +2 -2
- package/dist/src/components/KgTable/{KgTable.data.d.ts → KgTable.hooks.d.ts} +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +1 -1
- package/dist/src/components/KgVar/KgVar.d.ts +6 -0
- package/dist/src/consts/index.d.ts +7 -4
- package/dist/src/consts/index.vm.d.ts +11 -0
- package/dist/src/utils/route.util.d.ts +7 -0
- package/package.json +1 -1
@@ -204,7 +204,7 @@ export declare class VarGridDetail {
|
|
204
204
|
/** 是否可见(VisibleFlag). */
|
205
205
|
vis_flg?: number | null;
|
206
206
|
/** 列宽(Width). */
|
207
|
-
width?:
|
207
|
+
width?: string | null;
|
208
208
|
constructor(obj?: VarGridDetail);
|
209
209
|
}
|
210
210
|
/** 表格视图. */
|
@@ -361,7 +361,7 @@ export declare class VarProfileMaster {
|
|
361
361
|
frm_id?: string | null;
|
362
362
|
/** 分组(GroupName). */
|
363
363
|
grp_nam?: string | null;
|
364
|
-
/**
|
364
|
+
/** 主键. */
|
365
365
|
id?: string | null;
|
366
366
|
/** 查询条件变量名称(ProfileVariableName). */
|
367
367
|
prf_var_nam?: string | null;
|
@@ -381,7 +381,7 @@ export declare class VarProfileMasterDTO {
|
|
381
381
|
frm_id?: string | null;
|
382
382
|
/** 分组(GroupName). */
|
383
383
|
grp_nam?: string | null;
|
384
|
-
/**
|
384
|
+
/** 主键. */
|
385
385
|
id?: string | null;
|
386
386
|
/** 查询条件变量名称(ProfileVariableName). */
|
387
387
|
prf_var_nam?: string | null;
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
kgText: import("vue").PropType<string | null>;
|
13
13
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
14
14
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
15
|
+
kgLoading: import("vue").PropType<boolean>;
|
15
16
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
16
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
17
18
|
kgButton: import("vue").PropType<import("../..").VarButton>;
|
@@ -25,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
26
|
kgText: import("vue").PropType<string | null>;
|
26
27
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
27
28
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
29
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
30
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
29
31
|
}>>, {
|
30
32
|
kgPrimary: boolean | null | undefined;
|
@@ -21,6 +21,8 @@ export declare const getProps: () => {
|
|
21
21
|
kgColor: PropType<KG_BTN_COLOR | null>;
|
22
22
|
/** 是否禁用. */
|
23
23
|
kgDisabled: PropType<boolean | null | undefined>;
|
24
|
+
/** 是否正在加载. */
|
25
|
+
kgLoading: PropType<boolean>;
|
24
26
|
onKgClick: PropType<(args?: any) => Promise<boolean>>;
|
25
27
|
};
|
26
28
|
export declare type IKgButtonItemProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
@@ -10,7 +10,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
kgText: import("vue").PropType<string | null>;
|
11
11
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
12
12
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
13
|
-
|
13
|
+
kgLoading: import("vue").PropType<boolean>;
|
14
|
+
onKgClick: import("vue").PropType<(args?: any) => Promise<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<{
|
15
16
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
16
17
|
kgVarName: import("vue").PropType<string | null>;
|
@@ -23,7 +24,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
24
|
kgText: import("vue").PropType<string | null>;
|
24
25
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
25
26
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
26
|
-
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>; /** 渲染图标. */
|
27
29
|
}>>, {
|
28
30
|
kgPrimary: boolean | null | undefined;
|
29
31
|
}>;
|
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
kgText: import("vue").PropType<string | null>;
|
11
11
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
12
12
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
13
|
+
kgLoading: import("vue").PropType<boolean>;
|
13
14
|
onKgClick: import("vue").PropType<(args?: any) => Promise<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<{
|
15
16
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -23,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
24
|
kgText: import("vue").PropType<string | null>;
|
24
25
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
25
26
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
26
28
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
27
29
|
}>>, {
|
28
30
|
kgPrimary: boolean | null | undefined;
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
kgText: import("vue").PropType<string | null>;
|
12
12
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
13
13
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
14
|
+
kgLoading: import("vue").PropType<boolean>;
|
14
15
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
15
16
|
}, () => 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
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -24,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
25
|
kgText: import("vue").PropType<string | null>;
|
25
26
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
26
27
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
28
|
+
kgLoading: import("vue").PropType<boolean>;
|
27
29
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
28
30
|
}>>, {
|
29
31
|
kgPrimary: boolean | null | undefined;
|
@@ -10,6 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
kgText: import("vue").PropType<string | null>;
|
11
11
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
12
12
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
13
|
+
kgLoading: import("vue").PropType<boolean>;
|
13
14
|
onKgClick: import("vue").PropType<(args?: any) => Promise<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<{
|
15
16
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -23,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
24
|
kgText: import("vue").PropType<string | null>;
|
24
25
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
25
26
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
26
28
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
27
29
|
}>>, {
|
28
30
|
kgPrimary: boolean | null | undefined;
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
kgText: import("vue").PropType<string | null>;
|
12
12
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
13
13
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
14
|
+
kgLoading: import("vue").PropType<boolean>;
|
14
15
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
15
16
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClick"[], "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
17
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -25,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
26
|
kgText: import("vue").PropType<string | null>;
|
26
27
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
27
28
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
29
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
30
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
29
31
|
}>> & {
|
30
32
|
onKgClick?: ((...args: any[]) => any) | undefined;
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
kgText: import("vue").PropType<string | null>;
|
12
12
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
13
13
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
14
|
+
kgLoading: import("vue").PropType<boolean>;
|
14
15
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
15
16
|
}, () => 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
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -24,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
25
|
kgText: import("vue").PropType<string | null>;
|
25
26
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
26
27
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
28
|
+
kgLoading: import("vue").PropType<boolean>;
|
27
29
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
28
30
|
}>>, {
|
29
31
|
kgPrimary: boolean | null | undefined;
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
kgText: import("vue").PropType<string | null>;
|
13
13
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
14
14
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
15
|
+
kgLoading: import("vue").PropType<boolean>;
|
15
16
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
16
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
17
18
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -26,6 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
27
|
kgText: import("vue").PropType<string | null>;
|
27
28
|
kgColor: import("vue").PropType<KG_BTN_COLOR | null>;
|
28
29
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
30
|
+
kgLoading: import("vue").PropType<boolean>;
|
29
31
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
30
32
|
}>>, {
|
31
33
|
kgPrimary: boolean | null | undefined;
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
12
12
|
/** 点击按钮. */
|
13
13
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
14
|
+
kgLoading: import("vue").PropType<boolean>;
|
14
15
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
15
16
|
}, () => 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
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
@@ -25,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
26
|
kgColor: import("vue").PropType<import("../../..").KG_BTN_COLOR | null>;
|
26
27
|
/** 点击按钮. */
|
27
28
|
kgDisabled: import("vue").PropType<boolean | null | undefined>;
|
29
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
30
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
29
31
|
}>>, {
|
30
32
|
kgPrimary: boolean | null | undefined;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IRemoveEventListenerHandler } from '../../consts
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
2
|
import { IKgButtonBeforeUpdateCb, IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonStore } from './index.store';
|
3
3
|
export declare type IUseKgButton = {
|
4
4
|
formID: string;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
|
+
import { VarProfileDetail } from '../../../apis/WMS/models';
|
3
|
+
export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
4
|
+
export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
@@ -1,5 +1 @@
|
|
1
|
-
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
|
-
import { VarProfileDetail } from '../../../apis/WMS/models';
|
3
1
|
export declare const FORM_ID = "kg-search-config-modal";
|
4
|
-
export declare const leftVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
5
|
-
export declare const rightVarProfileDetailColumns: (hostFormID: string) => ColumnsType<VarProfileDetail>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { IRemoveEventListenerHandler } from '../../consts
|
2
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
3
3
|
import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
|
4
4
|
export declare type IUseKgSearch = {
|
5
5
|
formID: string;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { Ref } from 'vue';
|
2
|
-
/**
|
3
|
-
* 表单数据对象.
|
4
|
-
*/
|
1
|
+
import { Ref, UnwrapRef } from 'vue';
|
5
2
|
export declare function _useFormModel(): {
|
6
3
|
model: Ref<Record<string, any>>;
|
7
4
|
};
|
5
|
+
export declare type IUseResizeObserver = {};
|
6
|
+
export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IRemoveEventListenerHandler } from '../../consts
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
2
|
import { IKgSubmitBeforeOkCb, IKgSubmitCloseCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
|
3
3
|
export declare type IUseKgSubmit = {
|
4
4
|
formID: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export declare const DEFAULT_MIN_WIDTH = 300;
|
2
|
-
export declare const DEFAULT_MAX_WIDTH =
|
3
|
-
export declare const DEFAULT_WIDTH =
|
2
|
+
export declare const DEFAULT_MAX_WIDTH = 1182;
|
3
|
+
export declare const DEFAULT_WIDTH = 594;
|
4
4
|
export declare const DEFAULT_LAYOUT = "vertical";
|
5
5
|
export declare const DEFAULT_LABEL_COL = 4;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { IRemoveEventListenerHandler } from '../../consts
|
2
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
3
3
|
import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
|
4
4
|
export declare type IUseKgTable = {
|
5
5
|
formID: string;
|
@@ -5,6 +5,8 @@ export declare const getProps: () => {
|
|
5
5
|
kgSlots: PropType<Record<string, any>>;
|
6
6
|
/** 是否使用灰色背景. */
|
7
7
|
KgBackgroundGray: PropType<boolean>;
|
8
|
+
/** 给 KgSubmit 添加的额外样式. */
|
9
|
+
kgSubmitClass: PropType<string>;
|
8
10
|
};
|
9
11
|
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
10
12
|
declare const _default: import("vue").DefineComponent<{
|
@@ -12,10 +14,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
14
|
kgSlots: PropType<Record<string, any>>;
|
13
15
|
/** 是否使用灰色背景. */
|
14
16
|
KgBackgroundGray: PropType<boolean>;
|
17
|
+
/** 给 KgSubmit 添加的额外样式. */
|
18
|
+
kgSubmitClass: PropType<string>;
|
15
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
16
20
|
/** 插槽. */
|
17
21
|
kgSlots: PropType<Record<string, any>>;
|
18
22
|
/** 是否使用灰色背景. */
|
19
23
|
KgBackgroundGray: PropType<boolean>;
|
24
|
+
/** 给 KgSubmit 添加的额外样式. */
|
25
|
+
kgSubmitClass: PropType<string>;
|
20
26
|
}>>, {}>;
|
21
27
|
export default _default;
|
@@ -1,17 +1,22 @@
|
|
1
1
|
export * from './i18n';
|
2
|
+
export * from './index.vm';
|
2
3
|
export * from './injection-keys.const';
|
3
|
-
/**
|
4
|
+
/** 模块. */
|
4
5
|
export declare const enum KG_APP {
|
5
6
|
DATA_MANAGER = "data-manager",
|
6
7
|
BUSINESS_MANAGER = "business-manager",
|
7
8
|
SYS = "sys"
|
8
9
|
}
|
10
|
+
/** 所有模块. */
|
11
|
+
export declare const KG_APPS: Array<KG_APP>;
|
9
12
|
/** 模块路径前缀. */
|
10
|
-
export declare const enum
|
13
|
+
export declare const enum KG_APP_PREFIX {
|
11
14
|
DATA_MANAGER = "/wms/data-manager",
|
12
15
|
BUSINESS_MANAGER = "/wms/business-manager",
|
13
16
|
SYS = "/sys"
|
14
17
|
}
|
18
|
+
/** 所有模块路径前缀. */
|
19
|
+
export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
15
20
|
/** 表单控件类型. */
|
16
21
|
export declare const enum KG_CONTROL_TYPE {
|
17
22
|
/** 文本. */
|
@@ -54,8 +59,6 @@ export declare const enum KG_TD_DISPLAY_TYPE {
|
|
54
59
|
/** 进度条, 使用 KgProgressA 组件显示. */
|
55
60
|
PROGRESS = "PROGRESS"
|
56
61
|
}
|
57
|
-
/** 所有模块. */
|
58
|
-
export declare const KG_APPS: Array<KG_APP>;
|
59
62
|
/** 按钮类型. */
|
60
63
|
export declare const enum KG_BTN_TYPE {
|
61
64
|
/** 创建. */
|
@@ -1,2 +1,13 @@
|
|
1
1
|
/** 移除监听函数. */
|
2
2
|
export declare type IRemoveEventListenerHandler = () => void;
|
3
|
+
/** 菜单. */
|
4
|
+
export interface Menu {
|
5
|
+
id: string;
|
6
|
+
app: string;
|
7
|
+
name: string;
|
8
|
+
title: string;
|
9
|
+
path: string;
|
10
|
+
icon?: string;
|
11
|
+
hideMenu?: boolean;
|
12
|
+
children?: Menu[];
|
13
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Menu } from '../consts';
|
1
2
|
export declare class KgRouteUtil {
|
2
3
|
/**
|
3
4
|
* 给所有模块都添加在线表单的路由.
|
@@ -5,4 +6,10 @@ export declare class KgRouteUtil {
|
|
5
6
|
* @param routes 当前路由列表.
|
6
7
|
*/
|
7
8
|
static addOnlineRoutesForAllApps(routes: any[]): any[];
|
9
|
+
/**
|
10
|
+
* 根据地址获取菜单.
|
11
|
+
* @param menus 菜单列表.
|
12
|
+
* @param path 菜单地址.
|
13
|
+
*/
|
14
|
+
static getMenuByPath(menus: Array<Menu>, path: string): Menu | null;
|
8
15
|
}
|