perf: optimized page switching effect

This commit is contained in:
nebv
2020-10-11 01:13:27 +08:00
parent 03b6025d07
commit 5f2a927cd5
12 changed files with 47 additions and 40 deletions

View File

@@ -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,
};