<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { legacyLogicalPropertiesTransformer, StyleProvider, ConfigProvider, theme  } from 'ant-design-vue';
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>
