LSSE-front/src/App.vue

126 lines
2.0 KiB
Vue
Raw Normal View History

2025-08-06 19:10:12 +08:00
<template>
<a-config-provider :locale="locale" :autoInsertSpaceInButton="false">
<div id="app">
2025-08-16 10:13:46 +08:00
<router-view />
2025-08-06 19:10:12 +08:00
</div>
</a-config-provider>
</template>
<script>
import { domTitle, setDocumentTitle } from '@/utils/domUtil'
import { i18nRender } from '@/locales'
export default {
2025-08-16 10:13:46 +08:00
data() {
return {}
2025-08-06 19:10:12 +08:00
},
computed: {
2025-08-16 10:13:46 +08:00
locale() {
2025-08-06 19:10:12 +08:00
// 只是为了切换语言时,更新标题
const { title } = this.$route.meta
2025-08-16 10:13:46 +08:00
title && setDocumentTitle(`${i18nRender(title)} - ${domTitle}`)
2025-08-06 19:10:12 +08:00
return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
2025-08-16 10:13:46 +08:00
},
},
2025-08-06 19:10:12 +08:00
}
</script>
<style>
2025-08-16 10:13:46 +08:00
.ant-table td {
white-space: nowrap !important;
}
.ant-table th {
white-space: nowrap !important;
}
.ant-table-thead > tr > th,
.ant-table-tbody > tr > td {
padding: 8px 8px !important;
overflow-wrap: break-word;
font-size: 14px;
}
.flexRowStart {
display: flex;
flex-direction: row;
align-items: flex-start;
}
.flexRowCenter {
display: flex;
flex-direction: row;
align-items: center;
}
.flexCenterCenter {
display: flex;
justify-content: center;
align-items: center;
}
.flexColumnCenterCenter {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.shaixuan_float_left {
float: left;
margin-right: 20px;
}
.flex {
display: flex;
}
.flex-rr {
display: flex;
flex-direction: row-reverse;
}
.flex-c {
display: flex;
flex-direction: column;
}
.flex-1 {
flex: 1;
}
.flex-cr {
display: flex;
flex-direction: column-reverse;
}
.ai-fs {
align-items: flex-start;
}
.ai-s {
align-items: stretch;
}
.ai-fe {
align-items: flex-end;
}
.ai-c {
align-items: center;
}
.ai-s {
align-items: stretch;
}
.jc-c {
justify-content: center;
}
.jc-sb {
justify-content: space-between;
}
.jc-sa {
justify-content: space-around;
}
.jc-fs {
justify-content: flex-start;
}
.jc-fe {
justify-content: flex-end;
}
.fr-w {
flex-wrap: wrap;
}
.fr-n {
flex-wrap: nowrap;
}
.fr-wr {
flex-wrap: wrap-reverse;
}
</style>