fix: fix typecheck
This commit is contained in:
parent
1af11240a6
commit
99d663a6f2
@ -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,12 +19,13 @@ onMounted(() => {
|
||||
);
|
||||
});
|
||||
|
||||
const globalConfig = merge(zhConfig, {
|
||||
const customConfig: GlobalConfigProvider = {
|
||||
// 可以在此处定义更多自定义配置,具体可配置内容参看 API 文档
|
||||
calendar: {},
|
||||
table: {},
|
||||
pagination: {},
|
||||
});
|
||||
};
|
||||
const globalConfig = merge(zhConfig, customConfig);
|
||||
</script>
|
||||
|
||||
<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,
|
||||
|
||||
@ -891,6 +891,9 @@ importers:
|
||||
dayjs:
|
||||
specifier: 'catalog:'
|
||||
version: 1.11.19
|
||||
lodash-es:
|
||||
specifier: ^4.17.21
|
||||
version: 4.17.21
|
||||
pinia:
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.4(typescript@5.9.3)(vue@3.5.23(typescript@5.9.3))
|
||||
@ -903,6 +906,10 @@ importers:
|
||||
vue-router:
|
||||
specifier: 'catalog:'
|
||||
version: 4.6.3(vue@3.5.23(typescript@5.9.3))
|
||||
devDependencies:
|
||||
'@types/lodash-es':
|
||||
specifier: ^4.17.12
|
||||
version: 4.17.12
|
||||
|
||||
docs:
|
||||
dependencies:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user