mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-02 18:08:40 +08:00
fix(menu): fix the jitter problem of menu folding animation,fix #732
This commit is contained in:
parent
0d0708409c
commit
4c89ea7474
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -118,5 +118,5 @@
|
|||||||
"i18n-ally.enabledParsers": ["ts"],
|
"i18n-ally.enabledParsers": ["ts"],
|
||||||
"i18n-ally.sourceLanguage": "en",
|
"i18n-ally.sourceLanguage": "en",
|
||||||
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
||||||
"cSpell.words": ["vben", "windi", "browserslist", "esnext", "antv", "tinymce", "qrcode"]
|
"cSpell.words": ["vben", "windi", "browserslist", "esnext", "antv", "tinymce", "qrcode", "sider"]
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
- **FlowChart** 修复拖放菜单丢失
|
- **FlowChart** 修复拖放菜单丢失
|
||||||
- 修复后台模式下,Iframe 路由错误
|
- 修复后台模式下,Iframe 路由错误
|
||||||
- **PageWrapper** 修复 footer 与全局页脚同时开启时的高度计算问题
|
- **PageWrapper** 修复 footer 与全局页脚同时开启时的高度计算问题
|
||||||
|
- **Menu** 修复菜单折叠动画抖动问题
|
||||||
|
|
||||||
## 2.4.2(2021-06-10)
|
## 2.4.2(2021-06-10)
|
||||||
|
|
||||||
|
@ -273,8 +273,7 @@
|
|||||||
state.opened = data;
|
state.opened = data;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isObject(data) && rootProps.accordion) {
|
||||||
if (isObject(data)) {
|
|
||||||
const { opend, parent, uidList } = data as Recordable;
|
const { opend, parent, uidList } = data as Recordable;
|
||||||
if (parent === instance?.parent) {
|
if (parent === instance?.parent) {
|
||||||
state.opened = opend;
|
state.opened = opend;
|
||||||
|
@ -55,12 +55,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, reactive, watchEffect, computed, toRefs } from 'vue';
|
import { defineComponent, reactive, watchEffect, computed, toRefs } from 'vue';
|
||||||
import { Tag, Input } from 'ant-design-vue';
|
import { Tag, Input } from 'ant-design-vue';
|
||||||
|
|
||||||
import { PageWrapper } from '/@/components/Page';
|
import { PageWrapper } from '/@/components/Page';
|
||||||
|
|
||||||
import { useWebSocket } from '@vueuse/core';
|
import { useWebSocket } from '@vueuse/core';
|
||||||
|
|
||||||
import { formatToDateTime } from '/@/utils/dateUtil';
|
import { formatToDateTime } from '/@/utils/dateUtil';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
PageWrapper,
|
PageWrapper,
|
||||||
@ -76,7 +74,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { status, data, send, close, open } = useWebSocket(state.server, {
|
const { status, data, send, close, open } = useWebSocket(state.server, {
|
||||||
autoReconnect: true,
|
autoReconnect: false,
|
||||||
heartbeat: true,
|
heartbeat: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user