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-cr {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
|
}
|
2025-08-25 11:22:28 +08:00
|
|
|
.flex-1 {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
2025-08-16 10:13:46 +08:00
|
|
|
.ai-fs {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
.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;
|
|
|
|
|
}
|
2025-09-08 17:58:40 +08:00
|
|
|
|
|
|
|
|
.scroller {
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
.scroller-x {
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
}
|
|
|
|
|
.scroller-y {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
2025-08-16 10:13:46 +08:00
|
|
|
</style>
|