@kengic/core.react 0.0.1-beta.58 → 0.0.1-beta.59

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.
@@ -67639,7 +67639,8 @@ function doKgWorkStation(e = "") {
67639
67639
  });
67640
67640
  },
67641
67641
  workStation: null,
67642
- workStation$: null
67642
+ workStation$: null,
67643
+ workStationArea: null
67643
67644
  };
67644
67645
  return t = new Proxy(t, {
67645
67646
  get(r, n) {
@@ -67650,6 +67651,8 @@ function doKgWorkStation(e = "") {
67650
67651
  const a = ref(getWorkStation(e)(kgWorkStationStore.getState())), s = kgWorkStationStore.subscribe(() => a.value = getWorkStation(e)(kgWorkStationStore.getState()));
67651
67652
  return [a, s];
67652
67653
  }
67654
+ case "workStationArea":
67655
+ return getWorkStationArea(e)(kgWorkStationStore.getState());
67653
67656
  }
67654
67657
  return Reflect.get(r, n);
67655
67658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.1-beta.58",
3
+ "version": "0.0.1-beta.59",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -1,5 +1,5 @@
1
1
  import { IRemoveEventListener } from '@kengic/core.core';
2
- import { WorkstationDTO } from '../../api/WMS/models.ts';
2
+ import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models.ts';
3
3
  import { IKgWorkStationOnMountEventListener, IKgWorkStationOnOkEventListener } from './index.event';
4
4
  import { IKgWorkStationState, kgWorkStationStore } from './index.store';
5
5
  export interface IDoKgWorkStation {
@@ -55,7 +55,7 @@ export interface IDoKgWorkStation {
55
55
  */
56
56
  subscribe(fn: (state: IKgWorkStationState[string]) => void): () => void;
57
57
  /**
58
- * <p>跟 {@link workStation$} 一样, 但获取的是快照.</p>
58
+ * <p>获取「当前选择的工作站」快照. vue 项目中使用.</p>
59
59
  */
60
60
  workStation: WorkstationDTO | null;
61
61
  /**
@@ -64,6 +64,10 @@ export interface IDoKgWorkStation {
64
64
  workStation$: [{
65
65
  value: WorkstationDTO | null;
66
66
  }, () => void];
67
+ /**
68
+ * <p>获取「当前选择的工作区」快照. 在 vue 项目中使用.</p>
69
+ */
70
+ workStationArea: WorkstationAreaDTO | null;
67
71
  }
68
72
  /**
69
73
  *