메인 장수 정보에서 상세 통계와 숙련도 표시를 제외
This commit is contained in:
@@ -18,6 +18,7 @@ const props = withDefaults(
|
||||
general: GeneralInformationPanelData | null;
|
||||
summary: GeneralBattleSummaryData | null;
|
||||
loading: boolean;
|
||||
showDetails?: boolean;
|
||||
nationColor?: string | null;
|
||||
defenceText?: string | null;
|
||||
killTurn?: number | null;
|
||||
@@ -26,6 +27,7 @@ const props = withDefaults(
|
||||
penaltyText?: string | number | null;
|
||||
}>(),
|
||||
{
|
||||
showDetails: true,
|
||||
nationColor: '#173d27',
|
||||
defenceText: null,
|
||||
killTurn: null,
|
||||
@@ -48,7 +50,7 @@ const props = withDefaults(
|
||||
:troop-text="props.troopText"
|
||||
:penalty-text="props.penaltyText"
|
||||
>
|
||||
<template v-if="props.general" #details>
|
||||
<template v-if="props.general && props.showDetails" #details>
|
||||
<GeneralBattleSummary v-if="props.summary" :summary="props.summary" show-win-rate />
|
||||
<LegacyGeneralProgress :general="props.general" :show-primary="false" />
|
||||
</template>
|
||||
|
||||
@@ -408,6 +408,7 @@ watch(
|
||||
<GeneralInformationPanel
|
||||
:general="generalPanel"
|
||||
:summary="generalSummary"
|
||||
:show-details="false"
|
||||
:loading="loading"
|
||||
:nation-color="nation?.color"
|
||||
/>
|
||||
@@ -570,6 +571,7 @@ watch(
|
||||
<GeneralInformationPanel
|
||||
:general="generalPanel"
|
||||
:summary="generalSummary"
|
||||
:show-details="false"
|
||||
:loading="loading"
|
||||
:nation-color="nation?.color"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user