@kengic/vue 0.26.5-beta.1 → 0.26.5-beta.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/fit-screen-outline.7341560f.mjs +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +22467 -14452
  4. package/dist/one-to-one-outlined.4f97e62a.mjs +8 -0
  5. package/dist/reload-outlined.abae07b1.mjs +8 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
  7. package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  8. package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  9. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  10. package/dist/src/apis/WMS/models.d.ts +72 -0
  11. package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
  12. package/dist/src/components/KgButton/index.store.d.ts +2 -2
  13. package/dist/src/components/KgCanvas/KgCanvas.ContextMenu.d.ts +104 -0
  14. package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
  15. package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +35 -0
  16. package/dist/src/components/KgCanvas/index.d.ts +4 -0
  17. package/dist/src/components/KgCanvas/index.hooks.d.ts +49 -0
  18. package/dist/src/components/KgCanvas/index.store.d.ts +201 -0
  19. package/dist/src/components/KgForm/index.store.d.ts +2 -2
  20. package/dist/src/components/KgSearch/index.store.d.ts +2 -2
  21. package/dist/src/components/KgStation/index.hooks.d.ts +2 -1
  22. package/dist/src/components/KgStation/index.store.d.ts +1 -14
  23. package/dist/src/components/KgSubmit/index.store.d.ts +2 -2
  24. package/dist/src/components/KgTable/index.store.d.ts +2 -2
  25. package/dist/src/components/KgVar/index.store.d.ts +2 -2
  26. package/dist/src/components/KgWarehouse/index.store.d.ts +2 -2
  27. package/dist/src/components/index.d.ts +2 -0
  28. package/dist/src/config/index.store.d.ts +5 -5
  29. package/dist/src/services/http-client.d.ts +54 -19
  30. package/package.json +5 -7
@@ -0,0 +1,201 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { StoreDefinition } from 'pinia';
3
+ import { Ref } from 'vue';
4
+ import { IKgEventListener } from '../../consts';
5
+ import { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
6
+ /**
7
+ * 事件类型.
8
+ * 'onInit': 图形组件初始完成
9
+ * 'onReload': 重新加载
10
+ * 'onMouseMove': 鼠标移动
11
+ * 'onMouseEnter': 鼠标进入
12
+ * 'onMouseLeave': 鼠标离开
13
+ * 'onClick': 单击鼠标左键
14
+ * 'onRightClick': 单击鼠标右键
15
+ */
16
+ export declare type IKgCanvasEvent = 'onInit' | 'onReload' | 'onMouseMove' | 'onMouseEnter' | 'onMouseLeave' | 'onClick' | 'onRightClick';
17
+ export declare type IKgCanvasOnInitEventListenerParameter = {
18
+ /**
19
+ * Q.
20
+ */
21
+ Q: typeof Q;
22
+ /**
23
+ * 图形组件对象.
24
+ */
25
+ graph: Q.Graph;
26
+ eid: string;
27
+ };
28
+ export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
29
+ export declare type IKgCanvasOnRightClickEventListenerParameter = {
30
+ /**
31
+ * Q.
32
+ */
33
+ Q: typeof Q;
34
+ /**
35
+ * <p>右键菜单列表.</p>
36
+ * <p>用户可以直接修改该参数的值, 从而修改此次单击右键事件弹出的右键菜单.</p>
37
+ */
38
+ contextMenus: Ref<Array<IKgCanvasContextMenu>>;
39
+ eid: string;
40
+ /**
41
+ * 图元.
42
+ */
43
+ element?: Q.Element;
44
+ /**
45
+ * 图元组件.
46
+ */
47
+ elementUI?: Q.ElementUI;
48
+ /**
49
+ * 图形组件对象.
50
+ */
51
+ graph: Q.Graph;
52
+ /**
53
+ * 图元组件.
54
+ */
55
+ ui?: Q.BaseUI;
56
+ };
57
+ export declare type IKgCanvasOnRightClickEventListener = ((param: IKgCanvasOnRightClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
58
+ export declare type IKgCanvasOnReloadEventListenerParameter = {
59
+ /**
60
+ * Q.
61
+ */
62
+ Q: typeof Q;
63
+ eid: string;
64
+ /**
65
+ * 图形组件对象.
66
+ */
67
+ graph: Q.Graph;
68
+ };
69
+ export declare type IKgCanvasOnReloadEventListener = ((param: IKgCanvasOnReloadEventListenerParameter) => Promise<boolean>) & IKgEventListener;
70
+ export declare type IKgCanvasOnMouseMoveEventListenerParameter = {
71
+ /**
72
+ * Q.
73
+ */
74
+ Q: typeof Q;
75
+ eid: string;
76
+ /**
77
+ * 图元.
78
+ */
79
+ element?: Q.Element;
80
+ /**
81
+ * 图元组件.
82
+ */
83
+ elementUI?: Q.ElementUI;
84
+ /**
85
+ * 图形组件对象.
86
+ */
87
+ graph: Q.Graph;
88
+ /**
89
+ * 图元组件.
90
+ */
91
+ ui?: Q.BaseUI;
92
+ };
93
+ export declare type IKgCanvasOnMouseMoveEventListener = ((param: IKgCanvasOnMouseMoveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
94
+ export declare type IKgCanvasOnMouseLeaveEventListenerParameter = {
95
+ /**
96
+ * Q.
97
+ */
98
+ Q: typeof Q;
99
+ eid: string;
100
+ /**
101
+ * 图元.
102
+ */
103
+ element?: Q.Element;
104
+ /**
105
+ * 图元组件.
106
+ */
107
+ elementUI?: Q.ElementUI;
108
+ /**
109
+ * 图形组件对象.
110
+ */
111
+ graph: Q.Graph;
112
+ /**
113
+ * 图元组件.
114
+ */
115
+ ui?: Q.BaseUI;
116
+ };
117
+ export declare type IKgCanvasOnMouseLeaveEventListener = ((param: IKgCanvasOnMouseLeaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
118
+ export declare type IKgCanvasOnMouseEnterEventListenerParameter = {
119
+ /**
120
+ * Q.
121
+ */
122
+ Q: typeof Q;
123
+ eid: string;
124
+ /**
125
+ * 图元.
126
+ */
127
+ element?: Q.Element;
128
+ /**
129
+ * 图元组件.
130
+ */
131
+ elementUI?: Q.ElementUI;
132
+ /**
133
+ * 图形组件对象.
134
+ */
135
+ graph: Q.Graph;
136
+ /**
137
+ * 图元组件.
138
+ */
139
+ ui?: Q.BaseUI;
140
+ };
141
+ export declare type IKgCanvasOnMouseEnterEventListener = ((param: IKgCanvasOnMouseEnterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
142
+ export declare type IKgCanvasOnClickEventListenerParameter = {
143
+ /**
144
+ * Q.
145
+ */
146
+ Q: typeof Q;
147
+ eid: string;
148
+ /**
149
+ * 图元.
150
+ */
151
+ element?: Q.Element;
152
+ /**
153
+ * 图元组件.
154
+ */
155
+ elementUI?: Q.ElementUI;
156
+ /**
157
+ * 图形组件对象.
158
+ */
159
+ graph: Q.Graph;
160
+ /**
161
+ * 图元组件.
162
+ */
163
+ ui?: Q.BaseUI;
164
+ };
165
+ export declare type IKgCanvasOnClickEventListener = ((param: IKgCanvasOnClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
166
+ export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter | IKgCanvasOnRightClickEventListenerParameter | IKgCanvasOnReloadEventListenerParameter | IKgCanvasOnMouseMoveEventListenerParameter | IKgCanvasOnMouseEnterEventListenerParameter | IKgCanvasOnMouseLeaveEventListenerParameter | IKgCanvasOnClickEventListenerParameter;
167
+ export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgCanvasOnRightClickEventListener | IKgCanvasOnReloadEventListener | IKgCanvasOnMouseMoveEventListener | IKgCanvasOnMouseEnterEventListener | IKgCanvasOnMouseLeaveEventListener | IKgCanvasOnClickEventListener;
168
+ export interface IUseKgCanvasStoreState {
169
+ onClickEventListenerMap: Map<string, Array<IKgCanvasOnClickEventListener>>;
170
+ onInitEventListenerMap: Map<string, Array<IKgCanvasOnInitEventListener>>;
171
+ onMouseEnterEventListenerMap: Map<string, Array<IKgCanvasOnMouseEnterEventListener>>;
172
+ onMouseLeaveEventListenerMap: Map<string, Array<IKgCanvasOnMouseLeaveEventListener>>;
173
+ onMouseMoveEventListenerMap: Map<string, Array<IKgCanvasOnMouseMoveEventListener>>;
174
+ onReloadEventListenerMap: Map<string, Array<IKgCanvasOnReloadEventListener>>;
175
+ onRightClickEventListenerMap: Map<string, Array<IKgCanvasOnRightClickEventListener>>;
176
+ }
177
+ export interface IUseKgCanvasStoreGetters {
178
+ }
179
+ export interface IUseKgCanvasStoreActions {
180
+ /**
181
+ * 注册事件监听.
182
+ * @param event 事件名称.
183
+ * @param listener 事件监听函数.
184
+ */
185
+ addEventListener(event: IKgCanvasEvent, listener: any): void;
186
+ /**
187
+ * 触发事件.
188
+ * @param event 事件名称.
189
+ * @param param 参数.
190
+ */
191
+ emit<T = IKgCanvasEventListenerParameter>(event: IKgCanvasEvent, param?: T | null): Promise<boolean>;
192
+ /**
193
+ * 退订事件监听.
194
+ * @param event 事件名称.
195
+ * @param listener 事件监听函数.
196
+ */
197
+ removeEventListener(event: IKgCanvasEvent, listener?: any): void;
198
+ }
199
+ export declare type IUseKgCanvasStore = StoreDefinition<'KgCanvas', IUseKgCanvasStoreState, IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
200
+ export declare type IKgCanvasStore = ReturnType<IUseKgCanvasStore>;
201
+ export declare const useKgCanvasStore: IUseKgCanvasStore;
@@ -195,7 +195,7 @@ export interface IUseKgFormStoreActions {
195
195
  * @param event 事件名称.
196
196
  * @param listener 事件监听函数.
197
197
  */
198
- addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: IKgFormEventListener): void;
198
+ addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: any): void;
199
199
  /**
200
200
  * 清理数据.
201
201
  * @param formID 页面标识.
@@ -214,7 +214,7 @@ export interface IUseKgFormStoreActions {
214
214
  * @param event 事件名称.
215
215
  * @param listener 事件监听函数.
216
216
  */
217
- removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: IKgFormEventListener): void;
217
+ removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: any): void;
218
218
  }
219
219
  export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
220
220
  export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
@@ -82,7 +82,7 @@ export interface IUseKgSearchStoreActions {
82
82
  * @param event 事件名称.
83
83
  * @param listener 事件监听函数.
84
84
  */
85
- addEventListener(formID: string, event: IKgSearchEvent, listener: IKgSearchEventListener): void;
85
+ addEventListener(formID: string, event: IKgSearchEvent, listener: any): void;
86
86
  /**
87
87
  * 清理数据.
88
88
  * @param formID 页面标识.
@@ -115,7 +115,7 @@ export interface IUseKgSearchStoreActions {
115
115
  * @param event 事件名称.
116
116
  * @param listener 事件监听函数.
117
117
  */
118
- removeEventListener(formID: string, event: IKgSearchEvent, listener?: IKgSearchEventListener): void;
118
+ removeEventListener(formID: string, event: IKgSearchEvent, listener?: any): void;
119
119
  setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
120
120
  /**
121
121
  * 设置表单数据.
@@ -1,6 +1,7 @@
1
1
  import { Pinia } from 'pinia';
2
2
  import { ComputedRef } from 'vue';
3
- import { IKgStationStore, WorkstationDTO, WorkstationAreaDTO } from './index.store';
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
- export declare type WorkstationDTO = {
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
  * 当前工作站.
@@ -159,7 +159,7 @@ export interface IUseKgSubmitStoreActions {
159
159
  * @param event 事件名称.
160
160
  * @param listener 事件监听函数.
161
161
  */
162
- addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
162
+ addEventListener(formID: string, event: IKgSubmitEvent, listener: any): void;
163
163
  /**
164
164
  * 添加一个「提交表单字段」.
165
165
  *
@@ -185,7 +185,7 @@ export interface IUseKgSubmitStoreActions {
185
185
  * @param event 事件名称.
186
186
  * @param listener 事件监听函数.
187
187
  */
188
- removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
188
+ removeEventListener(formID: string, event: IKgSubmitEvent, listener?: any): void;
189
189
  setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
190
190
  setIsLoading(formID: string, value: boolean): void;
191
191
  }
@@ -147,7 +147,7 @@ export interface IUseKgTableStoreActions {
147
147
  * @param event 事件名称.
148
148
  * @param listener 事件监听函数.
149
149
  */
150
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: IKgTableEventListener): void;
150
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: any): void;
151
151
  /**
152
152
  * 清空表格数据.
153
153
  * @param formID 界面标识.
@@ -198,7 +198,7 @@ export interface IUseKgTableStoreActions {
198
198
  * @param event 事件名称.
199
199
  * @param listener 事件监听函数.
200
200
  */
201
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: IKgTableEventListener): void;
201
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: any): void;
202
202
  /**
203
203
  * 设置列表数据.
204
204
  * @param param.frmId 界面标识.
@@ -151,7 +151,7 @@ export interface IUseKgVarStoreActions {
151
151
  * @param event 事件名称.
152
152
  * @param listener 事件监听函数.
153
153
  */
154
- addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: IKgVarEventListener): void;
154
+ addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: any): void;
155
155
  createVarConfigControl(formID: string | null | undefined, varConfigControl: VarConfigControl): void;
156
156
  createVarConfigDescription(formID: string | null | undefined, varConfigDescription: VarConfigDescription): void;
157
157
  createVarConfigPossibility(formID: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
@@ -205,7 +205,7 @@ export interface IUseKgVarStoreActions {
205
205
  * @param event 事件名称.
206
206
  * @param listener 事件监听函数.
207
207
  */
208
- removeEventListener(formID: string, event: IKgVarEvent, listener?: IKgVarEventListener): void;
208
+ removeEventListener(formID: string, event: IKgVarEvent, listener?: any): void;
209
209
  /**
210
210
  * 查询所有变量配置.
211
211
  *
@@ -32,7 +32,7 @@ export interface IUseKgWarehouseStoreActions {
32
32
  * @param event 事件名称.
33
33
  * @param listener 事件监听函数.
34
34
  */
35
- addEventListener(event: IKgWarehouseEvent, listener: IKgWarehouseEventListener): void;
35
+ addEventListener(event: IKgWarehouseEvent, listener: any): void;
36
36
  /**
37
37
  * 触发事件.
38
38
  * @param event 事件名称.
@@ -44,7 +44,7 @@ export interface IUseKgWarehouseStoreActions {
44
44
  * @param event 事件名称.
45
45
  * @param listener 事件监听函数.
46
46
  */
47
- removeEventListener(event: IKgWarehouseEvent, listener?: IKgWarehouseEventListener): void;
47
+ removeEventListener(event: IKgWarehouseEvent, listener?: any): void;
48
48
  /**
49
49
  * 设置是否显示弹窗.
50
50
  *
@@ -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 { Description, SysUserWarehouseDTO } from '../apis/WMS/models';
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, Description>>;
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
- }) => Description | null;
244
+ }) => DescriptionDTO | null;
245
245
  /**
246
246
  * 根据 codeName 获取当前语言下的它的所有描述.
247
247
  */
248
248
  getDescriptions(): (param: {
249
249
  codeName: string | null | undefined;
250
- }) => Array<Description>;
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<Description>;
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
- joinParamsToUrl?: boolean;
26
- formatDate?: boolean;
27
- isTransformResponse?: boolean;
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
- * <p>高级查询时, 各个请求参数的高级查询操作符.</p>
41
- * <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
42
- * <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
30
+ * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
43
31
  */
44
- dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
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
- * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
42
+ * <p>高级查询时, 各个请求参数的高级查询操作符.</p>
43
+ * <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
44
+ * <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
55
45
  */
56
- dayjs?: typeof dayjs;
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.1",
3
+ "version": "0.26.5-beta.11",
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.14",
43
+ "@kengic/pont": "1.2.17-beta.0",
47
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
+ "@thymine/xunee": "0.4.9-beta.8",
48
46
  "@types/crypto-js": "4.1.1",
49
47
  "@types/fs-extra": "9.0.13",
50
48
  "@types/inquirer": "8.2.5",
@@ -72,7 +70,7 @@
72
70
  "lodash-es": "4.17.21",
73
71
  "picocolors": "1.0.0",
74
72
  "pinia": "2.0.12",
75
- "prettier": "3.2.5",
73
+ "prettier": "3.3.3",
76
74
  "rimraf": "3.0.2",
77
75
  "rollup": "2.79.1",
78
76
  "rollup-plugin-visualizer": "5.8.3",