diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 55e6ffd3..483de9e2 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -7,11 +7,13 @@ ### ⚡ Performance Improvements - 异步引入组件 +- 优化整体结构 ### 🎫 Chores - 返回顶部样式调整,避免遮住其他元素 -- 升级`ant-design-vue`到`2.0.0-rc.4` +- 升级`ant-design-vue`到`2.0.0-rc.5` +- 刷新按钮布局调整 ### 🐛 Bug Fixes @@ -23,6 +25,8 @@ - 修复按钮样式问题 - 修复菜单分割模式问题 - 修复 `Modal`与`Drawer`组件在使用 emits 数据传递失效问题 +- 修复菜单已知问题 +- 修复上传组件 api 失效问题 ## 2.0.0-rc.13 (2020-12-10) diff --git a/src/components/Application/index.ts b/src/components/Application/index.ts index 983b4cfd..eafb2803 100644 --- a/src/components/Application/index.ts +++ b/src/components/Application/index.ts @@ -2,9 +2,7 @@ import { withInstall } from '../util'; import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent'; import AppLogo from './src/AppLogo.vue'; -export const AppLocalePicker = createAsyncComponent(() => import('./src/AppLocalePicker.vue'), { - loading: true, -}); +export const AppLocalePicker = createAsyncComponent(() => import('./src/AppLocalePicker.vue')); export const AppProvider = createAsyncComponent(() => import('./src/AppProvider.vue')); export const AppSearch = createAsyncComponent(() => import('./src/search/AppSearch.vue'), { loading: true, diff --git a/src/components/Application/src/AppLocalePicker.vue b/src/components/Application/src/AppLocalePicker.vue index 72c4c7f9..3a592ffb 100644 --- a/src/components/Application/src/AppLocalePicker.vue +++ b/src/components/Application/src/AppLocalePicker.vue @@ -11,8 +11,8 @@ :overlayClassName="`${prefixCls}-overlay`" > - - {{ getLangText }} + + {{ getLangText }} @@ -30,9 +30,10 @@ import { propTypes } from '/@/utils/propTypes'; import { useDesign } from '/@/hooks/web/useDesign'; + import Icon from '/@/components/Icon'; export default defineComponent({ name: 'AppLocalPicker', - components: { GlobalOutlined, Dropdown }, + components: { GlobalOutlined, Dropdown, Icon }, props: { // Whether to display text showText: propTypes.bool.def(true), @@ -88,8 +89,8 @@ align-items: center; cursor: pointer; - &__icon { - margin-right: 4px; + &__text { + margin-left: 6px; } } diff --git a/src/components/Application/src/AppLogo.vue b/src/components/Application/src/AppLogo.vue index 270bb485..17d4b6c5 100644 --- a/src/components/Application/src/AppLogo.vue +++ b/src/components/Application/src/AppLogo.vue @@ -87,7 +87,7 @@ } &__title { - font-size: 18px; + font-size: 16px; font-weight: 700; opacity: 0; transition: all 0.5s; diff --git a/src/components/Application/src/AppProvider.vue b/src/components/Application/src/AppProvider.vue index e8d905cd..ddf8c6ce 100644 --- a/src/components/Application/src/AppProvider.vue +++ b/src/components/Application/src/AppProvider.vue @@ -3,11 +3,13 @@ diff --git a/src/layouts/default/header/components/ErrorAction.vue b/src/layouts/default/header/components/ErrorAction.vue new file mode 100644 index 00000000..1d496415 --- /dev/null +++ b/src/layouts/default/header/components/ErrorAction.vue @@ -0,0 +1,47 @@ + + diff --git a/src/layouts/default/header/components/FullScreen.vue b/src/layouts/default/header/components/FullScreen.vue new file mode 100644 index 00000000..42a7ea5c --- /dev/null +++ b/src/layouts/default/header/components/FullScreen.vue @@ -0,0 +1,36 @@ + + diff --git a/src/layouts/default/header/components/index.ts b/src/layouts/default/header/components/index.ts new file mode 100644 index 00000000..fb628706 --- /dev/null +++ b/src/layouts/default/header/components/index.ts @@ -0,0 +1,15 @@ +import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent'; + +export const UserDropDown = createAsyncComponent(() => import('./user-dropdown/index.vue'), { + loading: true, +}); + +export const LayoutBreadcrumb = createAsyncComponent(() => import('./Breadcrumb.vue')); + +export const FullScreen = createAsyncComponent(() => import('./FullScreen.vue')); + +export const Notify = createAsyncComponent(() => import('./notify/index.vue')); + +export const LockItem = createAsyncComponent(() => import('./lock/index.vue')); + +export const ErrorAction = createAsyncComponent(() => import('./ErrorAction.vue')); diff --git a/src/layouts/default/header/actions/LockAction.less b/src/layouts/default/header/components/lock/LockAction.less similarity index 100% rename from src/layouts/default/header/actions/LockAction.less rename to src/layouts/default/header/components/lock/LockAction.less diff --git a/src/layouts/default/header/actions/LockAction.tsx b/src/layouts/default/header/components/lock/LockAction.tsx similarity index 100% rename from src/layouts/default/header/actions/LockAction.tsx rename to src/layouts/default/header/components/lock/LockAction.tsx diff --git a/src/layouts/default/header/components/lock/LockModal.vue b/src/layouts/default/header/components/lock/LockModal.vue new file mode 100644 index 00000000..7ca58007 --- /dev/null +++ b/src/layouts/default/header/components/lock/LockModal.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/layouts/default/header/components/lock/index.vue b/src/layouts/default/header/components/lock/index.vue new file mode 100644 index 00000000..37b2ff4d --- /dev/null +++ b/src/layouts/default/header/components/lock/index.vue @@ -0,0 +1,38 @@ + + diff --git a/src/layouts/default/header/notice/NoticeList.vue b/src/layouts/default/header/components/notify/NoticeList.vue similarity index 85% rename from src/layouts/default/header/notice/NoticeList.vue rename to src/layouts/default/header/components/notify/NoticeList.vue index 6337dc0b..ff50874f 100644 --- a/src/layouts/default/header/notice/NoticeList.vue +++ b/src/layouts/default/header/components/notify/NoticeList.vue @@ -1,5 +1,5 @@ -