@kengic/core.react 0.0.1-beta.56 → 0.0.1-beta.57
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/kengic-core.react.js
CHANGED
|
@@ -67612,9 +67612,12 @@ function doKgWorkStation(e = "") {
|
|
|
67612
67612
|
return [t, r];
|
|
67613
67613
|
},
|
|
67614
67614
|
getWorkStation() {
|
|
67615
|
-
const t = ref(
|
|
67615
|
+
const t = ref(getWorkStation(e)(kgWorkStationStore.getState())), r = kgWorkStationStore.subscribe(() => t.value = getWorkStation(e)(kgWorkStationStore.getState()));
|
|
67616
67616
|
return [t, r];
|
|
67617
67617
|
},
|
|
67618
|
+
getWorkStationSnapshot() {
|
|
67619
|
+
return getWorkStation(e)(kgWorkStationStore.getState());
|
|
67620
|
+
},
|
|
67618
67621
|
id: e,
|
|
67619
67622
|
onMount: si({
|
|
67620
67623
|
event: "onMount",
|
package/package.json
CHANGED
|
@@ -28,6 +28,10 @@ export interface IDoKgWorkStation {
|
|
|
28
28
|
getWorkStation(): [{
|
|
29
29
|
value: WorkstationDTO | null;
|
|
30
30
|
}, () => void];
|
|
31
|
+
/**
|
|
32
|
+
* <p>跟 {@link getWorkStation} 一样, 但获取的是快照.</p>
|
|
33
|
+
*/
|
|
34
|
+
getWorkStationSnapshot(): WorkstationDTO | null;
|
|
31
35
|
id: string;
|
|
32
36
|
/**
|
|
33
37
|
* 监听事件: 挂载.
|