fix: 본인이 아닌 수뇌자리에도 부대장 발령 표기

This commit is contained in:
2022-07-10 21:27:34 +09:00
parent 94bb96d208
commit 50b1db75f0
5 changed files with 75 additions and 42 deletions
+6 -4
View File
@@ -1,7 +1,5 @@
<template>
<div
v-for="(officer, _idx) in [chiefList[chiefLevel]]"
:key="_idx"
:class="[`chiefBox${chiefLevel}`, 'subRows']"
:style="style"
@click="$emit('click', this)"
@@ -37,15 +35,19 @@
</template>
<script lang="ts">
import { getNpcColor } from "@/common_legacy";
import type { ChiefResponse } from "@/defs/API/NationCommand";
import { mb_strwidth } from "@/util/mb_strwidth";
import { defineComponent } from "vue";
import { defineComponent, type PropType } from "vue";
import VueTypes from "vue-types";
export default defineComponent({
props: {
chiefLevel: VueTypes.integer.isRequired,
style: VueTypes.object.isRequired,
chiefList: VueTypes.object.isRequired,
officer: {
type: Object as PropType<ChiefResponse['chiefList'][0]>,
default: undefined,
},
isMe: VueTypes.bool.isRequired,
},
emits: ["click"],