chore: update package.json and app.vue imports, and ensure global styles are included
This commit is contained in:
parent
aaf0274fe9
commit
f7d9d1b1af
@ -1,12 +1,12 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { GlobalConfigProvider } from 'tdesign-vue-next';
|
import type { GlobalConfigProvider } from 'tdesign-vue-next';
|
||||||
import { ConfigProvider } from 'tdesign-vue-next';
|
|
||||||
|
|
||||||
import { onMounted } from 'vue';
|
import { onMounted } from 'vue';
|
||||||
|
|
||||||
import { usePreferences } from '@vben/preferences';
|
import { usePreferences } from '@vben/preferences';
|
||||||
|
|
||||||
import { merge } from 'es-toolkit/compat';
|
import { merge } from 'es-toolkit/compat';
|
||||||
|
import { ConfigProvider } from 'tdesign-vue-next';
|
||||||
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN';
|
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN';
|
||||||
|
|
||||||
defineOptions({ name: 'App' });
|
defineOptions({ name: 'App' });
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { initStores } from '@vben/stores';
|
|||||||
import '@vben/styles';
|
import '@vben/styles';
|
||||||
// import '@vben/styles/antd';
|
// import '@vben/styles/antd';
|
||||||
// 引入组件库的少量全局样式变量
|
// 引入组件库的少量全局样式变量
|
||||||
import 'tdesign-vue-next/es/style/index.css';
|
|
||||||
import { useTitle } from '@vueuse/core';
|
import { useTitle } from '@vueuse/core';
|
||||||
|
|
||||||
import { $t, setupI18n } from '#/locales';
|
import { $t, setupI18n } from '#/locales';
|
||||||
@ -17,6 +17,8 @@ import { initSetupVbenForm } from './adapter/form';
|
|||||||
import App from './app.vue';
|
import App from './app.vue';
|
||||||
import { router } from './router';
|
import { router } from './router';
|
||||||
|
|
||||||
|
import 'tdesign-vue-next/es/style/index.css';
|
||||||
|
|
||||||
async function bootstrap(namespace: string) {
|
async function bootstrap(namespace: string) {
|
||||||
// 初始化组件适配器
|
// 初始化组件适配器
|
||||||
await initComponentAdapter();
|
await initComponentAdapter();
|
||||||
|
|||||||
@ -112,9 +112,9 @@
|
|||||||
"@ctrl/tinycolor": "catalog:",
|
"@ctrl/tinycolor": "catalog:",
|
||||||
"clsx": "catalog:",
|
"clsx": "catalog:",
|
||||||
"esbuild": "0.25.3",
|
"esbuild": "0.25.3",
|
||||||
|
"jiti": "^2.6.1",
|
||||||
"pinia": "catalog:",
|
"pinia": "catalog:",
|
||||||
"vue": "catalog:",
|
"vue": "catalog:"
|
||||||
"jiti": "^2.6.1"
|
|
||||||
},
|
},
|
||||||
"neverBuiltDependencies": [
|
"neverBuiltDependencies": [
|
||||||
"canvas",
|
"canvas",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user