add help entry

This commit is contained in:
Timi
2026-09-15 11:44:15 +08:00
parent c0894cbab1
commit 68c25790fd
+31 -12
View File
@@ -1,12 +1,12 @@
<template> <template>
<div class="entry-page"> <div class="home-tab">
<section <section
v-for="group in visibleEntryGroupList" v-for="group in visibleEntryGroupList"
:key="group.title" :key="group.title"
class="entry-group" class="entry-group"
> >
<h2 v-text="group.title" /> <h2 v-text="group.title" />
<div class="entry-list" :class="group.layout"> <div class="items" :class="group.layout">
<div <div
v-entrance-transition="index * 70" v-entrance-transition="index * 70"
v-for="(item, index) in group.entryList" v-for="(item, index) in group.entryList"
@@ -22,6 +22,17 @@
</div> </div>
</div> </div>
</section> </section>
<t-button
class="help"
theme="primary"
variant="text"
content="使用帮助"
@click="go('/management/help')"
>
<template #icon>
<t-icon name="help-circle" />
</template>
</t-button>
</div> </div>
</template> </template>
@@ -153,10 +164,10 @@ onUnmounted(() => {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.entry-page { .home-tab {
gap: 2rem; gap: 2rem;
display: flex; display: flex;
padding: calc(var(--app-nav-height) + 1rem) 1rem 1rem 1rem; padding: calc(var(--app-nav-height) + 1rem) 1rem 6rem 1rem;
flex-direction: column; flex-direction: column;
.entry-group { .entry-group {
@@ -172,9 +183,9 @@ onUnmounted(() => {
font-weight: 700; font-weight: 700;
} }
.entry-list { .items {
display: grid;
gap: .875rem; gap: .875rem;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
.item { .item {
@@ -207,17 +218,25 @@ onUnmounted(() => {
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
}
h2 { h2 {
margin: 0; margin: 0;
font-size: .75rem; font-size: .75rem;
line-height: 1.5; line-height: 1.5;
}
} }
} }
} }
} }
.help {
--td-button-border-radius: 1rem;
width: 8rem;
margin: 0 auto;
background: white;
box-shadow: var(--td-shadow-3);
}
} }
:global(html.theme-dark) { :global(html.theme-dark) {