36 lines
682 B
Vue
36 lines
682 B
Vue
<script setup>
|
|
import {
|
|
ConfigProvider,
|
|
legacyLogicalPropertiesTransformer,
|
|
StyleProvider,
|
|
theme,
|
|
} from 'ant-design-vue';
|
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
|
import dayjs from 'dayjs';
|
|
|
|
import 'dayjs/locale/zh-cn';
|
|
|
|
const { compactAlgorithm } = theme;
|
|
|
|
dayjs.locale('zh-cn');
|
|
|
|
ConfigProvider.config({
|
|
prefixCls: 'ycode-ant',
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<a-config-provider
|
|
:theme="{
|
|
algorithm: [compactAlgorithm],
|
|
}"
|
|
:locale="zhCN"
|
|
:transformers="[legacyLogicalPropertiesTransformer]"
|
|
prefix-cls="ycode-ant"
|
|
>
|
|
<StyleProvider hash-priority="high">
|
|
<router-view />
|
|
</StyleProvider>
|
|
</a-config-provider>
|
|
</template>
|