Browse Source

更新战斗过程展示方式

dev
许孟阳 2 months ago
parent
commit
08a535cee0
  1. 16
      src/views/message/sys-info.vue

16
src/views/message/sys-info.vue

@ -4,14 +4,7 @@
<span>{{ t('sys') }}</span> <span>{{ t('sys') }}</span>
<i class="time" v-if="v.time">({{ v.time }})</i> <i class="time" v-if="v.time">({{ v.time }})</i>
<span class="msg">{{ v.msg }}</span> <span class="msg">{{ v.msg }}</span>
<div style="float: inline-end;" v-if="v.bouts"> <a v-if="v.bouts" @click="bouts = v.bouts; showBouts = true;" class="bouts-link">{{ t('bouts.0') }}</a>
<Tooltip :show-icon="false" width="25rem" x="-50%">
<a class="bouts-link">{{ t('bouts.0') }}</a>
<template #tip>
<Bouts :bouts="v.bouts"></Bouts>
</template>
</Tooltip>
</div>
<span v-if="v.equips" v-for="(o, p) in v.equips" :key="p"> <span v-if="v.equips" v-for="(o, p) in v.equips" :key="p">
<a :style="{ color: o.quality.color }" @mouseleave="commit('close_equip_tip')" <a :style="{ color: o.quality.color }" @mouseleave="commit('close_equip_tip')"
@mouseover="commit('show_equip_tip', { equip: o, compare: true, e: $event })"> @mouseover="commit('show_equip_tip', { equip: o, compare: true, e: $event })">
@ -22,6 +15,9 @@
</div> </div>
</div> </div>
<Drawer v-model="showBouts" width="30%">
<Bouts :bouts="bouts"></Bouts>
</Drawer>
</template> </template>
@ -31,12 +27,14 @@ import { useStore } from "vuex";
import { watch, nextTick, onMounted, ref } from "vue"; import { watch, nextTick, onMounted, ref } from "vue";
import { useI18n } from "vue3-i18n"; import { useI18n } from "vue3-i18n";
import { qualitys } from "@/config"; import { qualitys } from "@/config";
import { Tooltip } from "@/components"; import { Drawer, Tooltip } from "@/components";
import Bouts from "./bouts.vue"; import Bouts from "./bouts.vue";
const { t } = useI18n(); const { t } = useI18n();
const { state, commit, dispatch } = useStore(); const { state, commit, dispatch } = useStore();
const sysInfo = ref(); const sysInfo = ref();
const showBouts = ref(false)
const bouts = ref<any>([])
watch(state.sysInfo, () => { watch(state.sysInfo, () => {
nextTick(() => { nextTick(() => {

Loading…
Cancel
Save