mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 16:15:19 +08:00
perf: optimized page switching effect
This commit is contained in:
@@ -158,7 +158,6 @@ export default defineComponent({
|
||||
menuSetting: { theme, split: splitMenu },
|
||||
} = unref(getProjectConfigRef);
|
||||
const { getCollapsedState, getMenuWidthState } = menuStore;
|
||||
|
||||
return (
|
||||
<Layout.Sider
|
||||
onCollapse={onCollapseChange}
|
||||
|
@@ -1,5 +1,10 @@
|
||||
@import (reference) '../../design/index.less';
|
||||
|
||||
.ant-menu-submenu .ant-menu-sub {
|
||||
transition: background 0.1s cubic-bezier(0.645, 0.045, 0.355, 1) 0s,
|
||||
padding 0.1s cubic-bezier(0.645, 0.045, 0.355, 1) 0s !important;
|
||||
}
|
||||
|
||||
.default-layout {
|
||||
&__content {
|
||||
position: relative;
|
||||
|
@@ -262,7 +262,7 @@ export default defineComponent({
|
||||
size="small"
|
||||
min={0}
|
||||
onChange={(e) => {
|
||||
baseHandler('menuWidth', e);
|
||||
baseHandler('lockTime', e);
|
||||
}}
|
||||
defaultValue={appStore.getProjectConfig.lockTime}
|
||||
formatter={(value: string) => {
|
||||
@@ -448,7 +448,7 @@ export default defineComponent({
|
||||
},
|
||||
};
|
||||
}
|
||||
if (event === 'menuWidth') {
|
||||
if (event === 'lockTime') {
|
||||
config = {
|
||||
lockTime: value,
|
||||
};
|
||||
|
Reference in New Issue
Block a user