This commit is contained in:
Alex committed 2025-01-27 16:36:38 +03:00
1 parent c6a069367f
commit 016e19d1bf
2 files changed
+15 -10

No files matched your search

@@ -13,11 +13,10 @@
</v-row>
</v-container>
<!-- Карточка где буду отрисовываться тесты в цикле -->
<v-card v-for="cardValue in testingCard" :key="cardValue.id" class="my-2">
<v-row class="ma-4">
<v-col cols="auto">
<v-img :width="170" :src="cardValue.file">
</v-img>
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2">
<v-row class="pa-2">
<v-col cols="1">
<v-img height="125" :src="cardValue.file" />
</v-col>
<v-col cols="auto" class="d-flex flex-grow-1">
<div class="d-flex flex-column justify-center flex-grow-1">
@@ -36,10 +35,16 @@
</v-col>
</v-row>
</v-card>
<v-container v-if="!searchTest.length" :fluid="true">
<v-row class="align-center flex-column">
<v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="x-large" />
<v-card-title class="text-h4 text-grey-lighten-1">Данные не найдены</v-card-title>
</v-row>
</v-container>
</template>
<script>
import { ref } from 'vue';
import { ref, computed } from 'vue';
export default {
props: {
@@ -100,10 +105,10 @@ export default {
// },
]
const searchTest = () => {
const searchTest = computed(() => {
if (!search.value) return props.testingCard
return console.log(props.testingCard.filter(item => item.name.toLowerCase().includes(search.value.toLowerCase())));;
}
return props.testingCard.filter(item => item.name.toLowerCase().includes(search.value.toLowerCase()))
})
return { icons, search, searchTest }
}
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<v-container :fluid="true">
<v-tabs v-model="activeTab" class="mb-4 text-teal-darken-4">
<v-tabs v-model="activeTab" class="mb-2 text-teal-darken-4">
<v-tab v-for="tab in tabs" :key="tab.value" :value="tab.value"> {{ tab.title }} </v-tab>
</v-tabs>
<v-tabs-window v-model="activeTab" class="border-t-thin">