|
|
|
@ -5,7 +5,10 @@
@@ -5,7 +5,10 @@
|
|
|
|
|
{{ t('dungeonTips.0') }}: |
|
|
|
|
<span v-if="show_lv_df.includes(dungeon.difficulty)">lv_{{ dungeon.lv }}</span> |
|
|
|
|
{{ t('difficulty.' + dungeon.difficulty) }} |
|
|
|
|
<span v-if="dungeon.difficulty == 'dami'">({{ layer }}{{ t('layer') }})</span> |
|
|
|
|
<select v-if="dungeon.difficulty == 'dami'" class="select" v-model="layer1"> |
|
|
|
|
<option v-for="i in layer" :value="i">{{ i }}{{ t('layer') }}</option> |
|
|
|
|
</select> |
|
|
|
|
<!-- <span >({{ layer }}{{ t('layer') }})</span> --> |
|
|
|
|
</div> |
|
|
|
|
<div class="tip"> |
|
|
|
|
<p>- {{ t('dungeonTips.2') }}</p> |
|
|
|
@ -36,7 +39,7 @@
@@ -36,7 +39,7 @@
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
|
import { useStore } from "vuex"; |
|
|
|
|
import { reactive, onMounted, ref, computed } from "vue"; |
|
|
|
|
import { reactive, onMounted, ref, computed, watch } from "vue"; |
|
|
|
|
import { useI18n } from "vue3-i18n"; |
|
|
|
|
import { close_icon, qualitys, show_lv_df } from "@/config"; |
|
|
|
|
|
|
|
|
@ -63,6 +66,12 @@ const battle = computed(() => {
@@ -63,6 +66,12 @@ const battle = computed(() => {
|
|
|
|
|
const layer = computed(() => { |
|
|
|
|
return state.playerAttribute.layer; |
|
|
|
|
}) |
|
|
|
|
const layer1 = ref(layer.value) |
|
|
|
|
watch(() => layer1.value, (n) => { |
|
|
|
|
if (n) { |
|
|
|
|
props.dungeon.setLayer(n); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
|
dungeon: { |
|
|
|
@ -96,6 +105,11 @@ onMounted(() => { });
@@ -96,6 +105,11 @@ onMounted(() => { });
|
|
|
|
|
font-size: 1.2rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.select { |
|
|
|
|
font-size: 1.1rem; |
|
|
|
|
background-color: rgba(0, 0, 0, 0.6); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tip { |
|
|
|
|
padding-left: 0.4rem; |
|
|
|
|
|
|
|
|
|