mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 10:59:21 +08:00
refactor: 调整 layouts 目录结构
This commit is contained in:
parent
df2821ebe9
commit
c1290cdf28
@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { useTagsViewStore } from "@/pinia/stores/tags-view"
|
||||
import Footer from "./Footer/index.vue"
|
||||
import { Footer } from "../index"
|
||||
|
||||
const tagsViewStore = useTagsViewStore()
|
||||
const settingsStore = useSettingsStore()
|
@ -1,4 +1,4 @@
|
||||
export { default as AppMain } from "./AppMain.vue"
|
||||
export { default as AppMain } from "./AppMain/index.vue"
|
||||
export { default as Breadcrumb } from "./Breadcrumb/index.vue"
|
||||
export { default as Footer } from "./Footer/index.vue"
|
||||
export { default as Hamburger } from "./Hamburger/index.vue"
|
||||
|
@ -8,9 +8,9 @@ import { storeToRefs } from "pinia"
|
||||
import { watchEffect } from "vue"
|
||||
import { RightPanel, Settings } from "./components"
|
||||
import { useResize } from "./composables/useResize"
|
||||
import LeftMode from "./LeftMode.vue"
|
||||
import LeftTopMode from "./LeftTopMode.vue"
|
||||
import TopMode from "./TopMode.vue"
|
||||
import LeftMode from "./modes/LeftMode.vue"
|
||||
import LeftTopMode from "./modes/LeftTopMode.vue"
|
||||
import TopMode from "./modes/TopMode.vue"
|
||||
|
||||
// Layout 布局响应式
|
||||
useResize()
|
||||
|
@ -5,7 +5,7 @@ import { useAppStore } from "@/pinia/stores/app"
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { storeToRefs } from "pinia"
|
||||
import { computed } from "vue"
|
||||
import { AppMain, NavigationBar, Sidebar, TagsView } from "./components"
|
||||
import { AppMain, NavigationBar, Sidebar, TagsView } from "../components"
|
||||
|
||||
const { isMobile } = useDevice()
|
||||
const { isLeft } = useLayoutMode()
|
@ -3,7 +3,7 @@ import { useAppStore } from "@/pinia/stores/app"
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { storeToRefs } from "pinia"
|
||||
import { computed } from "vue"
|
||||
import { AppMain, Logo, NavigationBar, Sidebar, TagsView } from "./components"
|
||||
import { AppMain, Logo, NavigationBar, Sidebar, TagsView } from "../components"
|
||||
|
||||
const appStore = useAppStore()
|
||||
const settingsStore = useSettingsStore()
|
@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { useSettingsStore } from "@/pinia/stores/settings"
|
||||
import { storeToRefs } from "pinia"
|
||||
import { AppMain, Logo, NavigationBar, TagsView } from "./components"
|
||||
import { AppMain, Logo, NavigationBar, TagsView } from "../components"
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
const { showTagsView, showLogo } = storeToRefs(settingsStore)
|
Loading…
x
Reference in New Issue
Block a user