Dependencies, Actions, and a Code Fix?

This commit is contained in:
Annika Merris 2024-02-04 17:46:02 -05:00
parent ce86d8d775
commit 905ef95d55
4 changed files with 82 additions and 1 deletions

View file

@ -4,6 +4,8 @@ import type { PowerItem } from '@/types/PowerItem';
import type { Ref } from 'vue'
import { computed, ref } from 'vue'
type SortItem = { key: string, order?: boolean | 'asc' | 'desc' }
export interface Props {
items: Map<string, PowerItem>
minimumTotal: number
@ -65,7 +67,7 @@ const headers = ref([
key: `1.aveTotalPower`
}
])
const sortBy = ref([
const sortBy: Ref<SortItem[]> = ref([
{
key: '1.minItemPower',
order: 'asc'