fds-vue-core 6.1.1 → 6.1.2
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/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -13038,7 +13038,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
13038
13038
|
const entries = visibleStepEntries.value ?? [];
|
|
13039
13039
|
const stepsCount = entries.length;
|
|
13040
13040
|
if (stepsCount <= 1) return "0%";
|
|
13041
|
-
const targetFullIndex = Math.max(
|
|
13041
|
+
const targetFullIndex = Math.max(currentStepIndex.value, maxCompletedStepIndex.value, 0);
|
|
13042
13042
|
const targetVisibleEntries = entries.map(({ index }, visibleIndex) => ({ fullIndex: index, visibleIndex })).filter(({ fullIndex }) => fullIndex <= targetFullIndex);
|
|
13043
13043
|
const lastTargetEntry = targetVisibleEntries.length > 0 ? targetVisibleEntries[targetVisibleEntries.length - 1] : void 0;
|
|
13044
13044
|
const targetVisibleIndex = lastTargetEntry?.visibleIndex ?? 0;
|