mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-14 10:29:04 -05:00
Dependencies, Actions, and a Code Fix?
This commit is contained in:
parent
ce86d8d775
commit
905ef95d55
4 changed files with 82 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue