chore: transforming a common sidebar into a separate component

- also added saving collapsed state
This commit is contained in:
Shishkevich D.
2025-03-24 11:19:27 +00:00
parent 40ebf2902e
commit 3ea05d30c1
6 changed files with 109 additions and 63 deletions
+2 -2
View File
@@ -59,7 +59,7 @@
</style>
<body>
<a-layout id="app" v-cloak :class="themeSwitcher.currentTheme">
{{ template "commonSider" . }}
<a-sidebar></a-sidebar>
<a-layout id="content-layout">
<a-layout-content>
<a-spin :spinning="spinning" :delay="500" tip='{{ i18n "loading"}}'>
@@ -130,6 +130,7 @@
</a-layout>
</a-layout>
{{template "js" .}}
{{template "component/aSidebar" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aTableSortable" .}}
{{template "component/aSettingListItem" .}}
@@ -207,7 +208,6 @@
delimiters: ['[[', ']]'],
el: '#app',
data: {
siderDrawer,
themeSwitcher,
isDarkTheme: themeSwitcher.isDarkTheme,
spinning: false,