lazy loading DCF
This commit is contained in:
parent
6954ef1a11
commit
25fc94fc92
@ -66,7 +66,6 @@
|
|||||||
let TARating;
|
let TARating;
|
||||||
let RevenueSegmentation;
|
let RevenueSegmentation;
|
||||||
let StockSplits;
|
let StockSplits;
|
||||||
let DCF;
|
|
||||||
let Correlation;
|
let Correlation;
|
||||||
let OptionsData;
|
let OptionsData;
|
||||||
let WIIM;
|
let WIIM;
|
||||||
@ -94,7 +93,6 @@
|
|||||||
TARating = (await import('$lib/components/TARating.svelte')).default;
|
TARating = (await import('$lib/components/TARating.svelte')).default;
|
||||||
RevenueSegmentation = (await import('$lib/components/RevenueSegmentation.svelte')).default;
|
RevenueSegmentation = (await import('$lib/components/RevenueSegmentation.svelte')).default;
|
||||||
StockSplits = (await import('$lib/components/StockSplits.svelte')).default;
|
StockSplits = (await import('$lib/components/StockSplits.svelte')).default;
|
||||||
DCF = (await import('$lib/components/DCF.svelte')).default;
|
|
||||||
Correlation = (await import('$lib/components/Correlation.svelte')).default;
|
Correlation = (await import('$lib/components/Correlation.svelte')).default;
|
||||||
OptionsData = (await import('$lib/components/OptionsData.svelte')).default;
|
OptionsData = (await import('$lib/components/OptionsData.svelte')).default;
|
||||||
|
|
||||||
@ -1341,14 +1339,13 @@ function changeChartType() {
|
|||||||
|
|
||||||
<!--Start DCF -->
|
<!--Start DCF -->
|
||||||
<div class="w-full pt-10 sm:pl-6 sm:pb-6 sm:pt-6 m-auto {fairPrice !== null && fairPrice > 0 ? '' : 'hidden'}">
|
<div class="w-full pt-10 sm:pl-6 sm:pb-6 sm:pt-6 m-auto {fairPrice !== null && fairPrice > 0 ? '' : 'hidden'}">
|
||||||
{#if DCF}
|
<Lazy>
|
||||||
<div class="w-full m-auto rounded-2xl mb-5">
|
<div class="w-full m-auto rounded-2xl mb-5">
|
||||||
<DCF
|
{#await import('$lib/components/DCF.svelte') then {default: Comp}}
|
||||||
fairPrice = {fairPrice}
|
<svelte:component this={Comp} fairPrice = {fairPrice} currentPrice = {currentPrice}/>
|
||||||
currentPrice = {currentPrice}
|
{/await}
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
</Lazy>
|
||||||
</div>
|
</div>
|
||||||
<!--End DCF-->
|
<!--End DCF-->
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user