fix,refac: 권한 부족의 경우 '-'을 잘 띄우도록

This commit is contained in:
2022-04-08 00:55:13 +09:00
parent 152fdf7143
commit 660c88975c
5 changed files with 46 additions and 37 deletions
@@ -1,5 +1,8 @@
<template>
<span v-if="params.iActionMap" v-b-tooltip.hover :title="params.iActionMap[props.params.value].info??''">{{ params.iActionMap[props.params.value].name }}</span>
<span v-if="props.params.value == null">-</span>
<span v-else-if="params.iActionMap" v-b-tooltip.hover :title="params.iActionMap[props.params.value].info ?? ''">{{
params.iActionMap[props.params.value].name
}}</span>
<span v-else-if="params.info" v-b-tooltip.hover :title="params.info">{{ displayValue }}</span>
<span v-else>{{ displayValue }}</span>
</template>
@@ -15,7 +18,7 @@ const props = defineProps({
type: Object as PropType<
ValueFormatterParams & {
info?: string;
iActionMap?: Record<string, GameIActionInfo>
iActionMap?: Record<string, GameIActionInfo>;
}
>,
required: true,