@kengic/vue 0.26.5-beta.1 → 0.26.5-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +23469 -15741
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
- package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +72 -0
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
- package/dist/src/components/KgCanvas/index.d.ts +2 -0
- package/dist/src/components/KgCanvas/index.hooks.d.ts +13 -0
- package/dist/src/components/KgCanvas/index.store.d.ts +53 -0
- package/dist/src/components/KgStation/index.hooks.d.ts +2 -1
- package/dist/src/components/KgStation/index.store.d.ts +1 -14
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/config/index.store.d.ts +5 -5
- package/dist/src/services/http-client.d.ts +54 -19
- package/package.json +4 -6
@@ -20,6 +20,8 @@ export declare class ListQuery {
|
|
20
20
|
moddte?: string | null;
|
21
21
|
/** 短描述(ShortDescription). */
|
22
22
|
shortDsc?: string | null;
|
23
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
24
|
+
shortDscWithCodval?: string | null;
|
23
25
|
/** 顺序号(Sequence). */
|
24
26
|
srtseq?: number | null;
|
25
27
|
/** 系统定义. */
|
@@ -42,7 +44,7 @@ export declare class ListQuery {
|
|
42
44
|
* @param config 请求配置.
|
43
45
|
* @param option 请求选项.
|
44
46
|
*/
|
45
|
-
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.
|
47
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.DescriptionDTO>>;
|
46
48
|
export declare namespace List {
|
47
49
|
var method: "GET";
|
48
50
|
var url: string;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ListQuery {
|
5
|
+
/** 排序字段. */
|
6
|
+
column?: string | null;
|
7
|
+
/** 排序方式. */
|
8
|
+
order?: 'asc' | 'desc' | null;
|
9
|
+
/** 当前页数. */
|
10
|
+
pageNo?: number | null;
|
11
|
+
/** 每页条数. */
|
12
|
+
pageSize?: number | null;
|
13
|
+
constructor(obj?: ListQuery);
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* 工作站-分页列表查询
|
17
|
+
*
|
18
|
+
* @param config 请求配置.
|
19
|
+
* @param option 请求选项.
|
20
|
+
*/
|
21
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>>;
|
22
|
+
export declare namespace List {
|
23
|
+
var method: "GET";
|
24
|
+
var url: string;
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { List, ListQuery } from './List';
|
@@ -8,3 +8,4 @@ export * as VarGridMasterController from './VarGridMasterController';
|
|
8
8
|
export * as VarProfileMasterController from './VarProfileMasterController';
|
9
9
|
export * as VarVariableController from './VarVariableController';
|
10
10
|
export * as WhController from './WhController';
|
11
|
+
export * as WorkstationController from './WorkstationController';
|
@@ -104,6 +104,36 @@ export declare class DescriptionBatchQuery {
|
|
104
104
|
codeValues?: Array<string> | null;
|
105
105
|
constructor(obj?: DescriptionBatchQuery);
|
106
106
|
}
|
107
|
+
/** 描述数据传输对象(DescriptionDTO). */
|
108
|
+
export declare class DescriptionDTO {
|
109
|
+
/** 列名(CodeName). */
|
110
|
+
codnam?: string | null;
|
111
|
+
/** 列值(CodeValue). */
|
112
|
+
codval?: string | null;
|
113
|
+
/** 模块(ProjectName). */
|
114
|
+
grpNam?: string | null;
|
115
|
+
/** id */
|
116
|
+
id?: string | null;
|
117
|
+
/** 长描述(LongDescription). */
|
118
|
+
lngDsc?: string | null;
|
119
|
+
/** 语言(LocaleId). */
|
120
|
+
localeId?: string | null;
|
121
|
+
/** 修改用户编号 */
|
122
|
+
modUsrCod?: string | null;
|
123
|
+
/** 修改日期 */
|
124
|
+
moddte?: string | null;
|
125
|
+
/** 短描述(ShortDescription). */
|
126
|
+
shortDsc?: string | null;
|
127
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
128
|
+
shortDscWithCodval?: string | null;
|
129
|
+
/** 顺序号(Sequence). */
|
130
|
+
srtseq?: number | null;
|
131
|
+
/** 系统定义. */
|
132
|
+
sysDefFlg?: number | null;
|
133
|
+
/** 版本 */
|
134
|
+
version?: number | null;
|
135
|
+
constructor(obj?: DescriptionDTO);
|
136
|
+
}
|
107
137
|
/** 获取 SQL 查询结果的元数据. */
|
108
138
|
export declare class GetResultSetMetadataFromSqlQuery {
|
109
139
|
/** SQL. */
|
@@ -933,6 +963,48 @@ export declare class WhDTO {
|
|
933
963
|
whId?: string | null;
|
934
964
|
constructor(obj?: WhDTO);
|
935
965
|
}
|
966
|
+
/** 工作站区域数据传输对象 */
|
967
|
+
export declare class WorkstationAreaDTO {
|
968
|
+
/** 主键 */
|
969
|
+
id?: string | null;
|
970
|
+
/** 创建日期 */
|
971
|
+
insDt?: string | null;
|
972
|
+
/** 创建用户 */
|
973
|
+
insUsrId?: string | null;
|
974
|
+
/** 修改日期 */
|
975
|
+
modUsrId?: string | null;
|
976
|
+
/** 修改用户 */
|
977
|
+
moddte?: string | null;
|
978
|
+
/** 仓库 */
|
979
|
+
whId?: string | null;
|
980
|
+
/** 工作区 */
|
981
|
+
wrkare?: string | null;
|
982
|
+
/** 工作区描述 */
|
983
|
+
wrkareDsc?: string | null;
|
984
|
+
constructor(obj?: WorkstationAreaDTO);
|
985
|
+
}
|
986
|
+
/** 工作站数据传输对象 */
|
987
|
+
export declare class WorkstationDTO {
|
988
|
+
/** 工作站 */
|
989
|
+
devcod?: string | null;
|
990
|
+
/** 主工作区 */
|
991
|
+
hmewrkare?: string | null;
|
992
|
+
/** 主键 */
|
993
|
+
id?: string | null;
|
994
|
+
/** 创建日期 */
|
995
|
+
insDt?: string | null;
|
996
|
+
/** 创建用户 */
|
997
|
+
insUsrId?: string | null;
|
998
|
+
/** 修改日期 */
|
999
|
+
modUsrId?: string | null;
|
1000
|
+
/** 修改用户 */
|
1001
|
+
moddte?: string | null;
|
1002
|
+
/** 仓库 */
|
1003
|
+
whId?: string | null;
|
1004
|
+
/** 工作站与工作区域关系 */
|
1005
|
+
workstationAreas?: Array<WorkstationAreaDTO> | null;
|
1006
|
+
constructor(obj?: WorkstationDTO);
|
1007
|
+
}
|
936
1008
|
/**
|
937
1009
|
* 获取对象的属性名数组.
|
938
1010
|
* @param obj 对象.
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgCanvas.css';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 是否启用网格背景.
|
6
|
+
*
|
7
|
+
* @default false
|
8
|
+
*/
|
9
|
+
kgIsGridBackground: {
|
10
|
+
type: PropType<boolean>;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
/**
|
14
|
+
* 是否启用预览面板.
|
15
|
+
*
|
16
|
+
* @default false
|
17
|
+
*/
|
18
|
+
kgIsEnableOverview: {
|
19
|
+
type: PropType<boolean>;
|
20
|
+
default: boolean;
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* 是否可以编辑.
|
24
|
+
*
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
kgIsEditable: {
|
28
|
+
type: PropType<boolean>;
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
/**
|
32
|
+
* 是否支持拖动大小.
|
33
|
+
*
|
34
|
+
* @default false
|
35
|
+
*/
|
36
|
+
kgIsResizable: {
|
37
|
+
type: PropType<boolean>;
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
export declare type KgCanvasProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
42
|
+
declare const _default: import("vue").DefineComponent<{
|
43
|
+
/**
|
44
|
+
* 是否启用网格背景.
|
45
|
+
*
|
46
|
+
* @default false
|
47
|
+
*/
|
48
|
+
kgIsGridBackground: {
|
49
|
+
type: PropType<boolean>;
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* 是否启用预览面板.
|
54
|
+
*
|
55
|
+
* @default false
|
56
|
+
*/
|
57
|
+
kgIsEnableOverview: {
|
58
|
+
type: PropType<boolean>;
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
/**
|
62
|
+
* 是否可以编辑.
|
63
|
+
*
|
64
|
+
* @default false
|
65
|
+
*/
|
66
|
+
kgIsEditable: {
|
67
|
+
type: PropType<boolean>;
|
68
|
+
default: boolean;
|
69
|
+
};
|
70
|
+
/**
|
71
|
+
* 是否支持拖动大小.
|
72
|
+
*
|
73
|
+
* @default false
|
74
|
+
*/
|
75
|
+
kgIsResizable: {
|
76
|
+
type: PropType<boolean>;
|
77
|
+
default: boolean;
|
78
|
+
};
|
79
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
80
|
+
/**
|
81
|
+
* 是否启用网格背景.
|
82
|
+
*
|
83
|
+
* @default false
|
84
|
+
*/
|
85
|
+
kgIsGridBackground: {
|
86
|
+
type: PropType<boolean>;
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
/**
|
90
|
+
* 是否启用预览面板.
|
91
|
+
*
|
92
|
+
* @default false
|
93
|
+
*/
|
94
|
+
kgIsEnableOverview: {
|
95
|
+
type: PropType<boolean>;
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
/**
|
99
|
+
* 是否可以编辑.
|
100
|
+
*
|
101
|
+
* @default false
|
102
|
+
*/
|
103
|
+
kgIsEditable: {
|
104
|
+
type: PropType<boolean>;
|
105
|
+
default: boolean;
|
106
|
+
};
|
107
|
+
/**
|
108
|
+
* 是否支持拖动大小.
|
109
|
+
*
|
110
|
+
* @default false
|
111
|
+
*/
|
112
|
+
kgIsResizable: {
|
113
|
+
type: PropType<boolean>;
|
114
|
+
default: boolean;
|
115
|
+
};
|
116
|
+
}>>, {
|
117
|
+
kgIsGridBackground: boolean;
|
118
|
+
kgIsEnableOverview: boolean;
|
119
|
+
kgIsEditable: boolean;
|
120
|
+
kgIsResizable: boolean;
|
121
|
+
}>;
|
122
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
|
+
import { IKgCanvasOnInitEventListener, IKgCanvasStore } from './index.store';
|
3
|
+
export declare type IUseKgCanvas = {
|
4
|
+
/**
|
5
|
+
* 监听事件: 初始完成.
|
6
|
+
* @param listener 事件监听函数.
|
7
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
8
|
+
*/
|
9
|
+
onInit(listener: IKgCanvasOnInitEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
10
|
+
/** 状态数据. */
|
11
|
+
store: IKgCanvasStore;
|
12
|
+
};
|
13
|
+
export declare function useKgCanvas(): IUseKgCanvas;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
2
|
+
import { StoreDefinition } from 'pinia';
|
3
|
+
import { IKgEventListener } from '../../consts';
|
4
|
+
/**
|
5
|
+
* 事件类型.
|
6
|
+
* 'onInit': 初始完成
|
7
|
+
*/
|
8
|
+
export declare type IKgCanvasEvent = 'onInit';
|
9
|
+
export declare type IKgCanvasOnInitEventListenerParameter = {
|
10
|
+
/**
|
11
|
+
* Q.
|
12
|
+
*/
|
13
|
+
Q: typeof Q;
|
14
|
+
/**
|
15
|
+
* 图形组件元素标识.
|
16
|
+
*/
|
17
|
+
eid: string;
|
18
|
+
/**
|
19
|
+
* 图形组件.
|
20
|
+
*/
|
21
|
+
graph: Q.Graph;
|
22
|
+
};
|
23
|
+
export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
24
|
+
export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter;
|
25
|
+
export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener;
|
26
|
+
export interface IUseKgCanvasStoreState {
|
27
|
+
onInitEventListenerMap: Map<string, Array<IKgCanvasOnInitEventListener>>;
|
28
|
+
}
|
29
|
+
export interface IUseKgCanvasStoreGetters {
|
30
|
+
}
|
31
|
+
export interface IUseKgCanvasStoreActions {
|
32
|
+
/**
|
33
|
+
* 注册事件监听.
|
34
|
+
* @param event 事件名称.
|
35
|
+
* @param listener 事件监听函数.
|
36
|
+
*/
|
37
|
+
addEventListener(event: IKgCanvasEvent, listener: IKgCanvasEventListener): void;
|
38
|
+
/**
|
39
|
+
* 触发事件.
|
40
|
+
* @param event 事件名称.
|
41
|
+
* @param param 参数.
|
42
|
+
*/
|
43
|
+
emit<T = IKgCanvasEventListenerParameter>(event: IKgCanvasEvent, param?: T | null): Promise<boolean>;
|
44
|
+
/**
|
45
|
+
* 退订事件监听.
|
46
|
+
* @param event 事件名称.
|
47
|
+
* @param listener 事件监听函数.
|
48
|
+
*/
|
49
|
+
removeEventListener(event: IKgCanvasEvent, listener?: IKgCanvasEventListener): void;
|
50
|
+
}
|
51
|
+
export declare type IUseKgCanvasStore = StoreDefinition<'KgCanvas', IUseKgCanvasStoreState, IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
|
52
|
+
export declare type IKgCanvasStore = ReturnType<IUseKgCanvasStore>;
|
53
|
+
export declare const useKgCanvasStore: IUseKgCanvasStore;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Pinia } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
-
import {
|
3
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../apis/WMS/models';
|
4
|
+
import { IKgStationStore } from './index.store';
|
4
5
|
export declare type IUseKgStation = {
|
5
6
|
/**
|
6
7
|
* 当前工作区.
|
@@ -1,18 +1,5 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
|
3
|
-
id?: string;
|
4
|
-
whId?: string;
|
5
|
-
devcod?: string;
|
6
|
-
devcodDsc?: string;
|
7
|
-
hmewrkare?: string;
|
8
|
-
workstationAreas?: Array<WorkstationAreaDTO>;
|
9
|
-
};
|
10
|
-
export declare type WorkstationAreaDTO = {
|
11
|
-
id?: string;
|
12
|
-
whId?: string;
|
13
|
-
wrkare?: string;
|
14
|
-
wrkareDsc?: string;
|
15
|
-
};
|
2
|
+
import { WorkstationDTO } from '../../apis/WMS/models';
|
16
3
|
export interface IUseKgStationStoreState {
|
17
4
|
/**
|
18
5
|
* 当前工作站.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './KgAppSelect';
|
2
|
+
export * from './KgCanvas';
|
2
3
|
export * from './KgImage';
|
3
4
|
export * from './KgLayoutHeader';
|
4
5
|
export * from './KgModal';
|
@@ -17,3 +18,4 @@ export { default as KgButton } from './KgButton';
|
|
17
18
|
export * from './KgForm';
|
18
19
|
export { default as KgForm } from './KgForm';
|
19
20
|
export * from './KgForm.Item';
|
21
|
+
export { Q } from '@thymine/xunee';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
|
-
import {
|
4
|
+
import { DescriptionDTO, SysUserWarehouseDTO } from '../apis/WMS/models';
|
5
5
|
import { KG_APP, Menu } from '../consts';
|
6
6
|
import { LocaleType } from '../project/types/config';
|
7
7
|
import { UserInfo } from '../project/types/store';
|
@@ -213,7 +213,7 @@ export interface IUseKgStoreState {
|
|
213
213
|
* <p>系统描述.</p>
|
214
214
|
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
215
215
|
*/
|
216
|
-
descriptionMap: Map<string, Map<string,
|
216
|
+
descriptionMap: Map<string, Map<string, DescriptionDTO>>;
|
217
217
|
i18n: any;
|
218
218
|
/**
|
219
219
|
* <p>某个系统描述是否正在查询.</p>
|
@@ -241,13 +241,13 @@ export interface IUseKgStoreGetters {
|
|
241
241
|
getDescription(): (param: {
|
242
242
|
codeName: string | null | undefined;
|
243
243
|
codeValue: string | null | undefined;
|
244
|
-
}) =>
|
244
|
+
}) => DescriptionDTO | null;
|
245
245
|
/**
|
246
246
|
* 根据 codeName 获取当前语言下的它的所有描述.
|
247
247
|
*/
|
248
248
|
getDescriptions(): (param: {
|
249
249
|
codeName: string | null | undefined;
|
250
|
-
}) => Array<
|
250
|
+
}) => Array<DescriptionDTO>;
|
251
251
|
getI18N(): Record<string, any>;
|
252
252
|
getI18n(): any;
|
253
253
|
/**
|
@@ -296,7 +296,7 @@ export interface IUseKgStoreActions {
|
|
296
296
|
*/
|
297
297
|
setDescriptions(param: {
|
298
298
|
codeName: string | null | undefined;
|
299
|
-
descriptions: Array<
|
299
|
+
descriptions: Array<DescriptionDTO>;
|
300
300
|
}): void;
|
301
301
|
setI18N(I18N: Record<string, any>): void;
|
302
302
|
setI18n(i18n: any): void;
|
@@ -22,26 +22,14 @@ interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
|
|
22
22
|
params?: P;
|
23
23
|
}
|
24
24
|
interface IRequestOptions {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
isReturnNativeResponse?: boolean;
|
29
|
-
joinPrefix?: boolean;
|
25
|
+
/**
|
26
|
+
* 接口地址,如果保留为空,则使用默认值
|
27
|
+
*/
|
30
28
|
apiUrl?: string;
|
31
|
-
urlPrefix?: string;
|
32
|
-
errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
|
33
|
-
successMessageMode?: 'none' | 'success' | 'error' | undefined;
|
34
|
-
joinTime?: boolean;
|
35
|
-
ignoreCancelToken?: boolean;
|
36
|
-
withToken?: boolean;
|
37
|
-
/** 是否使用模拟数据. */
|
38
|
-
mock?: boolean;
|
39
29
|
/**
|
40
|
-
*
|
41
|
-
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
42
|
-
* <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
30
|
+
* dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
|
43
31
|
*/
|
44
|
-
|
32
|
+
dayjs?: typeof dayjs;
|
45
33
|
/**
|
46
34
|
* <p>高级查询时, 对应的界面标识.</p>
|
47
35
|
*/
|
@@ -51,8 +39,55 @@ interface IRequestOptions {
|
|
51
39
|
*/
|
52
40
|
dynamicQueryKgSearchFormID?: string;
|
53
41
|
/**
|
54
|
-
*
|
42
|
+
* <p>高级查询时, 各个请求参数的高级查询操作符.</p>
|
43
|
+
* <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
|
44
|
+
* <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
|
55
45
|
*/
|
56
|
-
|
46
|
+
dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
|
47
|
+
/**
|
48
|
+
* 错误消息提示类型
|
49
|
+
*/
|
50
|
+
errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
|
51
|
+
/**
|
52
|
+
* 格式化请求参数时间
|
53
|
+
*/
|
54
|
+
formatDate?: boolean;
|
55
|
+
ignoreCancelToken?: boolean;
|
56
|
+
/**
|
57
|
+
* 是否返回本地响应头,需要获取响应头时使用此属性
|
58
|
+
*/
|
59
|
+
isReturnNativeResponse?: boolean;
|
60
|
+
/**
|
61
|
+
* 是否处理请求结果
|
62
|
+
*/
|
63
|
+
isTransformResponse?: boolean;
|
64
|
+
/**
|
65
|
+
* 将请求参数拼接到url
|
66
|
+
*/
|
67
|
+
joinParamsToUrl?: boolean;
|
68
|
+
/**
|
69
|
+
* Whether to join url
|
70
|
+
*/
|
71
|
+
joinPrefix?: boolean;
|
72
|
+
/**
|
73
|
+
* 是否添加时间戳
|
74
|
+
*/
|
75
|
+
joinTime?: boolean;
|
76
|
+
/**
|
77
|
+
* <p>模拟数据. 如果不为 undefined 则不会发起请求, 而是直接返回该模拟数据.</p>
|
78
|
+
*/
|
79
|
+
mock?: any;
|
80
|
+
/**
|
81
|
+
* 成功消息提示类型
|
82
|
+
*/
|
83
|
+
successMessageMode?: 'none' | 'success' | 'error' | undefined;
|
84
|
+
/**
|
85
|
+
* 请求拼接路径
|
86
|
+
*/
|
87
|
+
urlPrefix?: string;
|
88
|
+
/**
|
89
|
+
* 是否在标头中发送令牌
|
90
|
+
*/
|
91
|
+
withToken?: boolean;
|
57
92
|
}
|
58
93
|
export { setupHttpClient, kgSetupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.26.5-beta.
|
3
|
+
"version": "0.26.5-beta.3",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -24,11 +24,8 @@
|
|
24
24
|
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
|
25
25
|
"------- ------------------------------------------": "",
|
26
26
|
"copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
27
|
-
"copy-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts",
|
28
|
-
"copy-to:luotao:smartfactory.tyre.haohua.gantry.was-java--main": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts",
|
29
27
|
"--- ----------------------------------------------": "",
|
30
|
-
"bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
|
31
|
-
"bump-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts"
|
28
|
+
"bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
|
32
29
|
},
|
33
30
|
"peerDependencies": {
|
34
31
|
"vue": "3.2.43"
|
@@ -43,8 +40,9 @@
|
|
43
40
|
"@iconify-icons/mdi": "1.2.48",
|
44
41
|
"@iconify-icons/ph": "1.2.5",
|
45
42
|
"@iconify/vue": "4.1.1",
|
46
|
-
"@kengic/pont": "1.2.
|
43
|
+
"@kengic/pont": "1.2.15",
|
47
44
|
"@rys-fe/vite-plugin-theme": "0.8.6",
|
45
|
+
"@thymine/xunee": "0.4.9-beta.0",
|
48
46
|
"@types/crypto-js": "4.1.1",
|
49
47
|
"@types/fs-extra": "9.0.13",
|
50
48
|
"@types/inquirer": "8.2.5",
|