Add hr
This commit is contained in:
parent
3d01fea198
commit
3c10c311d1
@ -10,6 +10,7 @@ import { UnauthorizedError } from './UnauthorizedError';
|
|||||||
import WelcomeGameBlock from './WelcomeGameBlock.vue';
|
import WelcomeGameBlock from './WelcomeGameBlock.vue';
|
||||||
import HeaderText from './HeaderText.vue';
|
import HeaderText from './HeaderText.vue';
|
||||||
import MessageCloud from './MessageCloud.vue';
|
import MessageCloud from './MessageCloud.vue';
|
||||||
|
import HRLine from './HRLine.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@ -173,24 +174,22 @@ onMounted(() => {
|
|||||||
<div v-else>
|
<div v-else>
|
||||||
<div v-for="action in team.actions" :key="action.id">
|
<div v-for="action in team.actions" :key="action.id">
|
||||||
<MessageCloud :action="action">
|
<MessageCloud :action="action">
|
||||||
<div v-show="action.isOpen">
|
<HRLine></HRLine>
|
||||||
<hr class="hr" />
|
|
||||||
<div class="message-content">
|
<div class="message-content">
|
||||||
<div v-if="action.image.length">
|
<div v-if="action.image.length">
|
||||||
<img v-bind:src="action.image" class="message-image" />
|
<img v-bind:src="action.image" class="message-image" />
|
||||||
</div>{{ action.text }}
|
</div>{{ action.text }}
|
||||||
</div>
|
</div>
|
||||||
<hr class="hr" v-if="action.buttons?.length" />
|
<HRLine v-if="action.buttons?.length"></HRLine>
|
||||||
<button v-for="door in action.buttons" :key="door.code" class="button-dialog"
|
<button v-for="door in action.buttons" :key="door.code" class="button-dialog"
|
||||||
v-on:click="letsgo(door.code)" :disabled="gameState !== 'RUN' || !door.show">
|
v-on:click="letsgo(door.code)" :disabled="gameState !== 'RUN' || !door.show">
|
||||||
{{ door.name }}
|
{{ door.name }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<hr class="hr" v-if="action.applications.length" />
|
<HRLine v-if="action.applications.length"></HRLine>
|
||||||
<div class="message-footer" v-for="application in action.applications" :key="application.name">
|
<div class="message-footer" v-for="application in action.applications" :key="application.name">
|
||||||
{{ application.number }} Приложение: {{ application.name }}
|
{{ application.number }} Приложение: {{ application.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</MessageCloud>
|
</MessageCloud>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -202,10 +201,6 @@ onMounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.hr {
|
|
||||||
margin: 7px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body-custom {
|
.body-custom {
|
||||||
font-size: medium;
|
font-size: medium;
|
||||||
height: calc(100vh - 100px);
|
height: calc(100vh - 100px);
|
||||||
|
|||||||
13
src/components/HRLine.vue
Normal file
13
src/components/HRLine.vue
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
/* код */
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<hr class="hr" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.hr {
|
||||||
|
margin: 7px 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -11,7 +11,9 @@ const props = withDefaults(defineProps<Props>(), {})
|
|||||||
<template>
|
<template>
|
||||||
<div class="message-cloud">
|
<div class="message-cloud">
|
||||||
<MessageCloudHeader :action="props.action"></MessageCloudHeader>
|
<MessageCloudHeader :action="props.action"></MessageCloudHeader>
|
||||||
<slot></slot>
|
<div v-show="props.action.isOpen">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user