mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-08-26 15:36:35 +00:00
add tooltip to oils for oil names
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
<template #item>
|
||||
<div class="flex">
|
||||
<img
|
||||
v-for="icon in result.icons"
|
||||
v-for="oil in result.oils"
|
||||
class="w-8 h-8"
|
||||
:title="oil.name"
|
||||
:src="
|
||||
icon === '%NOT_FOUND%' || icon === '' ? '/images/404.png' : icon
|
||||
oil.icon === '%NOT_FOUND%' || oil.icon === ''
|
||||
? '/images/404.png'
|
||||
: oil.icon
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
@@ -55,7 +58,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
return {
|
||||
icons: oils.map((item) => item!.icon),
|
||||
oils: oils.map((item) => ({ icon: item!.icon, name: item!.name })),
|
||||
price: totalDiv != null ? autoCurrency(totalDiv) : undefined,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user