@kengic/vue 0.29.1-beta.9 → 0.30.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/CHANGELOG.md +83 -7
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +28791 -28448
- package/dist/src/component/KgAppSelect/KgAppSelect.hooks.d.ts +2 -28
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +6 -12
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +3 -144
- package/dist/src/component/KgButton/KgButton.store.d.ts +63 -36
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +2 -2
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +2 -6
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +2 -2
- package/dist/src/component/KgForm/KgForm.store.d.ts +2 -4
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +5 -5
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +5 -11
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +9 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +5 -5
- package/dist/src/component/KgForm.Item/index.d.ts +1 -1
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +2 -2
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +8 -10
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +2 -2
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +10 -9
- package/dist/src/component/KgSubmit/index.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.event.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +10 -24
- package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.store.d.ts +41 -89
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
- package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +1 -2
- package/dist/src/component/KgTable/index.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +21 -30
- package/dist/src/component/KgVar/{KgVar.vm.d.ts → KgVar.model.d.ts} +1 -1
- package/dist/src/component/KgVar/KgVar.store.d.ts +61 -102
- package/dist/src/component/KgVar/KgVarFactory.d.ts +12 -16
- package/dist/src/component/KgVar/index.d.ts +1 -1
- package/dist/src/component/KgVarConfig/KgVarConfig.hooks.d.ts +3 -21
- package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -6
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +5 -4
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +2 -4
- package/dist/src/config/config.hooks.d.ts +3 -48
- package/dist/src/config/config.store.d.ts +31 -61
- package/dist/src/const/{const.vm.d.ts → const.model.d.ts} +7 -0
- package/dist/src/const/index.d.ts +2 -2
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts +1 -1
- package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +3 -3
- package/dist/src/page/KgCircleVis/components/KgCircleVis.store.d.ts +29 -31
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +32 -1381
- package/dist/src/page/index.d.ts +1 -1
- package/dist/src/project/types/store.d.ts +1 -0
- package/package.json +4 -2
- package/dist/src/component/KgVar/KgVar.VarConfigDescription.store.d.ts +0 -12
- package/dist/src/component/KgVar/KgVar.VarGridConfig.store.d.ts +0 -10
- package/dist/src/component/KgVar/KgVar.VarGridMaster.store.d.ts +0 -10
- /package/dist/src/component/KgCanvas/{KgCanvas.vm.d.ts → KgCanvas.model.d.ts} +0 -0
- /package/dist/src/component/KgForm/{KgForm.vm.d.ts → KgForm.model.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{KgForm.Item.vm.d.ts → KgForm.Item.model.d.ts} +0 -0
- /package/dist/src/component/KgModal/{KgModal.vm.d.ts → KgModal.model.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{KgSearch.vm.d.ts → KgSearch.model.d.ts} +0 -0
- /package/dist/src/component/KgSubmit/{KgSubmit.vm.d.ts → KgSubmit.model.d.ts} +0 -0
- /package/dist/src/component/KgTable/{KgTable.vm.d.ts → KgTable.model.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{KgVarConfig.vm.d.ts → KgVarConfig.model.d.ts} +0 -0
- /package/dist/src/const/{const.injection-keys.d.ts → injection-keys.const.d.ts} +0 -0
- /package/dist/src/page/KgCircleVis/components/{KgCircleVis.vm.d.ts → KgCircleVis.model.d.ts} +0 -0
@@ -1,21 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
export
|
3
|
-
|
4
|
-
* 打开变量配置弹窗, 并使用传入的宿主界面标识.
|
5
|
-
*
|
6
|
-
* @param param.hostFormID 宿主界面标识
|
7
|
-
* @param param.kgContext {@link KG_VAR_CONFIG_MODAL__CONTEXT}
|
8
|
-
*/
|
9
|
-
open(param: {
|
10
|
-
hostFormID: string;
|
11
|
-
kgContext?: string;
|
12
|
-
}): void;
|
13
|
-
/**
|
14
|
-
* 状态数据.
|
15
|
-
*/
|
16
|
-
store: IKgVarConfigStore;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* @param formID 界面标识.
|
20
|
-
*/
|
21
|
-
export declare function useKgVarConfig(formID?: string | null): IUseKgVarConfig;
|
1
|
+
import { useKgVarConfigStore } from './KgVarConfig.store';
|
2
|
+
export declare type IUseKgVarConfig = {} & ReturnType<typeof useKgVarConfigStore>;
|
3
|
+
export declare function useKgVarConfig(): IUseKgVarConfig;
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export interface IUseKgVarConfigStoreState {
|
3
|
-
}
|
1
|
+
import { KgUseStore } from '../../const';
|
4
2
|
export interface IUseKgVarConfigStoreGetters {
|
5
3
|
}
|
6
4
|
export interface IUseKgVarConfigStoreActions {
|
@@ -15,6 +13,4 @@ export interface IUseKgVarConfigStoreActions {
|
|
15
13
|
kgContext?: string;
|
16
14
|
}): void;
|
17
15
|
}
|
18
|
-
export declare
|
19
|
-
export declare type IKgVarConfigStore = ReturnType<IUseKgVarConfigStore>;
|
20
|
-
export declare const useKgVarConfigStore: IUseKgVarConfigStore;
|
16
|
+
export declare const useKgVarConfigStore: KgUseStore<IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { ComputedRef } from 'vue';
|
3
|
+
import { WhDTO } from '../../api/WMS/models';
|
3
4
|
import { IKgWarehouseOnMountedEventListener } from './KgWarehouse.event';
|
4
|
-
import {
|
5
|
+
import { useKgWarehouseStore } from './KgWarehouse.store';
|
5
6
|
export declare type IUseKgWarehouse = {
|
6
7
|
/**
|
7
8
|
* 监听事件: 组件加载完成.
|
@@ -9,14 +10,14 @@ export declare type IUseKgWarehouse = {
|
|
9
10
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
10
11
|
*/
|
11
12
|
onMounted(listener: IKgWarehouseOnMountedEventListener, isOnce?: boolean): IRemoveEventListener;
|
12
|
-
store:
|
13
|
+
store: ReturnType<typeof useKgWarehouseStore>;
|
13
14
|
/**
|
14
15
|
* 是否显示弹窗.
|
15
16
|
*/
|
16
|
-
visible: ComputedRef<
|
17
|
+
visible: ComputedRef<boolean>;
|
17
18
|
/**
|
18
19
|
* 当前仓库.
|
19
20
|
*/
|
20
|
-
warehouse: ComputedRef<
|
21
|
+
warehouse: ComputedRef<WhDTO | null>;
|
21
22
|
};
|
22
23
|
export declare function useKgWarehouse(): IUseKgWarehouse;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { StoreDefinition } from 'pinia';
|
2
1
|
import { WhDTO } from '../../api/WMS/models';
|
2
|
+
import { KgUseStore } from '../../const';
|
3
3
|
export interface IUseKgWarehouseStoreState {
|
4
4
|
/**
|
5
5
|
* 是否显示弹窗.
|
@@ -31,6 +31,4 @@ export interface IUseKgWarehouseStoreActions {
|
|
31
31
|
*/
|
32
32
|
setWarehouse(warehouse?: WhDTO | null): void;
|
33
33
|
}
|
34
|
-
export declare
|
35
|
-
export declare type IKgWarehouseStore = ReturnType<IUseKgWarehouseStore>;
|
36
|
-
export declare const useKgWarehouseStore: IUseKgWarehouseStore;
|
34
|
+
export declare const useKgWarehouseStore: KgUseStore<IUseKgWarehouseStoreGetters, IUseKgWarehouseStoreActions>;
|
@@ -1,55 +1,10 @@
|
|
1
1
|
import { ComputedRef } from 'vue';
|
2
|
-
import { Router } from 'vue-router';
|
3
|
-
import { Description } from '../api/WMS/models';
|
4
2
|
import { LocaleType } from '../project/types/config';
|
5
|
-
import {
|
6
|
-
export
|
7
|
-
/**
|
8
|
-
* 语言数据.
|
9
|
-
*/
|
10
|
-
I18N$$: ComputedRef<Record<string, any>>;
|
11
|
-
/**
|
12
|
-
* 获取当前语言下的某个描述.
|
13
|
-
*
|
14
|
-
* @param.codeName 描述组名.
|
15
|
-
* @param.codeValue 描述数值.
|
16
|
-
*/
|
17
|
-
getDescription(param: {
|
18
|
-
codeName: string | null | undefined;
|
19
|
-
codeValue: string | null | undefined;
|
20
|
-
}): Description | null;
|
3
|
+
import { useKgStore } from './config.store';
|
4
|
+
export declare type IUseKg = {
|
21
5
|
/**
|
22
6
|
* 当前语言.
|
23
7
|
*/
|
24
8
|
locale: ComputedRef<LocaleType>;
|
25
|
-
|
26
|
-
option: ComputedRef<IKgOption>;
|
27
|
-
/**
|
28
|
-
* 配置参数.
|
29
|
-
*/
|
30
|
-
option$$: ComputedRef<IKgOption>;
|
31
|
-
/**
|
32
|
-
* 检查权限方法.
|
33
|
-
*/
|
34
|
-
p: P;
|
35
|
-
/**
|
36
|
-
* 请求某组描述数据.
|
37
|
-
*
|
38
|
-
* @param param.codeName 描述组名.
|
39
|
-
* @param param.isForceRequest 是否强制请求, 即无论是否已经请求过该组, 始终重新请求, 默认为 true.
|
40
|
-
*/
|
41
|
-
requestDescriptionList(param: {
|
42
|
-
codeName: string | null | undefined;
|
43
|
-
isForceRequest?: boolean | null | undefined;
|
44
|
-
}): Promise<void>;
|
45
|
-
/**
|
46
|
-
* 路由对象.
|
47
|
-
*/
|
48
|
-
router: ComputedRef<Router | null>;
|
49
|
-
store: IKgStore;
|
50
|
-
/**
|
51
|
-
* 翻译方法.
|
52
|
-
*/
|
53
|
-
t: T;
|
54
|
-
}
|
9
|
+
} & ReturnType<typeof useKgStore>;
|
55
10
|
export declare function useKg(): IUseKg;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import { ComputedRef } from 'vue';
|
3
2
|
import { Router } from 'vue-router';
|
4
3
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
5
|
-
import { KG_APP } from '../const';
|
4
|
+
import { KG_APP, KgUseStore } from '../const';
|
6
5
|
import { Menu } from '../project/src/router/types';
|
7
|
-
import { LocaleType } from '../project/types/config';
|
8
6
|
import { UserInfo } from '../project/types/store';
|
9
7
|
export declare type IKgOption = {
|
10
8
|
/**
|
@@ -186,98 +184,68 @@ export declare type P = {
|
|
186
184
|
(permissionCode?: string | Array<string> | null): boolean;
|
187
185
|
};
|
188
186
|
export interface UserState {
|
189
|
-
userInfo: UserInfo | null;
|
190
|
-
token?: string;
|
191
187
|
roleList: any[];
|
192
|
-
userWarehouses: SysUserWarehouseDTO[];
|
193
188
|
sessionTimeout?: boolean;
|
189
|
+
token?: string;
|
190
|
+
userInfo: UserInfo | null;
|
191
|
+
userWarehouses: SysUserWarehouseDTO[];
|
194
192
|
}
|
195
193
|
interface AuthItem {
|
196
194
|
/** 权限编码. */
|
197
195
|
action: string;
|
198
|
-
/** 权限策略. 1:显示, 2:禁用. */
|
199
|
-
type: string | number;
|
200
|
-
/** 权限状态. 0:无效, 1:有效. */
|
201
|
-
status: string | number;
|
202
196
|
/** 权限名称. */
|
203
197
|
describe?: string;
|
198
|
+
/** 权限状态. 0:无效, 1:有效. */
|
199
|
+
status: string | number;
|
200
|
+
/** 权限策略. 1:显示, 2:禁用. */
|
201
|
+
type: string | number;
|
204
202
|
}
|
205
203
|
export interface PermissionState {
|
206
|
-
/** 当前登录用户所拥有的权限编码列表. */
|
207
|
-
permCodeList: string[] | number[];
|
208
|
-
/** 菜单列表. */
|
209
|
-
backMenuList: Menu[];
|
210
|
-
/** 当前登录用户所拥有的权限配置. */
|
211
|
-
authList: AuthItem[];
|
212
204
|
/** 全部权限配置. */
|
213
205
|
allAuthList: AuthItem[];
|
214
|
-
|
215
|
-
|
216
|
-
/**
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
/**
|
221
|
-
* <p>系统描述.</p>
|
222
|
-
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
223
|
-
*/
|
224
|
-
descriptionMap: Map<string, Map<string, DescriptionDTO>>;
|
225
|
-
i18n: any;
|
226
|
-
/**
|
227
|
-
* <p>某个系统描述是否正在查询.</p>
|
228
|
-
* <p>其中的 key 表示 codeName.</p>
|
229
|
-
*/
|
230
|
-
isDescriptionsRequestingMap: Map<string, boolean>;
|
231
|
-
/** 语言. */
|
232
|
-
locale: ComputedRef<LocaleType> | null;
|
233
|
-
/** 配置参数. */
|
234
|
-
option: IKgOption;
|
235
|
-
/** 检查权限的方法. */
|
236
|
-
pFunction: P | null;
|
237
|
-
router: Router | null;
|
238
|
-
/** 翻译的方法. */
|
239
|
-
tFunction: T | null;
|
240
|
-
/** 权限数据. */
|
241
|
-
usePermissionStore: StoreDefinition | null;
|
242
|
-
/** 用户数据. */
|
243
|
-
useUserStore: StoreDefinition | null;
|
206
|
+
/** 当前登录用户所拥有的权限配置. */
|
207
|
+
authList: AuthItem[];
|
208
|
+
/** 菜单列表. */
|
209
|
+
backMenuList: Menu[];
|
210
|
+
/** 当前登录用户所拥有的权限编码列表. */
|
211
|
+
permCodeList: string[] | number[];
|
244
212
|
}
|
245
213
|
export interface IUseKgStoreGetters {
|
214
|
+
I18N: Record<string, any>;
|
246
215
|
/**
|
247
216
|
* 根据 codeName 和 codeValue 获取当前语言下的某个描述.
|
248
217
|
*/
|
249
|
-
getDescription
|
218
|
+
getDescription: (param: {
|
250
219
|
codeName: string | null | undefined;
|
251
220
|
codeValue: string | null | undefined;
|
252
221
|
}) => DescriptionDTO | null;
|
253
222
|
/**
|
254
223
|
* 根据 codeName 获取当前语言下的它的所有描述.
|
255
224
|
*/
|
256
|
-
|
225
|
+
getDescriptionList: (param: {
|
257
226
|
codeName: string | null | undefined;
|
258
227
|
}) => Array<DescriptionDTO>;
|
259
|
-
|
260
|
-
getI18n(): any;
|
228
|
+
i18n: any;
|
261
229
|
/**
|
262
230
|
* 配置参数.
|
263
231
|
*/
|
264
|
-
|
232
|
+
option: IKgOption;
|
265
233
|
/**
|
266
234
|
* 后端接口地址前缀.
|
267
235
|
*/
|
268
|
-
|
269
|
-
|
236
|
+
publicPath: IKgOption;
|
237
|
+
router: Router | null;
|
270
238
|
/**
|
271
239
|
* 菜单数据.
|
272
240
|
*/
|
273
|
-
|
241
|
+
usePermissionStore: StoreDefinition<string, PermissionState, {
|
274
242
|
getPermCodeList(): string[] | number[];
|
275
243
|
getBackMenuList(): Menu[];
|
276
244
|
}> | null;
|
277
245
|
/**
|
278
246
|
* 权限数据.
|
279
247
|
*/
|
280
|
-
|
248
|
+
useUserStore: StoreDefinition<string, UserState, {
|
281
249
|
getToken(): string;
|
282
250
|
getRoleList(): any[];
|
283
251
|
getUserWarehouses(): SysUserWarehouseDTO[];
|
@@ -286,7 +254,9 @@ export interface IUseKgStoreGetters {
|
|
286
254
|
}, {}> | null;
|
287
255
|
}
|
288
256
|
export interface IUseKgStoreActions {
|
289
|
-
/**
|
257
|
+
/**
|
258
|
+
* 检查权限.
|
259
|
+
*/
|
290
260
|
p: P;
|
291
261
|
/**
|
292
262
|
* 请求某组描述数据.
|
@@ -304,7 +274,7 @@ export interface IUseKgStoreActions {
|
|
304
274
|
* @param param.codeName 描述组名.
|
305
275
|
* @param param.descriptions 描述数据.
|
306
276
|
*/
|
307
|
-
|
277
|
+
setDescriptionList(param: {
|
308
278
|
codeName: string | null | undefined;
|
309
279
|
descriptions: Array<DescriptionDTO>;
|
310
280
|
}): void;
|
@@ -316,10 +286,10 @@ export interface IUseKgStoreActions {
|
|
316
286
|
setT(i18n: any): void;
|
317
287
|
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
318
288
|
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
319
|
-
/**
|
289
|
+
/**
|
290
|
+
* 翻译.
|
291
|
+
*/
|
320
292
|
t: T;
|
321
293
|
}
|
322
|
-
export declare
|
323
|
-
export declare type IKgStore = ReturnType<IUseKgStore>;
|
324
|
-
export declare const useKgStore: IUseKgStore;
|
294
|
+
export declare const useKgStore: KgUseStore<IUseKgStoreGetters, IUseKgStoreActions>;
|
325
295
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { type TooltipProps } from 'ant-design-vue';
|
2
2
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
3
|
+
import { Pinia, StoreOnActionListener } from 'pinia';
|
3
4
|
import { KgModalProps } from '../component';
|
4
5
|
/**
|
5
6
|
* 常量.
|
@@ -1172,3 +1173,9 @@ export declare const KG_COMMON_CONST: {
|
|
1172
1173
|
__KG__CUSTOM_ROW_ID__: string;
|
1173
1174
|
__KG__NULL__: string;
|
1174
1175
|
};
|
1176
|
+
/**
|
1177
|
+
* 状态管理类型定义.
|
1178
|
+
*/
|
1179
|
+
export declare type KgUseStore<GETTERS, ACTIONS> = (pinia?: Pinia | null | undefined) => GETTERS & ACTIONS & {
|
1180
|
+
$onAction(callback: StoreOnActionListener<any, any, any, any>, detached?: boolean): () => void;
|
1181
|
+
};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './const.
|
1
|
+
export * from './injection-keys.const';
|
2
|
+
export * from './const.model';
|
3
3
|
export * from './form-id.const';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
2
|
-
import { IKgCircleVisProps,
|
3
|
-
import { MapDTO, StatusDTO } from './KgCircleVis.
|
2
|
+
import { IKgCircleVisProps, useKgCircleVisStore } from './KgCircleVis.store';
|
3
|
+
import { MapDTO, StatusDTO } from './KgCircleVis.model';
|
4
4
|
export declare type IUseKgCircleVis = {
|
5
5
|
/**
|
6
6
|
* 画布:取下一个地图数据. 从地图数据列表队首取一个数据, 并且从列表中删除该数据. 如果列表为空, 则返回空.
|
@@ -21,7 +21,7 @@ export declare type IUseKgCircleVis = {
|
|
21
21
|
*/
|
22
22
|
setProps(props: IKgCircleVisProps | null | undefined): void;
|
23
23
|
/** 状态数据. */
|
24
|
-
store:
|
24
|
+
store: ReturnType<typeof useKgCircleVisStore>;
|
25
25
|
};
|
26
26
|
/**
|
27
27
|
*
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Q } from '@thymine/xunee';
|
2
|
-
import {
|
3
|
-
import { MapDTO, MapStationVO, StatusDTO, StatusRgvVO } from './KgCircleVis.
|
2
|
+
import { KgUseStore } from '../../../const';
|
3
|
+
import { MapDTO, MapStationVO, StatusDTO, StatusRgvVO } from './KgCircleVis.model';
|
4
4
|
export declare type IKgCircleVisProps = {
|
5
5
|
/**
|
6
6
|
* 接口地址.
|
@@ -263,41 +263,41 @@ export interface IKgCircleVisStoreState {
|
|
263
263
|
props: IKgCircleVisProps | null;
|
264
264
|
}
|
265
265
|
export interface IKgCircleVisStoreGetters {
|
266
|
-
$AreaSelect$getIsRequesting
|
267
|
-
$AreaSelect$getValue
|
266
|
+
$AreaSelect$getIsRequesting: boolean;
|
267
|
+
$AreaSelect$getValue: string | null;
|
268
268
|
/**
|
269
269
|
* 获取小车路径颜色.
|
270
270
|
*
|
271
271
|
* @param rgvNo 小车编号.
|
272
272
|
* @param index 小车序号.
|
273
273
|
*/
|
274
|
-
$Canvas$Setting$RgvProperty$pathColor
|
275
|
-
$Canvas$Setting$getCollapseActiveKey
|
276
|
-
$Canvas$Setting$getIsAisleVisible
|
277
|
-
$Canvas$Setting$getIsLegendVisible
|
278
|
-
$Canvas$Setting$getIsRgvOnPath
|
279
|
-
$Canvas$Setting$getIsRgvPathLineVisible
|
280
|
-
$Canvas$Setting$getIsRgvPathVisible
|
281
|
-
$Canvas$Setting$getIsSelectBlinkOn
|
282
|
-
$Canvas$Setting$getRgvMarginY
|
283
|
-
$Canvas$Setting$getSelectBlinkInterval
|
284
|
-
$Canvas$getCurrentRgvList
|
285
|
-
$Canvas$getCurrentStationList
|
286
|
-
$Canvas$getMapData
|
287
|
-
$Canvas$getMapDataList
|
288
|
-
$Canvas$getMapIsRequesting
|
289
|
-
$Canvas$getStatusData
|
290
|
-
$Canvas$getStatusDataList
|
291
|
-
$Canvas$getStatusIsRequesting
|
274
|
+
$Canvas$Setting$RgvProperty$pathColor: (rgvNo?: string | null | undefined, index?: number | null | undefined) => string;
|
275
|
+
$Canvas$Setting$getCollapseActiveKey: Array<string>;
|
276
|
+
$Canvas$Setting$getIsAisleVisible: boolean;
|
277
|
+
$Canvas$Setting$getIsLegendVisible: boolean;
|
278
|
+
$Canvas$Setting$getIsRgvOnPath: boolean;
|
279
|
+
$Canvas$Setting$getIsRgvPathLineVisible: boolean;
|
280
|
+
$Canvas$Setting$getIsRgvPathVisible: boolean;
|
281
|
+
$Canvas$Setting$getIsSelectBlinkOn: boolean;
|
282
|
+
$Canvas$Setting$getRgvMarginY: number;
|
283
|
+
$Canvas$Setting$getSelectBlinkInterval: number;
|
284
|
+
$Canvas$getCurrentRgvList: Array<StatusRgvVO>;
|
285
|
+
$Canvas$getCurrentStationList: Array<MapStationVO>;
|
286
|
+
$Canvas$getMapData: MapDTO | null;
|
287
|
+
$Canvas$getMapDataList: Array<MapDTO>;
|
288
|
+
$Canvas$getMapIsRequesting: boolean;
|
289
|
+
$Canvas$getStatusData: StatusDTO | null;
|
290
|
+
$Canvas$getStatusDataList: Array<StatusDTO>;
|
291
|
+
$Canvas$getStatusIsRequesting: boolean;
|
292
292
|
/**
|
293
293
|
* 离线区:离线小车列表.
|
294
294
|
*/
|
295
|
-
$Offline$getRgvList
|
296
|
-
$Setting$getIsVisible
|
297
|
-
$Tab$getActiveKey
|
298
|
-
$Tab$getRgvList
|
299
|
-
getGraph
|
300
|
-
getProps
|
295
|
+
$Offline$getRgvList: Array<StatusRgvVO>;
|
296
|
+
$Setting$getIsVisible: boolean;
|
297
|
+
$Tab$getActiveKey: string | number;
|
298
|
+
$Tab$getRgvList: Array<StatusRgvVO>;
|
299
|
+
getGraph: Q.Graph | null;
|
300
|
+
getProps: IKgCircleVisProps | null;
|
301
301
|
}
|
302
302
|
export interface IKgCircleVisStoreActions {
|
303
303
|
$AreaSelect$setIsRequesting(value: boolean | null | undefined): void;
|
@@ -351,6 +351,4 @@ export interface IKgCircleVisStoreActions {
|
|
351
351
|
setGraph(value: Q.Graph | null | undefined): void;
|
352
352
|
setProps(value: IKgCircleVisProps | null | undefined): void;
|
353
353
|
}
|
354
|
-
export declare
|
355
|
-
export declare type IKgCircleVisStore = ReturnType<IUseKgCircleVisStore>;
|
356
|
-
export declare const useKgCircleVisStore: IUseKgCircleVisStore;
|
354
|
+
export declare const useKgCircleVisStore: KgUseStore<IKgCircleVisStoreGetters, IKgCircleVisStoreActions>;
|