Commit 4c89ea7474f4315870df1790f99f3e431f343b90
1 parent
0d070840
fix(menu): fix the jitter problem of menu folding animation,fix #732
Showing
4 changed files
with
5 additions
and
7 deletions
.vscode/settings.json
... | ... | @@ -118,5 +118,5 @@ |
118 | 118 | "i18n-ally.enabledParsers": ["ts"], |
119 | 119 | "i18n-ally.sourceLanguage": "en", |
120 | 120 | "i18n-ally.enabledFrameworks": ["vue", "react"], |
121 | - "cSpell.words": ["vben", "windi", "browserslist", "esnext", "antv", "tinymce", "qrcode"] | |
121 | + "cSpell.words": ["vben", "windi", "browserslist", "esnext", "antv", "tinymce", "qrcode", "sider"] | |
122 | 122 | } | ... | ... |
CHANGELOG.zh_CN.md
src/components/SimpleMenu/src/components/SubMenuItem.vue
... | ... | @@ -273,8 +273,7 @@ |
273 | 273 | state.opened = data; |
274 | 274 | return; |
275 | 275 | } |
276 | - | |
277 | - if (isObject(data)) { | |
276 | + if (isObject(data) && rootProps.accordion) { | |
278 | 277 | const { opend, parent, uidList } = data as Recordable; |
279 | 278 | if (parent === instance?.parent) { |
280 | 279 | state.opened = opend; | ... | ... |
src/views/demo/feat/ws/index.vue
... | ... | @@ -55,12 +55,10 @@ |
55 | 55 | <script lang="ts"> |
56 | 56 | import { defineComponent, reactive, watchEffect, computed, toRefs } from 'vue'; |
57 | 57 | import { Tag, Input } from 'ant-design-vue'; |
58 | - | |
59 | 58 | import { PageWrapper } from '/@/components/Page'; |
60 | - | |
61 | 59 | import { useWebSocket } from '@vueuse/core'; |
62 | - | |
63 | 60 | import { formatToDateTime } from '/@/utils/dateUtil'; |
61 | + | |
64 | 62 | export default defineComponent({ |
65 | 63 | components: { |
66 | 64 | PageWrapper, |
... | ... | @@ -76,7 +74,7 @@ |
76 | 74 | }); |
77 | 75 | |
78 | 76 | const { status, data, send, close, open } = useWebSocket(state.server, { |
79 | - autoReconnect: true, | |
77 | + autoReconnect: false, | |
80 | 78 | heartbeat: true, |
81 | 79 | }); |
82 | 80 | ... | ... |