@7365admin1/layer-common 4.97.1-staging.559 → 4.97.1-staging.560
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/components/Robot/Setup.vue +12 -10
- package/package.json +1 -1
|
@@ -143,6 +143,18 @@ async function refresh() {
|
|
|
143
143
|
await loadLifts();
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
// Declared BEFORE `steps`: the progress watch below runs at once and reads it (a later `const` is a TDZ error).
|
|
147
|
+
// Floor names: the list the panel loaded or saved; a save re-reads the robots so the checklist shows the new floors.
|
|
148
|
+
const floorsEl = ref<HTMLElement | null>(null);
|
|
149
|
+
const siteFloors = ref<Array<{ key: number; name: string }>>([]);
|
|
150
|
+
const mapFloors = computed(() => [...new Set<number>(((saved.value?.levels ?? []) as any[]).map((l) => Number(l?.floorNo)).filter(Number.isInteger))]);
|
|
151
|
+
let firstFloors = true;
|
|
152
|
+
function floorsSaved(list: Array<{ key: number; name: string }>) {
|
|
153
|
+
siteFloors.value = list;
|
|
154
|
+
if (firstFloors) return void (firstFloors = false);
|
|
155
|
+
void refresh();
|
|
156
|
+
}
|
|
157
|
+
|
|
146
158
|
const steps = computed(() =>
|
|
147
159
|
robotSetupSteps({
|
|
148
160
|
orgModules: orgModules.value,
|
|
@@ -165,16 +177,6 @@ function go(target: TSetupTarget) {
|
|
|
165
177
|
if (target) emit("go", target);
|
|
166
178
|
}
|
|
167
179
|
|
|
168
|
-
// Floor names: the list the panel loaded or saved; a save re-reads the robots so the checklist shows the new floors.
|
|
169
|
-
const floorsEl = ref<HTMLElement | null>(null);
|
|
170
|
-
const siteFloors = ref<Array<{ key: number; name: string }>>([]);
|
|
171
|
-
const mapFloors = computed(() => [...new Set<number>(((saved.value?.levels ?? []) as any[]).map((l) => Number(l?.floorNo)).filter(Number.isInteger))]);
|
|
172
|
-
let firstFloors = true;
|
|
173
|
-
function floorsSaved(list: Array<{ key: number; name: string }>) {
|
|
174
|
-
siteFloors.value = list;
|
|
175
|
-
if (firstFloors) return void (firstFloors = false);
|
|
176
|
-
void refresh();
|
|
177
|
-
}
|
|
178
180
|
</script>
|
|
179
181
|
|
|
180
182
|
<style scoped>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.560",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|