reprocess rework

This commit is contained in:
Sirttas
2026-06-19 23:05:42 +02:00
parent 981045da2f
commit 6dac42bbbe
6 changed files with 43 additions and 65 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
<script setup lang="ts">
import { SortableHeader, useSort, VirtualScrollTable } from '@/components/table';
import { formatIsk, percentFormater } from '@/formaters';
import { MarketTypeLabel } from '@/market/type';
import { useStorage } from '@vueuse/core';
import { computed } from 'vue';
import {SortableHeader, useSort, VirtualScrollTable} from '@/components/table';
import {formatIsk, percentFormater} from '@/formaters';
import {MarketTypeLabel} from '@/market/type';
import {useStorage} from '@vueuse/core';
import {computed} from 'vue';
import BuySellSlider from './BuySellSlider.vue';
import { ReprocessItemValues } from './reprocess';
import {ReprocessItemValues} from './reprocess';
interface Props {
result?: ReprocessItemValues[];
@@ -26,8 +26,8 @@ const { sortedArray, headerProps } = useSort(computed(() => props.result.map(r =
return { ...r, market, materials, ratio };
})), {
defaultSortKey: 'name',
defaultSortDirection: 'asc'
defaultSortKey: 'ratio',
defaultSortDirection: 'desc'
})
</script>