Jin Mao
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
7 deletions
-
apps/web-tdesign/package.json
-
apps/web-tdesign/src/app.vue
-
apps/web-tdesign/src/bootstrap.ts
|
|
|
@ -42,7 +42,7 @@ |
|
|
|
"@vben/utils": "workspace:*", |
|
|
|
"@vueuse/core": "catalog:", |
|
|
|
"dayjs": "catalog:", |
|
|
|
"lodash-es": "^4.17.21", |
|
|
|
"es-toolkit": "catalog:", |
|
|
|
"pinia": "catalog:", |
|
|
|
"tdesign-vue-next": "^1.17.1", |
|
|
|
"vue": "catalog:", |
|
|
|
|
|
|
|
@ -1,12 +1,12 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
import type { GlobalConfigProvider } from 'tdesign-vue-next'; |
|
|
|
import { ConfigProvider } from 'tdesign-vue-next'; |
|
|
|
|
|
|
|
import { onMounted } from 'vue'; |
|
|
|
|
|
|
|
import { usePreferences } from '@vben/preferences'; |
|
|
|
|
|
|
|
import { merge } from 'lodash-es'; |
|
|
|
import { ConfigProvider } from 'tdesign-vue-next'; |
|
|
|
import { merge } from 'es-toolkit/compat'; |
|
|
|
import zhConfig from 'tdesign-vue-next/es/locale/zh_CN'; |
|
|
|
|
|
|
|
defineOptions({ name: 'App' }); |
|
|
|
|
|
|
|
@ -5,8 +5,9 @@ import { registerLoadingDirective } from '@vben/common-ui/es/loading'; |
|
|
|
import { preferences } from '@vben/preferences'; |
|
|
|
import { initStores } from '@vben/stores'; |
|
|
|
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 { $t, setupI18n } from '#/locales'; |
|
|
|
@ -16,8 +17,6 @@ import { initSetupVbenForm } from './adapter/form'; |
|
|
|
import App from './app.vue'; |
|
|
|
import { router } from './router'; |
|
|
|
|
|
|
|
// 引入组件库的少量全局样式变量
|
|
|
|
|
|
|
|
async function bootstrap(namespace: string) { |
|
|
|
// 初始化组件适配器
|
|
|
|
await initComponentAdapter(); |
|
|
|
|