@kengic/vue 0.16.7 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +32 -16
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +5058 -4029
- package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +206 -2
- package/dist/src/components/KgSubmit/index.hooks.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.store.d.ts +11 -11
- package/dist/src/components/KgTable/index.hooks.d.ts +7 -7
- package/dist/src/components/KgTable/index.store.d.ts +485 -45
- package/dist/src/components/KgTable/index.vm.d.ts +3 -3
- package/dist/src/config/index.hooks.d.ts +76 -15
- package/dist/src/config/index.store.d.ts +2 -2
- package/dist/src/consts/i18n/en.d.ts +8 -5
- package/dist/src/consts/i18n/zh_CN.d.ts +8 -5
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +5 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1643 -26
- package/dist/src/pages/KgPageDda/index.const.d.ts +1 -1
- package/dist/src/utils/kg-route.util.d.ts +1 -1
- package/package.json +2 -1
@@ -1,24 +1,85 @@
|
|
1
1
|
import { Pinia } from 'pinia';
|
2
2
|
import { ComputedRef, Ref } from 'vue';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
export declare
|
7
|
-
store:
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
/**
|
4
|
+
* @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
5
|
+
*/
|
6
|
+
export declare function useKg(pinia?: Pinia): {
|
7
|
+
store: import("pinia").Store<"Kg", import("./index.store").IKgState, {
|
8
|
+
getLocale: ComputedRef<import("..").IKgLocale> | null;
|
9
|
+
getRouter: import("vue-router").Router | null;
|
10
|
+
getUseUserStore(): import("pinia").StoreDefinition<string, import("./index.store").UserState, {
|
11
|
+
getToken(): string;
|
12
|
+
getRoleList(): any[];
|
13
|
+
getUserWarehouses(): import("..").SysUserWarehouseDTO[];
|
14
|
+
getSessionTimeout(): boolean;
|
15
|
+
getUserInfo(): import("./index.store").UserInfo;
|
16
|
+
}, {}> | null;
|
17
|
+
getUsePermissionStore(): import("pinia").StoreDefinition<string, import("./index.store").PermissionState, {
|
18
|
+
getPermCodeList(): string[] | number[];
|
19
|
+
getBackMenuList(): import("..").Menu[];
|
20
|
+
}, import("pinia")._ActionsTree> | null;
|
21
|
+
getOption: import("./index.store").IKgOption;
|
22
|
+
}, {
|
23
|
+
setLocale(locale: ComputedRef<import("..").IKgLocale> | null): void;
|
24
|
+
setRouter(router: import("vue-router").Router): void;
|
25
|
+
setUseUserStore(useUserStore: import("pinia").StoreDefinition<any, any, any, any>): void;
|
26
|
+
setUsePermissionStore(usePermissionStore: import("pinia").StoreDefinition<any, any, any, any>): void;
|
27
|
+
setT(i18n: any): void;
|
28
|
+
setP(fn: import("./index.store").P): void;
|
29
|
+
setOption(option: import("./index.store").IKgOption): void;
|
30
|
+
t: import("./index.store").T;
|
31
|
+
p: import("./index.store").P;
|
32
|
+
}>;
|
33
|
+
/** 当前语言. */
|
34
|
+
locale: ComputedRef<"zh_CN" | "en" | "ru" | "ja" | "ko">;
|
35
|
+
router: any;
|
11
36
|
/** 配置参数. */
|
12
|
-
option: ComputedRef<
|
37
|
+
option: ComputedRef<{
|
38
|
+
appIndex?: {
|
39
|
+
"data-manager"?: string | undefined;
|
40
|
+
"business-manager"?: string | undefined;
|
41
|
+
wcs?: string | undefined;
|
42
|
+
sys?: string | undefined;
|
43
|
+
} | undefined;
|
44
|
+
appTitle?: {
|
45
|
+
"data-manager"?: string | undefined;
|
46
|
+
"business-manager"?: string | undefined;
|
47
|
+
wcs?: string | undefined;
|
48
|
+
sys?: string | undefined;
|
49
|
+
} | undefined;
|
50
|
+
KgModal?: {
|
51
|
+
drag?: {
|
52
|
+
on?: boolean | undefined;
|
53
|
+
} | undefined;
|
54
|
+
resize?: {
|
55
|
+
on?: boolean | undefined;
|
56
|
+
} | undefined;
|
57
|
+
} | undefined;
|
58
|
+
KgSearch?: {
|
59
|
+
dynamicQuery?: {
|
60
|
+
on?: boolean | undefined;
|
61
|
+
} | undefined;
|
62
|
+
} | undefined;
|
63
|
+
KgTable?: {
|
64
|
+
filter?: {
|
65
|
+
on?: boolean | undefined;
|
66
|
+
} | undefined;
|
67
|
+
Setting?: {
|
68
|
+
rowHeight?: {
|
69
|
+
on?: boolean | undefined;
|
70
|
+
} | undefined;
|
71
|
+
} | undefined;
|
72
|
+
} | undefined;
|
73
|
+
KgWarehouse?: {
|
74
|
+
on?: boolean | undefined;
|
75
|
+
defaultWarehouseID?: string | undefined;
|
76
|
+
} | undefined;
|
77
|
+
}>;
|
13
78
|
/** 翻译. */
|
14
|
-
t: T;
|
79
|
+
t: import("./index.store").T;
|
15
80
|
/** 检查权限. */
|
16
|
-
p: P;
|
81
|
+
p: import("./index.store").P;
|
17
82
|
};
|
18
|
-
/**
|
19
|
-
* @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
20
|
-
*/
|
21
|
-
export declare function useKg(pinia?: Pinia): IUseKg;
|
22
83
|
export interface IUseKgDragModal {
|
23
84
|
draggable: Ref<boolean> | ComputedRef<boolean>;
|
24
85
|
visible: Ref<boolean> | ComputedRef<boolean>;
|
@@ -115,7 +115,7 @@ export interface UserInfo {
|
|
115
115
|
roles: RoleInfo[];
|
116
116
|
orgCode?: string;
|
117
117
|
}
|
118
|
-
interface UserState {
|
118
|
+
export interface UserState {
|
119
119
|
userInfo: UserInfo | null;
|
120
120
|
token?: string;
|
121
121
|
roleList: any[];
|
@@ -132,7 +132,7 @@ interface AuthItem {
|
|
132
132
|
/** 权限名称. */
|
133
133
|
describe?: string;
|
134
134
|
}
|
135
|
-
interface PermissionState {
|
135
|
+
export interface PermissionState {
|
136
136
|
/** 当前登录用户所拥有的权限编码列表. */
|
137
137
|
permCodeList: string[] | number[];
|
138
138
|
/** 菜单列表. */
|
@@ -25,23 +25,26 @@ declare const _default: {
|
|
25
25
|
sql: string;
|
26
26
|
type: string;
|
27
27
|
};
|
28
|
+
KgPageDdaCreateMenu: {
|
29
|
+
'parent-menu': string;
|
30
|
+
};
|
28
31
|
KgPageDdaCreateSearch: {
|
29
32
|
available: string;
|
30
|
-
'column-
|
33
|
+
'column-desc': string;
|
31
34
|
'column-name': string;
|
32
35
|
'column-type': string;
|
33
36
|
selected: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgPageDdaCreateSubmit: {
|
36
39
|
available: string;
|
37
|
-
'column-
|
40
|
+
'column-desc': string;
|
38
41
|
'column-name': string;
|
39
42
|
'column-type': string;
|
40
43
|
selected: string;
|
41
44
|
};
|
42
|
-
|
45
|
+
KgPageDdaCreateTable: {
|
43
46
|
available: string;
|
44
|
-
'column-
|
47
|
+
'column-desc': string;
|
45
48
|
'column-name': string;
|
46
49
|
'column-type': string;
|
47
50
|
selected: string;
|
@@ -25,23 +25,26 @@ declare const _default: {
|
|
25
25
|
sql: string;
|
26
26
|
type: string;
|
27
27
|
};
|
28
|
+
KgPageDdaCreateMenu: {
|
29
|
+
'parent-menu': string;
|
30
|
+
};
|
28
31
|
KgPageDdaCreateSearch: {
|
29
32
|
available: string;
|
30
|
-
'column-
|
33
|
+
'column-desc': string;
|
31
34
|
'column-name': string;
|
32
35
|
'column-type': string;
|
33
36
|
selected: string;
|
34
37
|
};
|
35
|
-
|
38
|
+
KgPageDdaCreateSubmit: {
|
36
39
|
available: string;
|
37
|
-
'column-
|
40
|
+
'column-desc': string;
|
38
41
|
'column-name': string;
|
39
42
|
'column-type': string;
|
40
43
|
selected: string;
|
41
44
|
};
|
42
|
-
|
45
|
+
KgPageDdaCreateTable: {
|
43
46
|
available: string;
|
44
|
-
'column-
|
47
|
+
'column-desc': string;
|
45
48
|
'column-name': string;
|
46
49
|
'column-type': string;
|
47
50
|
selected: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const getProps: () => any;
|
3
|
-
export declare type
|
3
|
+
export declare type IKgPageDdaCreateMenuProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
5
|
[x: string]: any;
|
6
6
|
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const getProps: () => any;
|
3
|
-
export declare type
|
3
|
+
export declare type IKgPageDdaCreateSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
5
|
[x: string]: any;
|
6
6
|
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const getProps: () => any;
|
3
|
-
export declare type
|
3
|
+
export declare type IKgPageDdaCreateTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
4
4
|
declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
5
5
|
[x: string]: any;
|
6
6
|
}>;
|
@@ -7,6 +7,7 @@ export declare const getProps: () => {
|
|
7
7
|
*/
|
8
8
|
kgVisible: PropType<boolean>;
|
9
9
|
'onUpdate:kgVisible': PropType<(value: boolean) => void>;
|
10
|
+
onKgOk: PropType<() => void>;
|
10
11
|
};
|
11
12
|
export declare type IKgPageDdaCreateProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
12
13
|
declare const _default: import("vue").DefineComponent<{
|
@@ -16,14 +17,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
17
|
*/
|
17
18
|
kgVisible: PropType<boolean>;
|
18
19
|
'onUpdate:kgVisible': PropType<(value: boolean) => void>;
|
19
|
-
|
20
|
+
onKgOk: PropType<() => void>;
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgOk" | "update:kgVisible")[], "kgOk" | "update:kgVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
20
22
|
/**
|
21
23
|
* 是否显示.
|
22
24
|
* @default false
|
23
25
|
*/
|
24
26
|
kgVisible: PropType<boolean>;
|
25
27
|
'onUpdate:kgVisible': PropType<(value: boolean) => void>;
|
28
|
+
onKgOk: PropType<() => void>;
|
26
29
|
}>> & {
|
30
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
27
31
|
"onUpdate:kgVisible"?: ((...args: any[]) => any) | undefined;
|
28
32
|
}, {}>;
|
29
33
|
export default _default;
|