forked from vbenjs/vue-vben-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gavin/v4-dev-customrouter-merge
* main: (43 commits) fix(BasicForm): validate Form tip height (vbenjs#3286). close vbenjs#3281 perf(IconPicker): input trigger popover by click (vbenjs#3278) perf(breakpointEnum): 修改enum与breakpoint.less内一致 (vbenjs#3276) fix(DatePicker): zh-CN is not work in DatePicker (vbenjs#3273) perf(ImageUpload): 根据官方示例设置图片回显格式 (vbenjs#3252) chore(deps): bump ant-design-vue and typescript to latest version chore(demo->form): 增加ApiTransfer使用示例. close vbenjs#1760 feat(layout): move setting button to tabs when fold (vbenjs#3264) feat(MultipleTab): add tabs auto collapse interaction in fold mode and setting (vbenjs#3256) chore(i18n): resolve ts type error chore(demo->BasicTree): 增加获取当前tree数据示例. resolve vbenjs#3253 perf(BasicTree): 获取treeData改写成函数 feat(BasicTree): BasicTree组件暴露treeData数据 fix(dept): no parentDept can edit parentDept (vbenjs#3255) fix: validateFields await missing (vbenjs#3254) chore(demo): 自定义列的helpMessage增加tsx和h函数渲染的数据 feat(Table-> CustomerCell): helpMessage支持传递 tsx 和 h函数的数据 refactor: fix type check (vbenjs#3246) refactor: remove cipher old (vbenjs#3245) feat: pinia persist plugin custom serializer (vbenjs#3244) ... # Conflicts: # pnpm-lock.yaml # src/App.vue # src/hooks/web/useI18n.ts # src/layouts/default/header/MultipleHeader.vue # src/layouts/default/index.vue # src/locales/useLocale.ts # src/utils/cache/storageCache.ts
- Loading branch information
Showing
98 changed files
with
1,660 additions
and
1,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
<template> | ||
<ConfigProvider :locale="getAntdLocale" :theme="isDark ? darkTheme : {}"> | ||
<ConfigProvider :locale="getAntdLocale" :theme="themeConfig"> | ||
<contextHolder /> | ||
<AppProvider> | ||
<RouterView /> | ||
<!-- <TestSelectedView />--> | ||
<RouterView /> | ||
<!-- <TestSelectedView />--> | ||
</AppProvider> | ||
</ConfigProvider> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ConfigProvider } from 'ant-design-vue'; | ||
import { computed } from 'vue'; | ||
import { AppProvider } from '@/components/Application'; | ||
import { useTitle } from '@/hooks/web/useTitle'; | ||
import { useLocale } from '@/locales/useLocale'; | ||
import { ConfigProvider } from 'ant-design-vue'; | ||
import 'dayjs/locale/zh-cn'; | ||
import { useDarkModeTheme } from '@/hooks/setting/useDarkModeTheme'; | ||
import { useMessage } from '@/hooks/web/useMessage'; | ||
import TestSelectedView from '@/views/test/TestSelectedView.vue'; | ||
import 'dayjs/locale/zh-cn'; | ||
const { contextHolder } = useMessage(); | ||
// support Multi-language | ||
const { getAntdLocale } = useLocale(); | ||
const { isDark, darkTheme } = useDarkModeTheme(); | ||
const themeConfig = computed(() => | ||
Object.assign( | ||
{ | ||
token: { | ||
colorPrimary: '#0960bd', | ||
colorSuccess: '#55D187', | ||
colorWarning: '#EFBD47', | ||
colorError: '#ED6F6F', | ||
colorInfo: '#0960bd', | ||
}, | ||
}, | ||
isDark.value ? darkTheme : {}, | ||
), | ||
); | ||
// Listening to page changes and dynamically changing site titles | ||
useTitle(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.