Refactor code for improved performance and readability
This commit is contained in:
		| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
| @@ -355,6 +356,7 @@ | ||||
|     <div class="w-full mb-4 lg:w-[70%] lg:float-left"> | ||||
|       <div class="p-4 bg-white rounded-xl lg:mr-4"> | ||||
|         <DxDataGrid | ||||
|           :allow-column-reordering="true" | ||||
|           class="max-h-[calc(100vh-140px)]" | ||||
|           :data-source="dataSub" | ||||
|           :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
| @@ -683,6 +684,7 @@ | ||||
|     <div class="w-full mb-4 lg:w-[70%] lg:float-left"> | ||||
|       <div class="p-4 bg-white rounded-xl lg:mr-4"> | ||||
|         <DxDataGrid | ||||
|           :allow-column-reordering="true" | ||||
|           class="max-h-[calc(100vh-140px)]" | ||||
|           :data-source="dataSub" | ||||
|           :show-column-lines="true" | ||||
| @@ -982,7 +984,7 @@ | ||||
| </template> | ||||
|  | ||||
| <script setup lang="ts"> | ||||
| import { onMounted, ref, watch } from 'vue' | ||||
| import { onMounted, ref } from 'vue' | ||||
| import Filters from '@/components/Form/Filters.vue' | ||||
| import Type2 from '@/components/Form/FiltersType/Type2.vue' | ||||
| import { DxDataGrid } from 'devextreme-vue' | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   <div id="data"> | ||||
|     <DxDataGrid | ||||
|       :allow-column-reordering="true" | ||||
|       class="max-h-[calc(100vh-140px)] mb-10" | ||||
|       :data-source="data" | ||||
|       :show-column-lines="true" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user