mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
fix: fix typecheck
This commit is contained in:
@@ -42,9 +42,13 @@
|
||||
"@vben/utils": "workspace:*",
|
||||
"@vueuse/core": "catalog:",
|
||||
"dayjs": "catalog:",
|
||||
"lodash-es": "^4.17.21",
|
||||
"pinia": "catalog:",
|
||||
"tdesign-vue-next": "^1.17.1",
|
||||
"vue": "catalog:",
|
||||
"vue-router": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash-es": "^4.17.12"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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