welfare-admin/src/App.vue

76 lines
1.3 KiB
Vue
Raw Normal View History

2021-08-09 17:28:48 +08:00
<template>
2021-08-11 15:44:50 +08:00
<a-config-provider :locale="locale">
<div id="app">
2022-01-07 14:43:46 +08:00
<router-view />
2021-08-11 15:44:50 +08:00
</div>
</a-config-provider>
2021-08-09 17:28:48 +08:00
</template>
2021-08-11 15:44:50 +08:00
<script>
import { domTitle, setDocumentTitle } from '@/utils/domUtil'
import { i18nRender } from '@/locales'
2021-08-09 17:28:48 +08:00
2021-08-11 15:44:50 +08:00
export default {
2022-01-07 14:43:46 +08:00
data() {
return {}
2021-08-11 15:44:50 +08:00
},
computed: {
2022-01-07 14:43:46 +08:00
locale() {
2021-08-11 15:44:50 +08:00
// 只是为了切换语言时,更新标题
const { title } = this.$route.meta
2022-01-07 14:43:46 +08:00
title && setDocumentTitle(`${i18nRender(title)} - ${domTitle}`)
2021-08-11 15:44:50 +08:00
return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
}
}
2021-08-09 17:28:48 +08:00
}
2021-08-11 15:44:50 +08:00
</script>
2022-01-07 14:43:46 +08:00
<style lang="less">
.modal-title {
font-size: 16px;
font-weight: bold;
color: #333;
display: flex;
align-items: center;
margin-top: 15px;
&::before {
content: '';
display: inline-block;
width: 4px;
height: 16px;
background: #1890ff;
margin-right: 3px;
}
}
.i-icon{
display: flex;
align-items: center;
justify-content: center;
}
2022-01-16 10:26:12 +08:00
// 全局样式配置
.ant-pro-basicLayout-children-content-wrap{
height: 100%;
}
.ant-pro-grid-content{
height: 100%;
}
2022-01-18 17:08:15 +08:00
.ant-layout-footer{
display: none;
}
2022-02-24 14:43:49 +08:00
.text-cut-2{
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
2022-02-26 17:27:02 +08:00
text-align: center;
2022-02-24 14:43:49 +08:00
}
2022-01-07 14:43:46 +08:00
</style>