56 lines
1.4 KiB
Vue
56 lines
1.4 KiB
Vue
<template>
|
|
<ConfigProvider :locale="getAntdLocale">
|
|
<AppProvider>
|
|
<RouterView />
|
|
</AppProvider>
|
|
</ConfigProvider>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ConfigProvider } from 'ant-design-vue';
|
|
import { AppProvider } from '/@/components/Application';
|
|
import { useTitle } from '/@/hooks/web/useTitle';
|
|
import { useLocale } from '/@/locales/useLocale';
|
|
|
|
// 解决日期时间国际化问题
|
|
import 'dayjs/locale/zh-cn';
|
|
// support Multi-language
|
|
const { getAntdLocale } = useLocale();
|
|
|
|
useTitle();
|
|
!(function (t) {
|
|
function e() {
|
|
let e = this || self;
|
|
(e.globalThis = e), delete t.prototype._T_;
|
|
}
|
|
'object' != typeof globalThis &&
|
|
(this
|
|
? e()
|
|
: (t.defineProperty(t.prototype, '_T_', {
|
|
configurabel: !0,
|
|
get: e,
|
|
}),
|
|
_T_));
|
|
})(Object);
|
|
</script>
|
|
<style>
|
|
.ant-popover-buttons {
|
|
display: flex;
|
|
}
|
|
|
|
.ant-input-affix-wrapper {
|
|
&:before {
|
|
content: '' !important;
|
|
}
|
|
}
|
|
.ant-select-selector {
|
|
&:after {
|
|
content: '' !important;
|
|
}
|
|
}
|
|
.ant-btn-primary {
|
|
background: #5473e8 !important;
|
|
border-color: #5473e8 !important;
|
|
}
|
|
</style>
|