mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-04 16:22:48 +08:00
fix(pfd): use correct Nuxt auto-import component names (FlightlabPfd*)
Nuxt auto-import prefixes component names based on directory path. Components in app/components/flightlab/pfd/ are registered as FlightlabPfd*, not Pfd*. Fixed in learn-pfd.vue and PfdContainer.vue. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -80,7 +80,7 @@ const headingWidth = computed(() => attSize.value + tapeWidth.value * 2)
|
||||
top: `${speedTapePos.top}px`,
|
||||
}"
|
||||
>
|
||||
<PfdSpeedTape
|
||||
<FlightlabPfdSpeedTape
|
||||
:speed="speed"
|
||||
:width="tapeWidth"
|
||||
:height="attSize"
|
||||
@@ -98,7 +98,7 @@ const headingWidth = computed(() => attSize.value + tapeWidth.value * 2)
|
||||
top: `${attitudePos.top}px`,
|
||||
}"
|
||||
>
|
||||
<PfdAttitudeIndicator
|
||||
<FlightlabPfdAttitudeIndicator
|
||||
:pitch="pitch"
|
||||
:bank-angle="bankAngle"
|
||||
:size="attSize"
|
||||
@@ -116,7 +116,7 @@ const headingWidth = computed(() => attSize.value + tapeWidth.value * 2)
|
||||
top: `${altTapePos.top}px`,
|
||||
}"
|
||||
>
|
||||
<PfdAltitudeTape
|
||||
<FlightlabPfdAltitudeTape
|
||||
:altitude="altitude"
|
||||
:width="altTapeWidth"
|
||||
:height="attSize"
|
||||
@@ -134,7 +134,7 @@ const headingWidth = computed(() => attSize.value + tapeWidth.value * 2)
|
||||
top: `${vsPos.top}px`,
|
||||
}"
|
||||
>
|
||||
<PfdVerticalSpeed
|
||||
<FlightlabPfdVerticalSpeed
|
||||
:vertical-speed="verticalSpeed"
|
||||
:width="vsWidth"
|
||||
:height="attSize"
|
||||
@@ -152,7 +152,7 @@ const headingWidth = computed(() => attSize.value + tapeWidth.value * 2)
|
||||
top: `${headingPos.top}px`,
|
||||
}"
|
||||
>
|
||||
<PfdHeadingIndicator
|
||||
<FlightlabPfdHeadingIndicator
|
||||
:heading="heading"
|
||||
:width="headingWidth"
|
||||
:height="headingHeight"
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
<!-- 3D Aircraft Model -->
|
||||
<div class="relative rounded-2xl overflow-hidden border border-white/5 bg-[#050a15] min-h-[200px]">
|
||||
<ClientOnly>
|
||||
<PfdAircraftModel
|
||||
<FlightlabPfdAircraftModel
|
||||
:pitch="fbw.state.pitch"
|
||||
:bank-angle="fbw.state.bankAngle"
|
||||
:heading="fbw.state.heading"
|
||||
@@ -206,7 +206,7 @@
|
||||
</Transition>
|
||||
|
||||
<!-- PFD Container -->
|
||||
<PfdContainer
|
||||
<FlightlabPfdContainer
|
||||
:pitch="fbw.state.pitch"
|
||||
:bank-angle="fbw.state.bankAngle"
|
||||
:heading="fbw.state.heading"
|
||||
|
||||
Reference in New Issue
Block a user