@arronqzy/vue-blueprint 0.1.12 → 0.1.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arronqzy/vue-blueprint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Vue 3 blueprint editor for Abuilder (Vue Flow + Ant Design Vue)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"ant-design-vue": "^4.2.6",
|
|
20
20
|
"dayjs": "^1.11.13",
|
|
21
21
|
"vue": "^3.5.13",
|
|
22
|
-
"@arronqzy/i18n": "0.1.11",
|
|
23
22
|
"@arronqzy/blueprint-dsl": "1.0.14",
|
|
24
|
-
"@arronqzy/vue-rx-store": "0.1.6"
|
|
23
|
+
"@arronqzy/vue-rx-store": "0.1.6",
|
|
24
|
+
"@arronqzy/i18n": "0.1.12"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "^3.4.0"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"eslint": "^8.57.0",
|
|
32
32
|
"typescript": "^5.5.4",
|
|
33
33
|
"vue-tsc": "^2.2.0",
|
|
34
|
-
"@arronqzy/
|
|
35
|
-
"@arronqzy/
|
|
34
|
+
"@arronqzy/typescript-config": "1.0.0",
|
|
35
|
+
"@arronqzy/eslint-config": "0.0.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
@@ -162,6 +162,7 @@ export function useBlueprintPageLifecycle(options: UseBlueprintPageLifecycleOpti
|
|
|
162
162
|
const hadBoot = ref(false);
|
|
163
163
|
const prevActive = ref<boolean | undefined>(undefined);
|
|
164
164
|
let bootCancelled = false;
|
|
165
|
+
let updatedTimer = 0;
|
|
165
166
|
|
|
166
167
|
const resetFiredPhases = () => {
|
|
167
168
|
firedLifecyclePhases.value = new Set();
|
|
@@ -291,16 +292,21 @@ export function useBlueprintPageLifecycle(options: UseBlueprintPageLifecycleOpti
|
|
|
291
292
|
() => [bootCompleted.value, resolveValue(options.enabled ?? true), resolveValue(options.onUpdated)],
|
|
292
293
|
([completed, enabled]) => {
|
|
293
294
|
if (!enabled || !completed) return;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
295
|
+
if (updatedTimer) window.clearTimeout(updatedTimer);
|
|
296
|
+
updatedTimer = window.setTimeout(() => {
|
|
297
|
+
updatedTimer = 0;
|
|
298
|
+
void emitPhases(
|
|
299
|
+
graphRef.value,
|
|
300
|
+
["updated"],
|
|
301
|
+
runnerOptionsRef.value,
|
|
302
|
+
markPhaseFired
|
|
303
|
+
);
|
|
304
|
+
}, 160);
|
|
300
305
|
}
|
|
301
306
|
);
|
|
302
307
|
|
|
303
308
|
onUnmounted(() => {
|
|
309
|
+
if (updatedTimer) window.clearTimeout(updatedTimer);
|
|
304
310
|
teardownBoot();
|
|
305
311
|
});
|
|
306
312
|
|