Refactor layout components and remove unnecessary code
This commit is contained in:
@@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
<template #list="slotProps">
|
<template #list="slotProps">
|
||||||
<div class="flex flex-col space-y-4 mt-2">
|
<div class="flex flex-col space-y-4 mt-2">
|
||||||
|
|
||||||
|
|
||||||
<div v-for="(item, index) in slotProps.items" :key="index">
|
<div v-for="(item, index) in slotProps.items" :key="index">
|
||||||
<div class="flex flex-col sm:flex-row sm:items-center p-6 gap-4 bg-white dark:bg-gray-800 rounded-lg shadow-md"
|
<div class="flex flex-col sm:flex-row sm:items-center p-6 gap-4 bg-white dark:bg-gray-800 rounded-lg shadow-md"
|
||||||
:class="{ 'border-t border-gray-200 dark:border-gray-700': index !== 0 }">
|
:class="{ 'border-t border-gray-200 dark:border-gray-700': index !== 0 }">
|
||||||
@@ -69,18 +67,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ChevronRightIcon } from '@heroicons/vue/24/solid';
|
import { ChevronRightIcon } from '@heroicons/vue/24/solid';
|
||||||
import DataView from 'primevue/dataview';
|
import DataView from 'primevue/dataview';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { LoadingStore } from '../../stores/LoadingStore.js';
|
|
||||||
import { ScenarioStore } from '../../stores/ScenarioStore.js';
|
import { ScenarioStore } from '../../stores/ScenarioStore.js';
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const layout = ref('grid');
|
const layout = ref('grid');
|
||||||
const options = ref(['list', 'grid']);
|
const options = ref(['list', 'grid']);
|
||||||
const loading = ref(true)
|
|
||||||
const loadingStore = LoadingStore()
|
|
||||||
|
|
||||||
const scenario_store = ScenarioStore();
|
const scenario_store = ScenarioStore();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user