mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-13 18:10:54 +08:00
fix: fix typecheck
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<script lang="ts" setup>
|
||||
import { onMounted } from "vue";
|
||||
import type { GlobalConfigProvider } from 'tdesign-vue-next';
|
||||
|
||||
import { usePreferences } from "@vben/preferences";
|
||||
import { merge } from "@vben/utils";
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
import { ConfigProvider } from "tdesign-vue-next";
|
||||
import zhConfig from "tdesign-vue-next/es/locale/zh_CN";
|
||||
import { usePreferences } from '@vben/preferences';
|
||||
|
||||
import { merge } from 'lodash-es';
|
||||
import { ConfigProvider } from 'tdesign-vue-next';
|
||||
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN';
|
||||
|
||||
defineOptions({ name: 'App' });
|
||||
const { isDark } = usePreferences();
|
||||
@@ -17,16 +19,17 @@ onMounted(() => {
|
||||
);
|
||||
});
|
||||
|
||||
const globalConfig = merge(zhConfig, {
|
||||
const customConfig: GlobalConfigProvider = {
|
||||
// 可以在此处定义更多自定义配置,具体可配置内容参看 API 文档
|
||||
calendar: {},
|
||||
table: {},
|
||||
pagination: {},
|
||||
});
|
||||
};
|
||||
const globalConfig = merge(zhConfig, customConfig);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ConfigProvider :global-config="globalConfig">
|
||||
<RouterView />
|
||||
<RouterView />
|
||||
</ConfigProvider>
|
||||
</template>
|
||||
|
||||
@@ -2,8 +2,6 @@ import type { App } from 'vue';
|
||||
|
||||
import type { LocaleSetupOptions, SupportedLanguagesType } from '@vben/locales';
|
||||
|
||||
import { ref } from 'vue';
|
||||
|
||||
import {
|
||||
$t,
|
||||
setupI18n as coreSetup,
|
||||
|
||||
Reference in New Issue
Block a user