-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<v-list | ||
:style="{ backgroundImage: props.data.name === '原神·印象' ? 'none' : `url(${props.data.bg})` }" | ||
class="top-nc-box" | ||
@click="toNameCard(props.data)" | ||
> | ||
<v-list-item :title="props.data.name"> | ||
<template #subtitle> | ||
<span :title="props.data.desc">{{ props.data.desc }}</span> | ||
</template> | ||
<template #prepend> | ||
<v-img width="80px" style="margin-right: 10px" :src="props.data.icon" /> | ||
</template> | ||
</v-list-item> | ||
</v-list> | ||
</template> | ||
<script lang="ts" setup> | ||
interface TopNamecardProps { | ||
data: TGApp.App.NameCard.Item; | ||
} | ||
interface TopNamecardEmits { | ||
(e: "selected", data: TGApp.App.NameCard.Item): void; | ||
} | ||
const props = defineProps<TopNamecardProps>(); | ||
const emit = defineEmits<TopNamecardEmits>(); | ||
function toNameCard(item: TGApp.App.NameCard.Item) { | ||
emit("selected", item); | ||
} | ||
</script> | ||
<style lang="css" scoped> | ||
.top-nc-box { | ||
width: 100%; | ||
height: 80px; | ||
border: 1px solid var(--common-shadow-2); | ||
border-radius: 10px 50px 50px 10px; | ||
background-color: var(--box-bg-1); | ||
background-position: right; | ||
background-repeat: no-repeat; | ||
cursor: pointer; | ||
font-family: var(--font-title); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters