<template>
  <ConfigProvider :locale="getAntdLocale" :autoInsertSpaceInButton="false">
    <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';
  // support Multi-language
  const { getAntdLocale } = useLocale();

  useTitle();
</script>
<style lang="less" scoped>
::v-deep(.ant-table-fixed-header .ant-table-scroll .ant-table-header) {
  opacity: 1;
}

::v-deep(.ant-table-hide-scrollbar) {
  min-width: initial !important;
  scrollbar-color: initial;
}
</style>
