Верстка блоков

This commit is contained in:
Alex committed 2024-01-31 12:59:01 +03:00
1 parent c43cf66398
commit e1c7d36060
4 files changed
+21 -13

No files matched your search

+21 -13
View File
@@ -1,14 +1,7 @@
<template>
<!-- <v-row class="bg-red w-100">
<v-col class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light">
</v-col>
</v-row> -->
<!-- Безопасность -->
<v-row>
<v-col cols="6">
<v-card v-for="item in safetyData" :key="item.id">
<v-row class="pa-2">
<v-col cols="5" class="d-flex flex-column justify-start h-screen gap">
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto mb-2 h-auto">
<v-card-title>{{ item.name }}</v-card-title>
<v-container
v-for="category in item.categories"
@@ -24,7 +17,7 @@
</v-card-actions>
<v-expand-transition>
<div v-show="showMore[item.id + category.id]">
<v-card-actions v-for="file in category.files" :key="file.id">
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
<v-card-text>{{ file.name }}</v-card-text>
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(safetyURL + file.url), loading=true"></v-btn>
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(safetyURL + file.url, file.name)"></v-btn>
@@ -34,8 +27,23 @@
</v-container>
</v-card>
</v-col>
<v-col cols="7">
<v-card v-show="showFile" class="h-screen overflow-y-auto">
<v-container v-if="loading">
<v-progress-linear
:rounded="5"
indeterminate
color="teal">
</v-progress-linear>
</v-container>
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false"/>
<v-card-actions>
<v-btn block @click="showFile = false">Закрыть</v-btn>
</v-card-actions>
</v-card>
</v-col>
</v-row>
<v-dialog v-model="showFile" width="auto" height="auto">
<!-- <v-dialog v-model="showFile" width="auto" height="auto">
<v-card>
<v-container v-if="loading">
<v-progress-linear
@@ -49,7 +57,7 @@
<v-btn block @click="showFile = false">Закрыть</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-dialog> -->
</template>
<script setup>
Binary file not shown.