添加页脚

This commit is contained in:
05412 2024-08-02 17:43:26 +08:00
parent db3872cc3a
commit 09d6ac57fe
5 changed files with 28 additions and 4 deletions

View File

@ -3,7 +3,11 @@
</script> </script>
<template> <template>
404 NOT FOUND <v-empty-state
icon="mdi-magnify"
text="Try adjusting your search terms or filters. Sometimes less specific terms or broader queries can help you find what you're looking for."
title="We couldn't find a match."
></v-empty-state>
</template> </template>
<style scoped> <style scoped>

View File

@ -98,7 +98,11 @@ function toggleTheme() {
<v-main class="px-10"> <v-main class="px-10">
<router-view/> <router-view/>
</v-main> </v-main>
<v-footer>footer</v-footer> <v-footer class="home-footer align-center border-t">
<v-row>
<v-col class="text-center">powered by @S-URL</v-col>
</v-row>
</v-footer>
</v-app> </v-app>
</v-responsive> </v-responsive>
<v-dialog v-model="showLoginDialog" persistent width="400"> <v-dialog v-model="showLoginDialog" persistent width="400">
@ -150,4 +154,9 @@ function toggleTheme() {
.home-menu-button { .home-menu-button {
width: 120px; width: 120px;
} }
.home-footer {
max-height: 100px;
min-height: 100px;
}
</style> </style>

View File

@ -15,6 +15,10 @@ interface Surls {
const urls = ref<Urls[]>([]) const urls = ref<Urls[]>([])
const selected = ref([]) const selected = ref([])
const tableHeaderConfig = ref([
{title: 'KEY1', value: 'key', key: 'key'},
{title: 'URL', value: 'value', key: 'value'}
])
watch(selected, () => console.log(selected.value)) watch(selected, () => console.log(selected.value))
@ -33,8 +37,8 @@ async function getSurl() {
<template> <template>
<v-btn @click="getSurl">get</v-btn> <v-btn @click="getSurl">get</v-btn>
<v-data-table :items="urls" :item-value="item => item" show-select v-model="selected" <v-data-table :items="urls" :item-value="item => item" show-select v-model="selected"
v-slot:header.data-table-select height="400" fixed-header v-slot:header.data-table-select fixed-header density="compact"
:headers="[{title: 'KEY', value: 'key', key: 'key', align: 'center'}, {title: 'URL', value: 'value', key: 'value'}]"> :headers="tableHeaderConfig" :header-props="{color: 'purple'}">
</v-data-table> </v-data-table>
</template> </template>

View File

@ -4,6 +4,7 @@ import InputBox from "./components/items/InputBox.vue";
import IntroView from "./components/views/IntroView.vue"; import IntroView from "./components/views/IntroView.vue";
import TestView from "./components/views/TestView.vue"; import TestView from "./components/views/TestView.vue";
import ServiceView from "./components/views/ServiceView.vue"; import ServiceView from "./components/views/ServiceView.vue";
import NotFound from "./components/items/NotFound.vue";
const routes = [ const routes = [
{ {
@ -21,6 +22,9 @@ const routes = [
}, { }, {
path: '/services', path: '/services',
component: ServiceView component: ServiceView
}, {
path: '/404',
component: NotFound
} }
] ]
export const router = createRouter({ export const router = createRouter({

View File

@ -12,3 +12,6 @@
.v-overlay.v-dialog{ .v-overlay.v-dialog{
backdrop-filter: blur(6px); backdrop-filter: blur(6px);
} }
.v-data-table-footer__items-per-page {
width: 200px;
}