@kengic/vue 0.5.38 → 0.6.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 +5217 -5027
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/components/KgAppSelect/index.d.ts +3 -0
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +11 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +51 -0
- package/dist/src/components/KgForm/KgForm.d.ts +24 -24
- package/dist/src/components/KgForm/index.d.ts +48 -48
- package/dist/src/components/KgForm/index.vm.d.ts +12 -12
- package/dist/src/components/KgModal/KgModal.d.ts +6 -6
- package/dist/src/components/KgModal/index.vm.d.ts +1 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/config/index.store.d.ts +12 -1
- package/dist/src/config/setup.d.ts +2 -2
- package/dist/src/consts/i18n/en.d.ts +6 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +6 -0
- package/dist/src/consts/index.d.ts +6 -4
- package/dist/src/helpers/ant-design-vue.d.ts +13 -13
- package/dist/src/utils/dom.util.d.ts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/kg.util.d.ts +3 -3
- package/dist/src/utils/route.util.d.ts +17 -1
- package/package.json +1 -1
- package/dist/src/utils/app.util.d.ts +0 -17
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { KG_APP } from '../../consts';
|
3
|
+
import './KgAppSelect.less';
|
4
|
+
export declare const getProps: () => {
|
5
|
+
/** 模块列表. */
|
6
|
+
kgApps: {
|
7
|
+
type: PropType<{
|
8
|
+
id: KG_APP;
|
9
|
+
i18n: string;
|
10
|
+
}[]>;
|
11
|
+
default: () => Array<{
|
12
|
+
id: KG_APP;
|
13
|
+
i18n: string;
|
14
|
+
}>;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
declare const _default: import("vue").DefineComponent<{
|
18
|
+
/** 模块列表. */
|
19
|
+
kgApps: {
|
20
|
+
type: PropType<{
|
21
|
+
id: KG_APP;
|
22
|
+
i18n: string;
|
23
|
+
}[]>;
|
24
|
+
default: () => {
|
25
|
+
id: KG_APP;
|
26
|
+
i18n: string;
|
27
|
+
}[];
|
28
|
+
};
|
29
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
|
+
/** 模块列表. */
|
31
|
+
kgApps: {
|
32
|
+
type: PropType<{
|
33
|
+
id: KG_APP;
|
34
|
+
i18n: string;
|
35
|
+
}[]>;
|
36
|
+
default: () => {
|
37
|
+
id: KG_APP;
|
38
|
+
i18n: string;
|
39
|
+
}[];
|
40
|
+
};
|
41
|
+
}>>, {
|
42
|
+
kgApps: {
|
43
|
+
id: KG_APP;
|
44
|
+
i18n: string;
|
45
|
+
}[];
|
46
|
+
}>;
|
47
|
+
export default _default;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
|
+
import { IKgAppSelectGotoAppCb, IKgAppSelectGotoPathCb, IKgAppSelectStore } from './index.store';
|
3
|
+
export declare type IUseKgAppSelect = {
|
4
|
+
/** 状态数据. */
|
5
|
+
store: IKgAppSelectStore;
|
6
|
+
/** 监听事件: 进入某个模块. */
|
7
|
+
onGotoApp(cb: IKgAppSelectGotoAppCb): IRemoveEventListenerHandler;
|
8
|
+
/** 监听事件: 进入某个模块. */
|
9
|
+
onGotoPath(cb: IKgAppSelectGotoPathCb): IRemoveEventListenerHandler;
|
10
|
+
};
|
11
|
+
export declare function useKgAppSelect(): IUseKgAppSelect;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { KG_APP, Menu } from '../../consts';
|
3
|
+
/**
|
4
|
+
* 事件类型.
|
5
|
+
* 'gotoApp': 进入某个模块
|
6
|
+
* 'gotoPath': 进入某个地址
|
7
|
+
*/
|
8
|
+
export declare type IKgAppSelectEvent = 'gotoApp' | 'gotoPath';
|
9
|
+
/** 事件监听函数: gotoApp. */
|
10
|
+
export declare type IKgAppSelectGotoAppCbParam = {
|
11
|
+
app: string;
|
12
|
+
};
|
13
|
+
export declare type IKgAppSelectGotoAppCb = (param: IKgAppSelectGotoAppCbParam) => Promise<boolean>;
|
14
|
+
/** 事件监听函数: gotoPath. */
|
15
|
+
export declare type IKgAppSelectGotoPathCbParam = {
|
16
|
+
path: string;
|
17
|
+
};
|
18
|
+
export declare type IKgAppSelectGotoPathCb = (param: IKgAppSelectGotoPathCbParam) => Promise<boolean>;
|
19
|
+
export declare type IKgAppSelectCb = IKgAppSelectGotoAppCb | IKgAppSelectGotoPathCb;
|
20
|
+
export interface KgAppSelectState {
|
21
|
+
currentApp: KG_APP | null;
|
22
|
+
gotoAppListenersMap: Map<string, Array<IKgAppSelectGotoAppCb>>;
|
23
|
+
gotoPathListenersMap: Map<string, Array<IKgAppSelectGotoPathCb>>;
|
24
|
+
}
|
25
|
+
export declare type IKgAppSelectStoreDefinition = StoreDefinition<'KgAppSelect', KgAppSelectState, {
|
26
|
+
getCurrentApp(): KG_APP;
|
27
|
+
}, {
|
28
|
+
addEventListener(event: IKgAppSelectEvent, cb: IKgAppSelectCb): void;
|
29
|
+
removeEventListener(event: IKgAppSelectEvent, cb?: IKgAppSelectCb): void;
|
30
|
+
/**
|
31
|
+
* 触发事件.
|
32
|
+
* @param event 事件名称.
|
33
|
+
* @param param 参数.
|
34
|
+
*/
|
35
|
+
emit(event: IKgAppSelectEvent, param?: any | null): Promise<boolean>;
|
36
|
+
/**
|
37
|
+
* 进入某个模块.
|
38
|
+
* @param app 要进入的模块.
|
39
|
+
*/
|
40
|
+
gotoApp(app: KG_APP): Promise<void>;
|
41
|
+
/**
|
42
|
+
* 进入某个地址.
|
43
|
+
* 如果该地址不属于当前模块, 则切换到对应的模块.
|
44
|
+
* @param path 要进入的地址.
|
45
|
+
*/
|
46
|
+
gotoPath(path: string): Promise<void>;
|
47
|
+
isMenuInCurrentApp(menu: Menu): boolean;
|
48
|
+
init(): void;
|
49
|
+
}>;
|
50
|
+
export declare type IKgAppSelectStore = ReturnType<IKgAppSelectStoreDefinition>;
|
51
|
+
export declare const useKgAppSelectStore: () => IKgAppSelectStoreDefinition;
|
@@ -3,11 +3,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
4
4
|
labelCol: {
|
5
5
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
6
|
-
span: (
|
7
|
-
order: (
|
8
|
-
offset: (
|
9
|
-
push: (
|
10
|
-
pull: (
|
6
|
+
span: (NumberConstructor | StringConstructor)[];
|
7
|
+
order: (NumberConstructor | StringConstructor)[];
|
8
|
+
offset: (NumberConstructor | StringConstructor)[];
|
9
|
+
push: (NumberConstructor | StringConstructor)[];
|
10
|
+
pull: (NumberConstructor | StringConstructor)[];
|
11
11
|
xs: {
|
12
12
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
13
13
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -37,16 +37,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
37
37
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
38
38
|
};
|
39
39
|
prefixCls: StringConstructor;
|
40
|
-
flex: (
|
40
|
+
flex: (NumberConstructor | StringConstructor)[];
|
41
41
|
}>> & import("vue").HTMLAttributes>;
|
42
42
|
};
|
43
43
|
wrapperCol: {
|
44
44
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
45
|
-
span: (
|
46
|
-
order: (
|
47
|
-
offset: (
|
48
|
-
push: (
|
49
|
-
pull: (
|
45
|
+
span: (NumberConstructor | StringConstructor)[];
|
46
|
+
order: (NumberConstructor | StringConstructor)[];
|
47
|
+
offset: (NumberConstructor | StringConstructor)[];
|
48
|
+
push: (NumberConstructor | StringConstructor)[];
|
49
|
+
pull: (NumberConstructor | StringConstructor)[];
|
50
50
|
xs: {
|
51
51
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
52
52
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
77
77
|
};
|
78
78
|
prefixCls: StringConstructor;
|
79
|
-
flex: (
|
79
|
+
flex: (NumberConstructor | StringConstructor)[];
|
80
80
|
}>> & import("vue").HTMLAttributes>;
|
81
81
|
};
|
82
82
|
colon: {
|
@@ -137,11 +137,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
137
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
138
138
|
labelCol: {
|
139
139
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
140
|
-
span: (
|
141
|
-
order: (
|
142
|
-
offset: (
|
143
|
-
push: (
|
144
|
-
pull: (
|
140
|
+
span: (NumberConstructor | StringConstructor)[];
|
141
|
+
order: (NumberConstructor | StringConstructor)[];
|
142
|
+
offset: (NumberConstructor | StringConstructor)[];
|
143
|
+
push: (NumberConstructor | StringConstructor)[];
|
144
|
+
pull: (NumberConstructor | StringConstructor)[];
|
145
145
|
xs: {
|
146
146
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
147
147
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -171,16 +171,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
171
171
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
172
172
|
};
|
173
173
|
prefixCls: StringConstructor;
|
174
|
-
flex: (
|
174
|
+
flex: (NumberConstructor | StringConstructor)[];
|
175
175
|
}>> & import("vue").HTMLAttributes>;
|
176
176
|
};
|
177
177
|
wrapperCol: {
|
178
178
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
179
|
-
span: (
|
180
|
-
order: (
|
181
|
-
offset: (
|
182
|
-
push: (
|
183
|
-
pull: (
|
179
|
+
span: (NumberConstructor | StringConstructor)[];
|
180
|
+
order: (NumberConstructor | StringConstructor)[];
|
181
|
+
offset: (NumberConstructor | StringConstructor)[];
|
182
|
+
push: (NumberConstructor | StringConstructor)[];
|
183
|
+
pull: (NumberConstructor | StringConstructor)[];
|
184
184
|
xs: {
|
185
185
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
186
186
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
210
210
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
211
211
|
};
|
212
212
|
prefixCls: StringConstructor;
|
213
|
-
flex: (
|
213
|
+
flex: (NumberConstructor | StringConstructor)[];
|
214
214
|
}>> & import("vue").HTMLAttributes>;
|
215
215
|
};
|
216
216
|
colon: {
|
@@ -13,11 +13,11 @@ declare const _default: {
|
|
13
13
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
14
14
|
labelCol: {
|
15
15
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
16
|
-
span: (
|
17
|
-
order: (
|
18
|
-
offset: (
|
19
|
-
push: (
|
20
|
-
pull: (
|
16
|
+
span: (NumberConstructor | StringConstructor)[];
|
17
|
+
order: (NumberConstructor | StringConstructor)[];
|
18
|
+
offset: (NumberConstructor | StringConstructor)[];
|
19
|
+
push: (NumberConstructor | StringConstructor)[];
|
20
|
+
pull: (NumberConstructor | StringConstructor)[];
|
21
21
|
xs: {
|
22
22
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
23
23
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -47,16 +47,16 @@ declare const _default: {
|
|
47
47
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
48
48
|
};
|
49
49
|
prefixCls: StringConstructor;
|
50
|
-
flex: (
|
50
|
+
flex: (NumberConstructor | StringConstructor)[];
|
51
51
|
}>> & import("vue").HTMLAttributes>;
|
52
52
|
};
|
53
53
|
wrapperCol: {
|
54
54
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
55
|
-
span: (
|
56
|
-
order: (
|
57
|
-
offset: (
|
58
|
-
push: (
|
59
|
-
pull: (
|
55
|
+
span: (NumberConstructor | StringConstructor)[];
|
56
|
+
order: (NumberConstructor | StringConstructor)[];
|
57
|
+
offset: (NumberConstructor | StringConstructor)[];
|
58
|
+
push: (NumberConstructor | StringConstructor)[];
|
59
|
+
pull: (NumberConstructor | StringConstructor)[];
|
60
60
|
xs: {
|
61
61
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
62
62
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -86,7 +86,7 @@ declare const _default: {
|
|
86
86
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
87
87
|
};
|
88
88
|
prefixCls: StringConstructor;
|
89
|
-
flex: (
|
89
|
+
flex: (NumberConstructor | StringConstructor)[];
|
90
90
|
}>> & import("vue").HTMLAttributes>;
|
91
91
|
};
|
92
92
|
colon: {
|
@@ -161,11 +161,11 @@ declare const _default: {
|
|
161
161
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
162
162
|
labelCol: {
|
163
163
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
164
|
-
span: (
|
165
|
-
order: (
|
166
|
-
offset: (
|
167
|
-
push: (
|
168
|
-
pull: (
|
164
|
+
span: (NumberConstructor | StringConstructor)[];
|
165
|
+
order: (NumberConstructor | StringConstructor)[];
|
166
|
+
offset: (NumberConstructor | StringConstructor)[];
|
167
|
+
push: (NumberConstructor | StringConstructor)[];
|
168
|
+
pull: (NumberConstructor | StringConstructor)[];
|
169
169
|
xs: {
|
170
170
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
171
171
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -195,16 +195,16 @@ declare const _default: {
|
|
195
195
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
196
196
|
};
|
197
197
|
prefixCls: StringConstructor;
|
198
|
-
flex: (
|
198
|
+
flex: (NumberConstructor | StringConstructor)[];
|
199
199
|
}>> & import("vue").HTMLAttributes>;
|
200
200
|
};
|
201
201
|
wrapperCol: {
|
202
202
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
203
|
-
span: (
|
204
|
-
order: (
|
205
|
-
offset: (
|
206
|
-
push: (
|
207
|
-
pull: (
|
203
|
+
span: (NumberConstructor | StringConstructor)[];
|
204
|
+
order: (NumberConstructor | StringConstructor)[];
|
205
|
+
offset: (NumberConstructor | StringConstructor)[];
|
206
|
+
push: (NumberConstructor | StringConstructor)[];
|
207
|
+
pull: (NumberConstructor | StringConstructor)[];
|
208
208
|
xs: {
|
209
209
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
210
210
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -234,7 +234,7 @@ declare const _default: {
|
|
234
234
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
235
235
|
};
|
236
236
|
prefixCls: StringConstructor;
|
237
|
-
flex: (
|
237
|
+
flex: (NumberConstructor | StringConstructor)[];
|
238
238
|
}>> & import("vue").HTMLAttributes>;
|
239
239
|
};
|
240
240
|
colon: {
|
@@ -321,11 +321,11 @@ declare const _default: {
|
|
321
321
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
322
322
|
labelCol: {
|
323
323
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
324
|
-
span: (
|
325
|
-
order: (
|
326
|
-
offset: (
|
327
|
-
push: (
|
328
|
-
pull: (
|
324
|
+
span: (NumberConstructor | StringConstructor)[];
|
325
|
+
order: (NumberConstructor | StringConstructor)[];
|
326
|
+
offset: (NumberConstructor | StringConstructor)[];
|
327
|
+
push: (NumberConstructor | StringConstructor)[];
|
328
|
+
pull: (NumberConstructor | StringConstructor)[];
|
329
329
|
xs: {
|
330
330
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
331
331
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -355,16 +355,16 @@ declare const _default: {
|
|
355
355
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
356
356
|
};
|
357
357
|
prefixCls: StringConstructor;
|
358
|
-
flex: (
|
358
|
+
flex: (NumberConstructor | StringConstructor)[];
|
359
359
|
}>> & import("vue").HTMLAttributes>;
|
360
360
|
};
|
361
361
|
wrapperCol: {
|
362
362
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
363
|
-
span: (
|
364
|
-
order: (
|
365
|
-
offset: (
|
366
|
-
push: (
|
367
|
-
pull: (
|
363
|
+
span: (NumberConstructor | StringConstructor)[];
|
364
|
+
order: (NumberConstructor | StringConstructor)[];
|
365
|
+
offset: (NumberConstructor | StringConstructor)[];
|
366
|
+
push: (NumberConstructor | StringConstructor)[];
|
367
|
+
pull: (NumberConstructor | StringConstructor)[];
|
368
368
|
xs: {
|
369
369
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
370
370
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -394,7 +394,7 @@ declare const _default: {
|
|
394
394
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
395
395
|
};
|
396
396
|
prefixCls: StringConstructor;
|
397
|
-
flex: (
|
397
|
+
flex: (NumberConstructor | StringConstructor)[];
|
398
398
|
}>> & import("vue").HTMLAttributes>;
|
399
399
|
};
|
400
400
|
colon: {
|
@@ -459,11 +459,11 @@ declare const _default: {
|
|
459
459
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
460
460
|
labelCol: {
|
461
461
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
462
|
-
span: (
|
463
|
-
order: (
|
464
|
-
offset: (
|
465
|
-
push: (
|
466
|
-
pull: (
|
462
|
+
span: (NumberConstructor | StringConstructor)[];
|
463
|
+
order: (NumberConstructor | StringConstructor)[];
|
464
|
+
offset: (NumberConstructor | StringConstructor)[];
|
465
|
+
push: (NumberConstructor | StringConstructor)[];
|
466
|
+
pull: (NumberConstructor | StringConstructor)[];
|
467
467
|
xs: {
|
468
468
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
469
469
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -493,16 +493,16 @@ declare const _default: {
|
|
493
493
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
494
494
|
};
|
495
495
|
prefixCls: StringConstructor;
|
496
|
-
flex: (
|
496
|
+
flex: (NumberConstructor | StringConstructor)[];
|
497
497
|
}>> & import("vue").HTMLAttributes>;
|
498
498
|
};
|
499
499
|
wrapperCol: {
|
500
500
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
501
|
-
span: (
|
502
|
-
order: (
|
503
|
-
offset: (
|
504
|
-
push: (
|
505
|
-
pull: (
|
501
|
+
span: (NumberConstructor | StringConstructor)[];
|
502
|
+
order: (NumberConstructor | StringConstructor)[];
|
503
|
+
offset: (NumberConstructor | StringConstructor)[];
|
504
|
+
push: (NumberConstructor | StringConstructor)[];
|
505
|
+
pull: (NumberConstructor | StringConstructor)[];
|
506
506
|
xs: {
|
507
507
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
508
508
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -532,7 +532,7 @@ declare const _default: {
|
|
532
532
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
533
533
|
};
|
534
534
|
prefixCls: StringConstructor;
|
535
|
-
flex: (
|
535
|
+
flex: (NumberConstructor | StringConstructor)[];
|
536
536
|
}>> & import("vue").HTMLAttributes>;
|
537
537
|
};
|
538
538
|
colon: {
|
@@ -4,11 +4,11 @@ export declare const getProps: () => {
|
|
4
4
|
layout: import("vue").PropType<"horizontal" | "inline" | "vertical">;
|
5
5
|
labelCol: {
|
6
6
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
7
|
-
span: (
|
8
|
-
order: (
|
9
|
-
offset: (
|
10
|
-
push: (
|
11
|
-
pull: (
|
7
|
+
span: (NumberConstructor | StringConstructor)[];
|
8
|
+
order: (NumberConstructor | StringConstructor)[];
|
9
|
+
offset: (NumberConstructor | StringConstructor)[];
|
10
|
+
push: (NumberConstructor | StringConstructor)[];
|
11
|
+
pull: (NumberConstructor | StringConstructor)[];
|
12
12
|
xs: {
|
13
13
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
14
14
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -38,16 +38,16 @@ export declare const getProps: () => {
|
|
38
38
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
39
39
|
};
|
40
40
|
prefixCls: StringConstructor;
|
41
|
-
flex: (
|
41
|
+
flex: (NumberConstructor | StringConstructor)[];
|
42
42
|
}>> & import("vue").HTMLAttributes>;
|
43
43
|
};
|
44
44
|
wrapperCol: {
|
45
45
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
46
|
-
span: (
|
47
|
-
order: (
|
48
|
-
offset: (
|
49
|
-
push: (
|
50
|
-
pull: (
|
46
|
+
span: (NumberConstructor | StringConstructor)[];
|
47
|
+
order: (NumberConstructor | StringConstructor)[];
|
48
|
+
offset: (NumberConstructor | StringConstructor)[];
|
49
|
+
push: (NumberConstructor | StringConstructor)[];
|
50
|
+
pull: (NumberConstructor | StringConstructor)[];
|
51
51
|
xs: {
|
52
52
|
type: import("vue").PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
53
53
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -77,7 +77,7 @@ export declare const getProps: () => {
|
|
77
77
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
78
78
|
};
|
79
79
|
prefixCls: StringConstructor;
|
80
|
-
flex: (
|
80
|
+
flex: (NumberConstructor | StringConstructor)[];
|
81
81
|
}>> & import("vue").HTMLAttributes>;
|
82
82
|
};
|
83
83
|
colon: {
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
type: BooleanConstructor;
|
41
41
|
default: undefined;
|
42
42
|
};
|
43
|
-
width: (
|
43
|
+
width: (NumberConstructor | StringConstructor)[];
|
44
44
|
footer: import("vue").PropType<any>;
|
45
45
|
okText: import("vue").PropType<any>;
|
46
46
|
okType: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
@@ -227,7 +227,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
227
227
|
type: BooleanConstructor;
|
228
228
|
default: undefined;
|
229
229
|
};
|
230
|
-
width: (
|
230
|
+
width: (NumberConstructor | StringConstructor)[];
|
231
231
|
footer: import("vue").PropType<any>;
|
232
232
|
okText: import("vue").PropType<any>;
|
233
233
|
okType: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
@@ -374,10 +374,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
374
374
|
originVNode: import("ant-design-vue/es/_util/type").VueNode;
|
375
375
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
376
376
|
}>>, {
|
377
|
-
kgShowFullscreenButton: boolean;
|
378
|
-
kgShowCancelButton: boolean;
|
379
|
-
kgShowOkButton: boolean;
|
380
|
-
kgFullHeight: boolean;
|
381
377
|
visible: boolean;
|
382
378
|
confirmLoading: boolean;
|
383
379
|
closable: boolean;
|
@@ -391,5 +387,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
391
387
|
mask: boolean;
|
392
388
|
keyboard: boolean;
|
393
389
|
focusTriggerAfterClose: boolean;
|
390
|
+
kgShowFullscreenButton: boolean;
|
391
|
+
kgShowCancelButton: boolean;
|
392
|
+
kgShowOkButton: boolean;
|
393
|
+
kgFullHeight: boolean;
|
394
394
|
}>;
|
395
395
|
export default _default;
|
@@ -44,7 +44,7 @@ export declare const getProps: () => {
|
|
44
44
|
type: BooleanConstructor;
|
45
45
|
default: undefined;
|
46
46
|
};
|
47
|
-
width: (
|
47
|
+
width: (NumberConstructor | StringConstructor)[];
|
48
48
|
footer: PropType<any>;
|
49
49
|
okText: PropType<any>;
|
50
50
|
okType: PropType<import("ant-design-vue/es/button/buttonTypes").LegacyButtonType>;
|
@@ -3,7 +3,7 @@ import './KgResizable.less';
|
|
3
3
|
export declare const getProps: () => {
|
4
4
|
/** 拖拽条的位置. */
|
5
5
|
kgType: {
|
6
|
-
type: PropType<"
|
6
|
+
type: PropType<"top" | "left" | "right" | "bottom">;
|
7
7
|
default: string;
|
8
8
|
};
|
9
9
|
/** 是否禁用. */
|
@@ -47,7 +47,7 @@ export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<type
|
|
47
47
|
declare const _default: import("vue").DefineComponent<{
|
48
48
|
/** 拖拽条的位置. */
|
49
49
|
kgType: {
|
50
|
-
type: PropType<"
|
50
|
+
type: PropType<"top" | "left" | "right" | "bottom">;
|
51
51
|
default: string;
|
52
52
|
};
|
53
53
|
/** 是否禁用. */
|
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
89
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
90
90
|
/** 拖拽条的位置. */
|
91
91
|
kgType: {
|
92
|
-
type: PropType<"
|
92
|
+
type: PropType<"top" | "left" | "right" | "bottom">;
|
93
93
|
default: string;
|
94
94
|
};
|
95
95
|
/** 是否禁用. */
|
@@ -132,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
132
132
|
"onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
|
133
133
|
"onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
|
134
134
|
}, {
|
135
|
-
kgType: "
|
135
|
+
kgType: "top" | "left" | "right" | "bottom";
|
136
136
|
kgWidth: number;
|
137
137
|
kgMinWidth: number;
|
138
138
|
kgMaxWidth: number;
|
@@ -1,8 +1,19 @@
|
|
1
1
|
import { Pinia, StoreDefinition } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
|
-
import { IKgLocale } from '../consts';
|
4
|
+
import { IKgLocale, KG_APP } from '../consts';
|
5
5
|
export declare type IKgStateOption = {
|
6
|
+
/** 模块首页. */
|
7
|
+
appIndex?: {
|
8
|
+
/** 默认为 '/wms/data-manager/index'. */
|
9
|
+
[KG_APP.WMS_DATA_MANAGER]?: string;
|
10
|
+
/** 默认为 '/wms/business-manager/index'. */
|
11
|
+
[KG_APP.WMS_BUSINESS_MANAGER]?: string;
|
12
|
+
/** 默认为 '/wcs/index'. */
|
13
|
+
[KG_APP.WCS]?: string;
|
14
|
+
/** 默认为 '/sys/index'. */
|
15
|
+
[KG_APP.SYS]?: string;
|
16
|
+
};
|
6
17
|
/** 仓库选择. */
|
7
18
|
KgWarehouse?: {
|
8
19
|
/** 是否启用. */
|
@@ -15,14 +15,14 @@ export declare function pinia(): Pinia | null;
|
|
15
15
|
export declare type IKgOptions = {
|
16
16
|
app: App;
|
17
17
|
pinia: Pinia;
|
18
|
-
/**
|
18
|
+
/** 当前语言. */
|
19
19
|
locale: ComputedRef<IKgLocale>;
|
20
20
|
/**
|
21
21
|
* import { createI18n } from 'vue-i18n';
|
22
22
|
* ReturnType<typeof createI18n>
|
23
23
|
*/
|
24
24
|
i18n: any;
|
25
|
-
/**
|
25
|
+
/** 权限方法, 用来判断是否具有某个(某些)权限. */
|
26
26
|
pFunction: P;
|
27
27
|
router: Router;
|
28
28
|
/** 配置参数. */
|
@@ -3,16 +3,18 @@ export * from './index.vm';
|
|
3
3
|
export * from './injection-keys.const';
|
4
4
|
/** 模块. */
|
5
5
|
export declare const enum KG_APP {
|
6
|
-
|
7
|
-
|
6
|
+
WMS_DATA_MANAGER = "data-manager",
|
7
|
+
WMS_BUSINESS_MANAGER = "business-manager",
|
8
|
+
WCS = "wcs",
|
8
9
|
SYS = "sys"
|
9
10
|
}
|
10
11
|
/** 所有模块. */
|
11
12
|
export declare const KG_APPS: Array<KG_APP>;
|
12
13
|
/** 模块路径前缀. */
|
13
14
|
export declare const enum KG_APP_PREFIX {
|
14
|
-
|
15
|
-
|
15
|
+
WMS_DATA_MANAGER = "/wms/data-manager",
|
16
|
+
WMS_BUSINESS_MANAGER = "/wms/business-manager",
|
17
|
+
WCS = "/wcs",
|
16
18
|
SYS = "/sys"
|
17
19
|
}
|
18
20
|
/** 所有模块路径前缀. */
|