mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
💄 app-bar
This commit is contained in:
@@ -1,33 +1,40 @@
|
|||||||
<template>
|
<template>
|
||||||
<ToLoading v-model="loading" :title="loadingTitle" />
|
<ToLoading v-model="loading" :title="loadingTitle" />
|
||||||
|
<v-app-bar>
|
||||||
|
<template #prepend>
|
||||||
<v-tabs v-model="tab" align-tabs="start" class="anno-tab">
|
<v-tabs v-model="tab" align-tabs="start" class="anno-tab">
|
||||||
<v-tab v-for="(value, index) in tabValues" :key="index" :value="value">
|
<v-tab v-for="(value, index) in tabValues" :key="index" :value="value">
|
||||||
{{ AnnoType[value] }}
|
{{ AnnoType[value] }}
|
||||||
</v-tab>
|
</v-tab>
|
||||||
|
</v-tabs>
|
||||||
|
<div class="anno-selects">
|
||||||
<v-select
|
<v-select
|
||||||
class="anno-select"
|
class="anno-select"
|
||||||
:items="annoServerList"
|
:items="annoServerList"
|
||||||
v-model="curRegionName"
|
v-model="curRegionName"
|
||||||
label="服务器"
|
label="服务器"
|
||||||
dense
|
width="200px"
|
||||||
outlined
|
density="compact"
|
||||||
/>
|
/>
|
||||||
<v-select
|
<v-select
|
||||||
class="anno-select"
|
class="anno-select"
|
||||||
:items="langList"
|
:items="langList"
|
||||||
v-model="curLangName"
|
v-model="curLangName"
|
||||||
label="语言"
|
label="语言"
|
||||||
dense
|
width="200px"
|
||||||
outlined
|
density="compact"
|
||||||
/>
|
/>
|
||||||
<v-spacer />
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #append>
|
||||||
<v-btn class="anno-switch-btn" @click="switchNews">
|
<v-btn class="anno-switch-btn" @click="switchNews">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-icon>mdi-bullhorn</v-icon>
|
<v-icon>mdi-bullhorn</v-icon>
|
||||||
</template>
|
</template>
|
||||||
切换米游社咨讯
|
切换米游社咨讯
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-tabs>
|
</template>
|
||||||
|
</v-app-bar>
|
||||||
<v-window v-model="tab">
|
<v-window v-model="tab">
|
||||||
<v-window-item v-for="(value, index) in tabValues" :key="index" :value="value">
|
<v-window-item v-for="(value, index) in tabValues" :key="index" :value="value">
|
||||||
<div class="anno-grid">
|
<div class="anno-grid">
|
||||||
@@ -257,14 +264,21 @@ async function createAnno(item: TGApp.App.Announcement.ListCard): Promise<void>
|
|||||||
|
|
||||||
<style lang="css" scoped>
|
<style lang="css" scoped>
|
||||||
.anno-tab {
|
.anno-tab {
|
||||||
margin-bottom: 10px;
|
|
||||||
color: var(--common-text-title);
|
color: var(--common-text-title);
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.anno-selects {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding-top: 25px;
|
||||||
|
margin: 0 10px;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.anno-select {
|
.anno-select {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
margin-left: 10px;
|
|
||||||
color: var(--common-text-title);
|
color: var(--common-text-title);
|
||||||
font-family: var(--font-title);
|
font-family: var(--font-title);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
<!-- todo app-bar -->
|
|
||||||
<template>
|
<template>
|
||||||
<ToLoading v-model="loading" :title="loadingTitle" />
|
<ToLoading v-model="loading" :title="loadingTitle" />
|
||||||
|
<v-app-bar density="compact">
|
||||||
|
<template #prepend>
|
||||||
<v-tabs v-model="tab" align-tabs="start" class="news-tab">
|
<v-tabs v-model="tab" align-tabs="start" class="news-tab">
|
||||||
<v-tab v-for="(value, index) in tabValues" :key="index" :value="value" @click="firstLoad(value)"
|
<v-tab
|
||||||
|
v-for="(value, index) in tabValues"
|
||||||
|
:key="index"
|
||||||
|
:value="value"
|
||||||
|
@click="firstLoad(value)"
|
||||||
>{{ rawData[value].name }}
|
>{{ rawData[value].name }}
|
||||||
</v-tab>
|
</v-tab>
|
||||||
|
</v-tabs>
|
||||||
|
</template>
|
||||||
|
<template #title>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="search"
|
v-model="search"
|
||||||
class="news-search"
|
class="news-search"
|
||||||
@@ -13,8 +21,10 @@
|
|||||||
:single-line="true"
|
:single-line="true"
|
||||||
hide-details
|
hide-details
|
||||||
@keyup.enter="searchPost()"
|
@keyup.enter="searchPost()"
|
||||||
|
@click:append="searchPost()"
|
||||||
/>
|
/>
|
||||||
<v-spacer />
|
</template>
|
||||||
|
<template #append>
|
||||||
<v-btn class="news-top-btn" @click="firstLoad(tab, true)">
|
<v-btn class="news-top-btn" @click="firstLoad(tab, true)">
|
||||||
<v-icon>mdi-refresh</v-icon>
|
<v-icon>mdi-refresh</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
@@ -27,7 +37,8 @@
|
|||||||
</template>
|
</template>
|
||||||
切换游戏内公告
|
切换游戏内公告
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-tabs>
|
</template>
|
||||||
|
</v-app-bar>
|
||||||
<v-window v-model="tab">
|
<v-window v-model="tab">
|
||||||
<v-window-item v-for="(value, index) in tabValues" :key="index" :value="value">
|
<v-window-item v-for="(value, index) in tabValues" :key="index" :value="value">
|
||||||
<div class="news-grid">
|
<div class="news-grid">
|
||||||
@@ -225,7 +236,7 @@ async function searchPost(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.news-search {
|
.news-search {
|
||||||
margin-left: 10px;
|
margin: 0 10px;
|
||||||
color: var(--box-text-1);
|
color: var(--box-text-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user