mirror of
https://forgejo.merr.is/annika/isl-vue3.git
synced 2025-12-15 12:36:40 -05:00
More Styling and Added Tooltips
This commit is contained in:
parent
599d44a86b
commit
10684ad79c
14 changed files with 246 additions and 70 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { usePowerItems } from '@/stores/powerItems'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { computed, ref } from 'vue';
|
||||
import { computed, ref } from 'vue'
|
||||
|
||||
const { standardFellowItems, standardFellowItemTotal } = storeToRefs(usePowerItems())
|
||||
const headers = ref([
|
||||
|
|
@ -13,7 +13,7 @@ const headers = ref([
|
|||
},
|
||||
{
|
||||
title: 'Power',
|
||||
align: 'end',
|
||||
align: ' d-none d-lg-table-cell',
|
||||
sortable: true,
|
||||
key: '1.minItemPower'
|
||||
},
|
||||
|
|
@ -38,7 +38,6 @@ const sortBy = ref([
|
|||
])
|
||||
|
||||
const getColor = computed(() => (rarity: number): string => {
|
||||
console.log('getting rarity')
|
||||
if (rarity === 4) {
|
||||
return 'amber'
|
||||
} else if (rarity === 3) {
|
||||
|
|
@ -63,6 +62,12 @@ const getColor = computed(() => (rarity: number): string => {
|
|||
:headers="headers"
|
||||
>
|
||||
<template v-slot:item.1.itemName="{ item }">
|
||||
<v-tooltip activator="parent" v-if="item[1].tooltip != undefined">
|
||||
<v-card variant="text" density="compact">
|
||||
<v-card-title>Origin: {{ item[1].origin }}</v-card-title>
|
||||
<v-card-text>{{ item[1].tooltip }}</v-card-text>
|
||||
</v-card>
|
||||
</v-tooltip>
|
||||
<v-chip :color="`${getColor(item[1].rarity)}`">
|
||||
{{ item[1].itemName }}
|
||||
</v-chip>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue