chore: lint code

This commit is contained in:
YunYouJun
2022-05-03 03:32:46 +08:00
parent 1de454290f
commit add71c1496
3 changed files with 2 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ const searchModes: {
id: 'survival', id: 'survival',
name: '生存模式', name: '生存模式',
}] }]
</script> </script>
<template> <template>

View File

@@ -20,7 +20,6 @@ const triggerGtm = (val: string) => {
action: val, action: val,
}) })
} }
</script> </script>
<template> <template>
@@ -31,7 +30,7 @@ const triggerGtm = (val: string) => {
@click="triggerGtm(dish.name)" @click="triggerGtm(dish.name)"
> >
<span m="r-1" class="inline-flex justify-center items-center" text="sm blue-700 dark:blue-200"> <span m="r-1" class="inline-flex justify-center items-center" text="sm blue-700 dark:blue-200">
{{ (dish.tags?.includes('杂烩') ? '🍲' : dish.emojis.join(' ')) + ' ' + dish.name }} {{ `${dish.tags?.includes('杂烩') ? '🍲' : dish.emojis.join(' ')} ${dish.name}` }}
</span> </span>
<span v-for="tool, i in tools" :key="i" inline-flex> <span v-for="tool, i in tools" :key="i" inline-flex>
<div v-if="dish.tools?.includes(tool.name)" :class="tool.icon" /> <div v-if="dish.tools?.includes(tool.name)" :class="tool.icon" />

View File

@@ -7,7 +7,7 @@ defineProps<{
<template> <template>
<span <span
class="tag rounded" p="x-2" class="tag rounded" p="x-2"
:border="'~ stone-200 dark:stone-600'" border="~ stone-200 dark:stone-600"
:bg="active ? 'stone-600 opacity-100' : 'stone-300 opacity-5'" :bg="active ? 'stone-600 opacity-100' : 'stone-300 opacity-5'"
:text="active ? 'stone-100' : 'stone-800 dark:stone-200'" :text="active ? 'stone-100' : 'stone-800 dark:stone-200'"
> >